Results 1 to 7 of 7

Thread: Help in safe bank!

  1. #1
    Normal User Czoul's Avatar
    Join Date
    Feb 2012
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    9
    Rep Power
    0

    Help in safe bank!

    hello i need convert This Neobot Hotkey For ibot

    PHP Code:
    auto(100
    foreach 
    newmessage m do;  
    if 
    m.sender == 'Jefrey' and m.content == 'There is not enough gold on your account.' then  
    setcavebot
    ('off'
    closeclient() 
    end 
    end 

  2. #2
    iBot User Sentyment's Avatar
    Join Date
    May 2012
    Posts
    119
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    -8
    Rep Power
    0
    not better make an action if X item gold coin or crystal not enough then back to label with withdrawing gold?

  3. #3
    Normal User Czoul's Avatar
    Join Date
    Feb 2012
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    9
    Rep Power
    0
    but is more easy this action for me

  4. #4
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    345 Post(s)
    Reputation
    462
    Rep Power
    10
    Not possible to do yet.


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

  5. #5
    Normal User Nightcrawler's Avatar
    Join Date
    Apr 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    16
    Rep Power
    5
    You can use this, will work as well. You just need to edit Total for the total amount you want to check after a withdraw.

    i.e: If you have tried to withdraw 10000, but after the check you still have 0gp or less than 10000 then it will logout.

    Code:
    local Total = 10000
    
    -----
    local Gold = itemcount('Gold Coin')
    local PlatinumToGold = itemcount('Platinum Coin') * 100
    local CrystalToGold = itemcount('Crystal Coin') * 10000
    
    Gold = Gold + PlatinumToGold + CrystalToGold
    
    if Gold < Total then
      logout()
    end

  6. #6
    iBot User
    Join Date
    May 2012
    Location
    Spain
    Posts
    213
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    15 Post(s)
    Reputation
    32
    Rep Power
    5
    @nightcrawler this is not useful because if you withdraw 9k (that we will suposs u withdraw in a ramdom refill) then it will logout ;p

    Regards,

  7. #7
    Normal User Nightcrawler's Avatar
    Join Date
    Apr 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    16
    Rep Power
    5
    Quote Originally Posted by AFoxy View Post
    @nightcrawler this is not useful because if you withdraw 9k (that we will suposs u withdraw in a ramdom refill) then it will logout ;p

    Regards,
    I don't say "not useful", but situational.

    i.e I can make my "total" be the correct amount for my refill.
    Code:
    local Total = math.abs((MpToBuy - itemcount(MpId)) * MpPrice) + math.abs((HpToBuy - itemcount(HpId)) * HpPrice)

Posting Permissions

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