Results 1 to 2 of 2

Thread: MP buyer doesnt work, help to improve

  1. #1
    Normal User
    Join Date
    Aug 2012
    Location
    Askara
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5

    Question MP buyer doesnt work, help to improve

    Hi, im using this in my cavebot as action for buyin mp, but it doesnt work, bot just standing with open trade and do nothing, any help?

    PHP Code:
    local HP_TO_BUY positive(HP_AMOUNT-itemcount(HP))
    local MP_TO_BUY positive(MP_AMOUNT-itemcount(MP))

    if 
    Client.isTradeOpened() then
       
    if HP_AMOUNT and itemcount(HP) < HP_AMOUNT then
         buyitems
    (HP,HP_TO_BUY)
         
    wait(1000,2000)
       
    end

       
    if MP_AMOUNT and itemcount(MP) < MP_AMOUNT then
         buyitems
    (MP,MP_TO_BUY)
         
    wait(1000,2000)
       
    end
    else
       
    gotolabel(wpt.id-2)
    end 
    as i suppose the IF.. is not workinh, gotta same problem with talking to npc but fix was easy, here i dont know how, any ideas?
    Last edited by phate; 07-12-2013 at 06:32 PM.

  2. #2
    Normal User
    Join Date
    Aug 2012
    Location
    Askara
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    solved. closed.

Posting Permissions

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