Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Första trigger:
- function(event, unitId, _, _, _, spellId)
- if(unitId == "player" and spellId == 116011) then
- if (RoP_TIMER == nil) then
- RoP_TIMER = 1
- return true
- elseif (RoP_TIMER == 1) then
- RoP_TIMER = 2
- return true
- elseif (RoP_TIMER == 2) then
- RoP_TIMER = 3
- return false
- elseif (RoP_TIMER == 3) then
- RoP_TIMER = nil
- return false
- end
- return false
- end
- end
- Andra trigger:
- function(event, unitId, _, _, _, spellId)
- if(unitId == "player" and spellId == 116011) then
- print ("Trigger 2:", RoP_TIMER)
- if (RoP_TIMER == nil) then
- RoP_TIMER = 1
- return false
- elseif (RoP_TIMER == 1) then
- RoP_TIMER = 2
- return false
- elseif (RoP_TIMER == 2) then
- RoP_TIMER = 3
- return true
- elseif (RoP_TIMER == 3) then
- RoP_TIMER = nil
- return true
- end
- return false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement