Results 1 to 3 of 3

Thread: check mana potion and health

  1. #1
    Normal User
    Join Date
    Apr 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    check mana potion and health

    hi i would like an action for him check potions (health and mana) and go to label refill and else hunt
    i put in action Manatobuy = 15 and
    Healthtobuy = 20

    if (itemcount("Mana Potion")) < Manatobuy then
    gotolabel("Refill")
    else
    gotolabel("Hunt")
    end


    also i would like another action thath he check if LootBP, GoldBP and SupplyBP is open if not he open if it's possible

  2. #2
    Normal User Nydaa's Avatar
    Join Date
    Jul 2012
    Location
    Europe
    Posts
    216
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    24
    Rep Power
    5
    With your first action it's better to make a variable in setup like "mananame = mana potion" <- can change it to whatever (great/strong etc)

    if (itemcount(mananame) < Manatobuy) or (itemcount(healthname) < Healthtobuy) then
    gotolabel("Refill")
    else gotolabel("Hunt")
    end



    Change the order/labels as you please~

    while windowcount() < 4 do
    closewindows()
    wait(500, 1000)
    openitem(mainbp, 'back')
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    openitem(supply, mainbp, true)
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    openitem(lootbp, mainbp, true)
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    openitem(goldbp, mainbp, true)
    wait(500, 1000)
    resizewindows()
    end
    Last edited by Nydaa; 06-03-2013 at 05:50 PM.

  3. #3
    Normal User
    Join Date
    Apr 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thank you

Posting Permissions

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