Results 1 to 5 of 5

Thread: Action Check Capacity

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

    Action Check Capacity

    Por favor, alguem pode ajudar a fazer um check de cap

    Ex.
    if countitem("Mana Potion") < 50 then gotolabel ("x")
    else
    gotolabel ("y")
    end

    Porem quero fazer com que ele cheque a CAPACIDADE.

    Grato.

  2. #2
    Normal User dragonicevo's Avatar
    Join Date
    May 2012
    Location
    canada
    Posts
    1,600
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    65
    Rep Power
    8
    wait(300)
    if itemcount(mana) < manamin
    or itemcount(hpotion) < hpotionmin
    or cap < Capleave
    or posz ~= 8
    then gotolabel("Leave2")
    end
    -- Setup

    --BP Setup
    MainBP = "Blue Backpack"
    LootBP = "Camouflage Backpack"
    GoldBP = "Orange Backpack"

    --Depot Backpack
    DepotBP = "Red Backpack"

    foodname = "egg"
    foodmax = 200

    --Potions Configuration

    mana = "mana potion"
    manamax = 150
    manamin = 50
    manaprice = 50

    hpotion = "strong health potion"
    hpotionmax = 30
    hpotionmin = 10
    hpotionprice = 100

    Capleave = 50
    http://www.tibiaibot.com/forum/showt...2925#post42925 for basic setup for knight

    If i helped or you liked my scripts rep + me

    trusted free scripts by pink_panther and 3173654 and acid alchamy and marlhex and spens13

  3. #3
    Normal User
    Join Date
    Jul 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by dragonicevo View Post
    wait(300)
    if itemcount(mana) < manamin
    or itemcount(hpotion) < hpotionmin
    or cap < Capleave
    or posz ~= 8
    then gotolabel("Leave2")
    end
    -- Setup

    --BP Setup
    MainBP = "Blue Backpack"
    LootBP = "Camouflage Backpack"
    GoldBP = "Orange Backpack"

    --Depot Backpack
    DepotBP = "Red Backpack"

    foodname = "egg"
    foodmax = 200

    --Potions Configuration

    mana = "mana potion"
    manamax = 150
    manamin = 50
    manaprice = 50

    hpotion = "strong health potion"
    hpotionmax = 30
    hpotionmin = 10
    hpotionprice = 100

    Capleave = 50
    coloca tudo isso na aba de action? e eu nao entendi o posz ~= 8

  4. #4
    iBot User
    Join Date
    Jun 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    faz assim mano.. é mais facil

    wait(300)
    if cap < 100
    then gotolabel("Leave")
    end

  5. #5
    Normal User
    Join Date
    Mar 2012
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    19
    Rep Power
    5
    Quote Originally Posted by rafaelbortolozzo View Post
    Por favor, alguem pode ajudar a fazer um check de cap

    Ex.
    if countitem("Mana Potion") < 50 then gotolabel ("x")
    else
    gotolabel ("y")
    end

    Porem quero fazer com que ele cheque a CAPACIDADE.

    Grato.
    faz assim:

    PHP Code:
    if imtemcount("Mana Potion") < 50 or cap 100 then 
    gotolabel 
    ("x") else
    gotolabel ("y")
    end 
    REP + se ajudei :*

Posting Permissions

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