Results 1 to 4 of 4

Thread: What is wrong?

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Question What is wrong?

    Code:
    say('hi') wait(2000,2500) 
    
    while itemcount(285) > 0 or itemcount(284) > 0  or itemcount(283) >= 0
    do
    npcsay('vial') wait(1000,1200) 
    npcsay('yes') wait(1000,1200) 
    end
    wait(2000)
    npcsay('trade')
    wait(2000)
    buyitemsupto('Strong Mana Potion', 30, itemcount('Strong Mana Potion')) wait(1000)
    wait(1000,1500) 
    npcsay('bye')
    And how does the bot know how many manas you should buy here? :/
    I want a script there the bot buy 100 manas (if i have 10 on me it just gonna buy 90). I have tried in like 5h or more now :/
    Hope someone can solve the problem for me :/

  2. #2
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    >= should be >

  3. #3
    Normal User
    Join Date
    Aug 2012
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    But sometimes i dont gonna have any vials on me! Gonna throw it away :P And how does the bot know how many manas it should buy in that script? :P

  4. #4
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    The current action you got is:
    PHP Code:
    buyitemsupto('Strong Mana Potion'30itemcount('Strong Mana Potion')) wait(1000
    This will buy up to 30 strong manas. If you have 21, it will buy 9 to complete the 30



    If you want 100, just change the 30 to 100

Posting Permissions

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