Results 1 to 4 of 4

Thread: This action stopped working after update. Anyone who can rewrite it?

  1. #1
    iBot User
    Join Date
    May 2012
    Posts
    334
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    48
    Rep Power
    5

    This action stopped working after update. Anyone who can rewrite it?

    This action stopped working, anyone who can fix it/rewrite it? thanks


    local mana = positive(MPtobuy - itemcount(MPname))*MPprice
    local food = positive(Foodtobuy - itemcount(Food))* Foodprice
    local Total = mana + food

    wait(1500,2500)
    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,400)
    end
    Follow my project! - curry's Project [Sponsored by Eli Scripts]

    MASSIVE CHARACTER SELLOUT - CHECK THIS OUT

  2. #2
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Debug log?

  3. #3
    Banned
    Join Date
    Jan 2013
    Posts
    1,792
    Mentioned
    37 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    76 Post(s)
    Reputation
    191
    Rep Power
    0
    Try this

    Lua Code:
     
    local mana = positive(MPtobuy - itemcount(MPname)) * MPprice
    local food = positive(Foodtobuy - itemcount(Food)) * Foodprice
    local Total = mana + food
     
    wait(1500,2500)
    say("hi")
    wait(1500,2500)
    npcsay("deposit all")
    wait(200,300)
    npcsay("yes")
    wait(200,300)
     
    if gold() ~= Total then
       npcsay("withdraw " .. Total)
       wait(200,300)
       npcsay("yes")
       wait(200,300)
       npcsay("balance")
       wait(200,400)
    end

  4. #4
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    Quote Originally Posted by ampegox View Post
    Try this

    Lua Code:
     
    local mana = positive(MPtobuy - itemcount(MPname)) * MPprice
    local food = positive(Foodtobuy - itemcount(Food)) * Foodprice
    local Total = mana + food
     
    wait(1500,2500)
    say("hi")
    wait(1500,2500)
    npcsay("deposit all")
    wait(200,300)
    npcsay("yes")
    wait(200,300)
     
    if gold() ~= Total then
       npcsay("withdraw " .. Total)
       wait(200,300)
       npcsay("yes")
       wait(200,300)
       npcsay("balance")
       wait(200,400)
    end
    gold() < Total will be better imho

Posting Permissions

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