Results 1 to 2 of 2

Thread: Bank + potion

  1. #1
    iBot User gamalyel's Avatar
    Join Date
    Jan 2014
    Posts
    50
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    10
    Rep Power
    3

    Bank + potion

    Why is this not working?

    =(

    Where should I put it? In a regular action inside Cavebot, right?

    Lua Code:
     
     
     
    local FirstItem = 'Mana Potion'
    local FirstAmount = 1000
    local FirstPrice = 50
    local SecondItem = 'Great health potion'
    local SecondAmount = 55
    local SecondPrice = 210
     
    local First = positive(FirstAmount - itemcount(FirstItem)) * FirstPrice
    local Second = positive(SecondAmount - itemcount(SecondItem)) * SecondPrice
    local Total = First + Second
     
    say("hi")
    wait(1500,2500)
    npcsay("deposit all")
    wait(200,300) 
    npcsay("yes")
    wait(200,300) 
     
    if Total > 0 then   
       npcsay("withdraw "..Total)   
       wait(200,300)    
       npcsay("yes")   
       wait(200,300)
       npcsay("Balance")
       wait(200,300)
    end
    Last edited by Eli; 02-15-2015 at 10:19 PM.

  2. #2
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    Quote Originally Posted by gamalyel View Post
    Why is this not working?

    =(

    Where should I put it? In a regular action inside Cavebot, right?

    Lua Code:
     
     
     
    local FirstItem = 'Mana Potion'
    local FirstAmount = 1000
    local FirstPrice = 50
    local SecondItem = 'Great health potion'
    local SecondAmount = 55
    local SecondPrice = 210
     
    local First = positive(FirstAmount - itemcount(FirstItem)) * FirstPrice
    local Second = positive(SecondAmount - itemcount(SecondItem)) * SecondPrice
    local Total = First + Second
     
    say("hi")
    wait(1500,2500)
    npcsay("deposit all")
    wait(200,300) 
    npcsay("yes")
    wait(200,300) 
     
    if Total > 0 then   
       npcsay("withdraw "..Total)   
       wait(200,300)    
       npcsay("yes")   
       wait(200,300)
       npcsay("Balance")
       wait(200,300)
    end
    yes it is, a normal waypoint action.
    If its not working, check debug if you get any error

Posting Permissions

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