Results 1 to 4 of 4

Thread: need help

  1. #1
    iBot User
    Join Date
    Mar 2012
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    10
    Rep Power
    5

    need help

    hello how can i can make one check for my money, if have withdraw or no if not withdraw he back to label bank if he gets he go to label get_potions
    i use this for calc
    Code:
    local mana = positive(240 - itemcount("mana potion")) * 50
    local Total = mana + 500
    thanks

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    local mana positive(240 itemcount("mana potion")) * 50
    local Total 
    mana 500

    depositall
    () wait(1000)
    npcsay("withdraw "..Totalwait(1000)
    npcsay("yes"wait(1000)

    if 
    gold() < Total then
        gotolabel
    ("bank")
    else
        
    gotolabel("get_potions")
    end 

  3. #3
    iBot User
    Join Date
    Mar 2012
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    10
    Rep Power
    5
    i will test at night thanks ;*

  4. #4
    iBot User
    Join Date
    Mar 2012
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    10
    Rep Power
    5
    its works love u

Posting Permissions

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