Marshall011
12-17-2015, 01:08 PM
Hello,
I have a problem with one of my scripts. Bot collect few items to make my script more profitable. I want them to be sold during resuply. Everything goes fine until bot tries to sell item that was not looted in a session. It sells everything but sometimes it doesn't have a crossbow for example. Bot stays and there is an information below "You do not have this object". How to fix it?
My code:
elseif (labelName) == "Sell Items" then
Self.SayToNpc({"hi", "trade"}, 65)
wait(2000)
setWalkerEnabled(false)
Self.ShopSellAllItems(3275)
wait(1000, 1500)
Self.ShopSellAllItems(3305)
wait(1000, 1500)
Self.ShopSellAllItems(3425)
wait(1000, 1500)
Self.ShopSellAllItems(3349)
wait(1000, 1500)
Self.ShopSellAllItems(3351) -- item = ID przedmiotu, count = ile przedmiotów kupić / dokupić
wait(1000, 1500)
Self.SayToNpc({"bye"}, 65)
gotoLabel("Sold")
setWalkerEnabled(true)
I have a problem with one of my scripts. Bot collect few items to make my script more profitable. I want them to be sold during resuply. Everything goes fine until bot tries to sell item that was not looted in a session. It sells everything but sometimes it doesn't have a crossbow for example. Bot stays and there is an information below "You do not have this object". How to fix it?
My code:
elseif (labelName) == "Sell Items" then
Self.SayToNpc({"hi", "trade"}, 65)
wait(2000)
setWalkerEnabled(false)
Self.ShopSellAllItems(3275)
wait(1000, 1500)
Self.ShopSellAllItems(3305)
wait(1000, 1500)
Self.ShopSellAllItems(3425)
wait(1000, 1500)
Self.ShopSellAllItems(3349)
wait(1000, 1500)
Self.ShopSellAllItems(3351) -- item = ID przedmiotu, count = ile przedmiotów kupić / dokupić
wait(1000, 1500)
Self.SayToNpc({"bye"}, 65)
gotoLabel("Sold")
setWalkerEnabled(true)