XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 3 of 3

Thread: loggout if balance less that/ npc say you do not have enough funds

  1. #1

    Join Date
    Feb 2013
    Posts
    84
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb loggout if balance less that/ npc say you do not have enough funds

    hi, basic what im looking for is a script that will go to label logout if im trying to restock and i don't have enough money in the bank, rather than it just going anyway and end up dying.
    Any help with this would be awesome.

    Thanks In Advance

    Daffik

  2. #2
    Senior Member svennn's Avatar
    Join Date
    Oct 2013
    Location
    Sweden
    Posts
    458
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Daffik View Post
    hi, basic what im looking for is a script that will go to label logout if im trying to restock and i don't have enough money in the bank, rather than it just going anyway and end up dying.
    Any help with this would be awesome.

    Thanks In Advance

    Daffik
    Just add a checker after it was at bank to check if you have enough money to afford refill. If it doesn't, do Walker.Stop() or os.exit()

    aka

    if self.money() < (potcost*potamount) then
    walker.stop()
    os.exit()
    end

    very simplified, but you get the point.
    Last edited by svennn; 12-03-2014 at 02:24 PM.

    #World-Traded 5kk with PunktG
    #Currently Selling Several Accounts on Aurora

  3. #3

    Join Date
    Feb 2013
    Posts
    84
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    i figured it out in the end, but thanks a bunch
    here is how i done it

    if (labelName == "check-cash") then
    if (Self.ItemCount(3034) == 0) and (Self.ItemCount(3035) == 0) then
    Walker.Goto("log-off")
    print([[Not Enough Money To Buy supllies, Time To Log Off]])
    else
    Walker.Goto("go-buy-pots")
    print([[Enough Money To Buy supllies, Lets Hunt]])
    end

Posting Permissions

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