PDA

View Full Version : Stuck in depot suggestion.



nomacro
08-11-2012, 07:51 PM
Hello
Ive been using xenobot in about 2 weeks now.
And ive been trying both free and paid scripts.
One "problem" that occour from time to time is that if a player stands in depot where the bot is going to deposit it will get "stucked" beacuse somone is standing in the way
Even with the paid scripts this problem occour.
So my suggestion is that make a command which will go to the next depot chest if the other depot chest is "blocked"
Thanks
//nomacro

silis
08-11-2012, 08:19 PM
this is already possible...

Make a node/stand in depot, then a label to call Self.ReachDepot().
For example:

dofile("Forgee.lua")
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")

function onWalkerSelectLabel(labelName)
if labelName == "Depot" then
Self.ReachDepot()
wait(400, 800) -- no need to wait long because ReachDepot won't return until it's done or failed
--probably want something like
--Self.DepositItems() -- etc
end
end

You need Forgee.lua in your lua scripts folder

http://forums.xenobot.net/showthread.php?2392-Lua-functions-by-Forgee

nomacro
08-11-2012, 09:05 PM
Ah yeah i got it already:)
But i havent seen any paid script service that support this kind of stuff in their scripts
But i have a talk with the one that i bought from then :)

nomacro
08-11-2012, 09:08 PM
so "reachgrounditem" do exist then?:)

silis
08-11-2012, 09:12 PM
not yet, it "right clicks" on the item and the char reaches it, but it wont work is there are items blocking the path like parcels

nomacro
08-11-2012, 09:19 PM
Ah right:)
Well then i have to speak with the one i bought the script from to fix it i guess :)