Results 1 to 3 of 3

Thread: Condition to go to label

  1. #1
    iBot User
    Join Date
    Jan 2014
    Posts
    118
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    30 Post(s)
    Reputation
    14
    Rep Power
    3

    Condition to go to label

    I want a code to do this:

    If the Count of spears (all) is = 8 and The cap > to 50 goto label X
    If not go to label X

  2. #2
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    Lua Code:
     kindofweapon = "spear"
    if (weaponamount + itemcount(kindofweapon)) == 8 and cap > 50 then
    gotolabel("x")
    else
    gotolabel("x2")
    end

  3. #3
    iBot User
    Join Date
    Jan 2014
    Posts
    118
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    30 Post(s)
    Reputation
    14
    Rep Power
    3
    The code who you send didn't work
    So I create a new one who works perfectly.

    -- Spears
    WeaponName = "spear"
    MinWp = 20 -- Spears para ir embora (junto com cap abaixo)
    CapSpearLeave = 150 -- Cap para ir embora (junto com spear)
    if itemcount(WeaponName) < MinWp and cap < CapSpearLeave then
    gotolabel("gorefill")
    else
    gotolabel("w109")
    end

Posting Permissions

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