Log in

View Full Version : XenoBot Bug - Open [Other] Self.ShopSellAllItems() Fails.



Fatality
05-28-2015, 11:25 PM
Bug ReportOperating System:
Other Short Description:
Self.ShopSellAllItems() Fails. Behaviors: Feature error

Indepth Description:
When using Self.ShopSellAllItems() It fails to sell about 50% of the time.

The exact code is
elseif label == "SellItems" then
Self.SayToNpc({"hi", "trade"}, 65)
wait(400)
Self.ShopSellAllItems(21202)

Whenever it reaches the label sometimes it sells, sometimes it just skips the label.

shadowart
05-28-2015, 11:27 PM
Looks like the wait is too short so the trade window doesn't have time to open. Are you sure he doesn't speak with the NPC every time?

Fatality
05-30-2015, 06:47 PM
Looks like the wait is too short so the trade window doesn't have time to open. Are you sure he doesn't speak with the NPC every time?

I've tried with multiple different waits. (500, 1000, 2500, 200, 400, 800, even 4000 just to test)

shadowart
05-30-2015, 07:53 PM
I guess the only other possible explanation I can think of would be if the NPC was too far away some of the times.

shadowart
05-31-2015, 06:06 AM
Or maybe there are two NPCs close to each other and sometimes it's the wrong one that answers when you say hi?

Snurq
06-10-2015, 06:32 PM
or you have item you sell in equip eg. u want sell zaoan legs and equipied zaoan legs. bot counts 2 of them and cant sell equip