Results 1 to 4 of 4

Thread: Help With One Action For Check

  1. #1
    Normal User Serrgio's Avatar
    Join Date
    Feb 2012
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Help With One Action For Check

    I made one script but the action for check doesnt work here is the setup:
    -- BRIMSTONE BUGS HIDDEN 100% AFK

    -- Setup:

    -- Backpack Setup:

    MainBP = "Yellow Backpack" -- Main Bp
    PotBP = "Green Backpack" -- Backpack for potions
    LootBP = "Red Backpack" -- Backpack For Loot
    GoldBP = "Brocade Backpack" -- Backpack For Gold

    -- Cap and Pots setup
    ManasToBuy = 500 -- How many manas do you wants to the bot buy
    ManaName = "mana potion" -- mana type
    Captoleave = 200 -- What cap do you want to leave the cave
    ManasToLeave = 40 -- How many manas do you want to leave the cave
    ManaPrice = 50 -- Mana Price
    HealthToBuy = 15
    HealthName = "ultimate health potion"
    HealthPrice = 310

    and when i put this action for check
    if itemcount(ManaName) > ManasToLeave and cap > CaptoLeave then
    gotolabel("hunt")
    end
    dont work :S

    but if i put if itemcount(ManaName) > 40 and cap > 200 then
    gotolabel("hunt")
    end
    it works, someone can help me please?

    thanks, btw sorry for my bad english
    end

  2. #2
    iBot User lele's Avatar
    Join Date
    Feb 2012
    Location
    Erechim - RS
    Posts
    426
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    20
    Rep Power
    5
    PHP Code:
    if itemcount(ManaName) > ManasToLeave and cap Captoleave then
    gotolabel
    ("hunt")
    end 
    Remenber: CaptoLeave is different than Captoleave.

  3. #3
    Banned
    Join Date
    Apr 2012
    Location
    Juiz De Fora
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    2
    Rep Power
    0
    Captoleave = 200 -- What cap do you want to leave the cave

    cap > CaptoLeave then

  4. #4
    Normal User Serrgio's Avatar
    Join Date
    Feb 2012
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Solve, 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
  •