Results 1 to 3 of 3

Thread: If get X cap 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

    If get X cap go to label..

    I need a scrit who made, if my character get Xcap or X potion (life or mana), the atack function get off and the char go to label X..
    When the character get at the Label X, the atack function turn on..

    X is any number..
    Last edited by vital900; 01-15-2014 at 04:11 PM.

  2. #2
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Lua Code:
    local PotionName = "mana potion"
    local PotionAmount = 100
    local CapAmount = 50
     
    if cap <= CapAmount or itemcount(PotionName) <= PotionAmount then
    settargeting("no")
    gotolabel("xxx")
    end

    After wpt "xxx":
    Lua Code:
    settargeting("yes")

  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
    I put the ''lua code'' at actions and the wpt "xxx" at the waypoint label??
    Ps: you can put a floor check in that code? Because where i hunt have more than 1 floor.
    Code:
    local PotionName = "mana potion"
    local PotionAmount = 100
    local CapAmount = 50
     
    if cap <= CapAmount or itemcount(PotionName) <= PotionAmount then
    settargeting("no")
    gotolabel("xxx")
    end
    Last edited by vital900; 01-16-2014 at 06:20 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
  •