Results 1 to 5 of 5

Thread: Special supply checker

  1. #1
    iBot User ronnblad's Avatar
    Join Date
    Aug 2012
    Location
    Sweden
    Posts
    121
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    11
    Rep Power
    5

    Post Special supply checker

    hello i need help with making a special supply checker that checks for cap, runes, potions and stamina.
    if someone could help me and make an script for all of those things so shoud i get so happy that i could fly all the way to ur contery and give you a fu**ing hugggg!


    i was thinking something like this:

    PHP Code:
    if cap Capleave 
    or 
    (
    itemcount(MPname) < (MPtoLeave
    or
    (
    itemcount(RUNEname) < (RUNEtoLeave)
    or
    (
    Stamina) < 15)
    then 
    gotolabel 
    ("refill")
    else
    gotolabel("hunt")
    end 
    and i was thinkning something like this for withdrawing the gold:

    PHP Code:
    local mana = (positive(Maxmp itemcount(Mp)) * Mpprice)
    wait(20003000)
    say('hi'wait(20003000)
    npcsay('deposit all'wait(10002000)
    npcsay('yes'wait(5001000)
    npcsay('withdraw '..Totalwait(10002000)
    npcsay('yes'wait(5001000)

    local health = (positive(MaxHP itemcount(HP)) * HPprice)
    wait(20003000)
    npcsay('withdraw '..Totalwait(10002000)
    npcsay('yes'wait(5001000)

    local rune = (positive(MaxRUNE itemcount(RUNE)) * RUNEprice)
    wait(20003000)
    npcsay('withdraw '..Totalwait(10002000)
    npcsay('yes'wait(5001000)
    npcsay('bye'wait(5001000
    but i am having a hard time to get this shiieet to work..
    Last edited by ronnblad; 09-16-2012 at 08:16 PM.

  2. #2
    Normal User blablabla's Avatar
    Join Date
    Jun 2012
    Location
    Curitiba, Brazil
    Posts
    242
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    22
    Rep Power
    5
    Your supply checker almost works. Only a few things are written wrong. Also, stamina is checked in minutes, so you need to multiply that 15 by 60. Remember that variables and functions are case sensitive. Mana is not the same as mana.

    PHP Code:
    if cap Capleave or itemcount(MPname) < MPtoLeave or itemcount(RUNEname) < RUNEtoLeave or stamina < (15 60then 
       gotolabel
    ('refill')
    else
       
    gotolabel('hunt')
    end 

  3. #3
    iBot User ronnblad's Avatar
    Join Date
    Aug 2012
    Location
    Sweden
    Posts
    121
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    11
    Rep Power
    5
    Quote Originally Posted by blablabla View Post
    Your supply checker almost works. Only a few things are written wrong. Also, stamina is checked in minutes, so you need to multiply that 15 by 60. Remember that variables and functions are case sensitive. Mana is not the same as mana.

    PHP Code:
    if cap Capleave or itemcount(MPname) < MPtoLeave or itemcount(RUNEname) < RUNEtoLeave or stamina < (15 60then 
       gotolabel
    ('refill')
    else
       
    gotolabel('hunt')
    end 
    Thank you mate, it will be tested as soon as possible!

  4. #4
    iBot User ronnblad's Avatar
    Join Date
    Aug 2012
    Location
    Sweden
    Posts
    121
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    11
    Rep Power
    5
    does anyone have any ideas how i could make the withdrawer to work?

  5. #5
    iBot User ronnblad's Avatar
    Join Date
    Aug 2012
    Location
    Sweden
    Posts
    121
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    11
    Rep Power
    5
    Ok i made it work!
    here is the code if someone else wants to use it
    PHP Code:
    local mps positive(MPtobuy itemcount(MPname)) * MPprice
    local hps 
    positive(HPtobuy itemcount(HPname)) * HPprice
    local runes 
    positive(RUNEtobuy itemcount(RUNEname)) * RUNEprice
    local Total 
    mps hps runes 

    wait
    (500,1000)
    say("hi")
    wait(1500,2000)
    npcsay("deposit all")
    wait(1000,1300)
    npcsay("yes")
    wait(1000,1300)
    npcsay("balance")
    wait(2000)
    npcsay("withdraw "..Total)
    wait(1000,1300)
    npcsay("yes")
    wait(1000,1300
    and here is abit of my setup, if you want to look something up:
    PHP Code:
    -- Potions Setup:
    MPname "mana potion" -- Name of mana potion.
    MPprice 50 -- Price of manas to buy
    MPtobuy 
    100 -- How many manas buy?
    MPtoLeave 15 -- How many manas to back reffil?

    HPname "strong health potion" -- Name of strong health potion.
    HPprice 100 -- Price of healths to buy
    HPtobuy 
    35 -- How many healths buy?
    HPtoLeave 10 -- How many healths to back reffil?

    RUNEname "heavy magic missile rune" -- (just to kill ghoust)
    RUNEprice 12 -- Price of the runes.
    RUNEtobuy 35 -- How many runes to buy.
    RUNEtoLeave -- How many runes to leave the spawn
    Last edited by ronnblad; 09-17-2012 at 05:58 AM.

Posting Permissions

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