Results 1 to 3 of 3

Thread: About a funciton not work - the use of "=="

  1. #1
    Normal User
    Join Date
    May 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    9
    Rep Power
    0

    About a funciton not work - the use of "=="

    Hey i got a problem I'm trying to make a hotkey where it checks what my ring id is so i put

    if (Self.Ring().id == 3051) then

    but the problem is when i use that and i have that ring on, it doesn't do the next action i put in there like it doesn't register that that's the ring in my slot

    anyone got any ideas

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    if (ring == 3051then
        
    --execute this action
    end 
    Remember, rings id change when you equip them.

  3. #3
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    3051

    This is the ID of an energy ring that is NOT in use.

    Here is the code:
    Code:
    if (Self.Ring().id == 3088) then
    --
    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
  •