Results 1 to 6 of 6

Thread: Withdraw Gold BUG :(

  1. #1
    iBot User
    Join Date
    Mar 2013
    Posts
    54
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    4

    Withdraw Gold BUG :(

    Hello guys, my characters withdraw more gold than real need, someone can check my script? thanks


    Code:
    local manamoney = positive(MPmax - itemcount(MPtype)) * MPprice
    local vidamoney = positive(HPmax - itemcount(HPtype)) * HPprice
    local spearmoney = positive(SpearMax - itemcount(SpearType)) * SpearPrice
    local Total = manamoney + vidamoney + spearmoney
    
    say('hi')
    wait(1000,1800)
    npcsay("deposit all")
    wait(500,900)
    npcsay("yes")
    wait(500,900)
    npcsay("balance")
    wait(500,900)
    
    if Total > 0 then
       npcsay("withdraw "..Total)
       wait(200,300)
       npcsay("yes")
       wait(200,300)
    end

  2. #2
    Banned
    Join Date
    Aug 2013
    Location
    Vengoth
    Posts
    493
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    60 Post(s)
    Reputation
    82
    Rep Power
    0
    Quote Originally Posted by felipemene View Post
    Hello guys, my characters withdraw more gold than real need, someone can check my script? thanks


    Code:
    local manamoney = positive(MPmax - itemcount(MPtype)) * MPprice
    local vidamoney = positive(HPmax - itemcount(HPtype)) * HPprice
    local spearmoney = positive(SpearMax - itemcount(SpearType)) * SpearPrice
    local Total = manamoney + vidamoney + spearmoney
    
    say('hi')
    wait(1000,1800)
    npcsay("deposit all")
    wait(500,900)
    npcsay("yes")
    wait(500,900)
    npcsay("balance")
    wait(500,900)
    
    if Total > 0 then
       npcsay("withdraw "..Total)
       wait(200,300)
       npcsay("yes")
       wait(200,300)
    end
    Did you checked if the setted prices are correct? MPprice/HPprice? or the ammo price is correct? you did not misspelled any?

  3. #3
    iBot User
    Join Date
    Mar 2013
    Posts
    54
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    4
    its all ok D:

    -- Potions Settings --
    MPtype = 'strong mana potion'
    MPmax = 250
    MPmin = 80
    MPprice = 80
    HPtype = 'great spirit potion'
    HPmax = 60
    HPmin = 40
    HPprice = 190


    -- Distance Settings --
    SpearType = "prismatic bolt"
    SpearMax = 900
    SpearMin = 180
    SpearPrice = 20

  4. #4
    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
    any debugs?

  5. #5
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    Lua Code:
    local manamoney = positive(MPmax - itemcount(MPtype)) * MPprice
    local vidamoney = positive(HPmax - itemcount(HPtype)) * HPprice
    local spearmoney = positive(SpearMax - itemcount(SpearType) - ammoamount) * SpearPrice
    local Total = manamoney + vidamoney + spearmoney
     
    say('hi')
    wait(1000,1800)
    npcsay("deposit all")
    wait(500,900)
    npcsay("yes")
    wait(500,900)
    npcsay("balance")
    wait(500,900)
     
    if Total > 0 then
       npcsay("withdraw "..Total)
       wait(200,300)
       npcsay("yes")
       wait(200,300)
    end


    I added ammoamount cus that must be calculated too, check now

  6. #6
    iBot User
    Join Date
    Mar 2013
    Posts
    54
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    4
    Working now! Thanks

Posting Permissions

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