
Originally Posted by
maroxy
You can add this:
lua code:if Self.Position(x, z, y) then
Walker.Goto("DepositGold")
else
Walker.Goto("BeforeDeposit")
end
Rekt.
(My post below is not relevant to this thread.)
Additionally, you can do:
lua code:
Walker.ConditionalGoto((Self.DistanceFromPosition(x, y, z) <= 1), 'DepositGold', 'BeforeDeposit')
Also, your y & z coordinates were in the wrong locations. I hope these isn't seen as an offensive post but rather one that you, and whoever else sees it, can learn from. I like seeing Walker.ConditionalGoto being used instead of the method you posted, its less code and pretty simplified.