Advertisement
Guest User

Fixat kod

a guest
Apr 1st, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. Första trigger:
  2. function(event, unitId, _, _, _, spellId)
  3. if(unitId == "player" and spellId == 116011) then
  4. if (RoP_TIMER == nil) then
  5. RoP_TIMER = 1
  6. return true
  7. elseif (RoP_TIMER == 1) then
  8. RoP_TIMER = 2
  9. return true
  10. elseif (RoP_TIMER == 2) then
  11. RoP_TIMER = 3
  12. return false
  13. elseif (RoP_TIMER == 3) then
  14. RoP_TIMER = nil
  15. return false
  16. end
  17.  
  18. return false
  19. end
  20. end
  21.  
  22.  
  23.  
  24. Andra trigger:
  25. function(event, unitId, _, _, _, spellId)
  26. if(unitId == "player" and spellId == 116011) then
  27. print ("Trigger 2:", RoP_TIMER)
  28. if (RoP_TIMER == nil) then
  29. RoP_TIMER = 1
  30. return false
  31. elseif (RoP_TIMER == 1) then
  32. RoP_TIMER = 2
  33. return false
  34. elseif (RoP_TIMER == 2) then
  35. RoP_TIMER = 3
  36. return true
  37. elseif (RoP_TIMER == 3) then
  38. RoP_TIMER = nil
  39. return true
  40. end
  41.  
  42. return false
  43. end
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement