Results 1 to 2 of 2

Thread: Logical explanation why this doesn't work, thanks!

  1. #1
    Normal User catok's Avatar
    Join Date
    Jan 2013
    Location
    Sweden
    Posts
    94
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    4

    Angry Logical explanation why this doesn't work, thanks!

    PHP Code:
    sellflasks()
    wait(500,900)
    opentrade()
    wait(5001000)
    if 
    itemcount(HPname) < HowManyHP then
        buyitemsupto
    (HPnameHowManyHP)
    end
    wait
    (500,1000)
    if 
    itemcount(ManaName) < HowManyMP then
        buyitemsupto
    (ManaNameHowManyMP)
    end
    npcsay
    ('Bye')
    wait(500,1000
    PHP Code:
    npcsay("hi")
    wait(700,1300)
    npcsay("trade")
    wait(700,1300)
    buyitemsupto(AmmoName,HowMuchAmmoweaponamount+itemcount(AmmoName))
    wait(700,1300)
    end 
    This is my buying script, now why on earth doesn't this work when I added these features that have been working before? Is there something going on with iBot?

    As title follows... Logical explanation why this doesn't work, thanks!
    Last edited by catok; 04-15-2013 at 04:06 AM.
    Hard Working Scripter



    My Free Scripts:

    Knight
    EK - Mutated Mountains 50+ (option to hunt any tower)

  2. #2
    H.B.I.C
    Join Date
    May 2012
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    33
    Rep Power
    0
    Always open debug if something doesn't work. It will usually tell you whats wrong.

    On the second code, you are missing an "if then" statement

Posting Permissions

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