XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 72

Thread: Self.Balance()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    XenoBot Scripts Developer Joshwa534's Avatar
    Join Date
    May 2012
    Location
    Texas, USA
    Posts
    4,890
    Mentioned
    517 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by maroxy View Post
    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.
    Last edited by Joshwa534; 08-19-2014 at 08:49 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •