Krinolin

Maen Erkal

May 30th, 2013
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.44 KB | None | 0 0
  1. local NPC_ID = 101012
  2.  
  3. function maen_combat(event, creature, target)
  4. unit:SendChatMessage("Haha! You think you can beat me!? Fool!")
  5. end
  6.  
  7. function spell(id, delay, calls, unit)
  8. unit:CastSpellOnTarget(45185)
  9. end
  10. player:RegisterEvent(spell, 20000, 1)
  11.  
  12. function spell2(id, delay, calls, unit)
  13. unit:CastSpellOnTarget(23922)
  14. end
  15. player:RegisterEvent(spell2, 9000, 1)
  16.  
  17. function spell3(id, delay, calls, unit)
  18. unit:CastSpellOnTarget(8260)
  19. end
  20. playerRegisterEvent(spell3, 25000, 1)
  21.  
  22. function talk_40(id, delay, calls, player, unit)
  23. if player:GetHealth() <= 40 then
  24. unit:SendChatMessage("Soon you are mine, I'm gonna crush you slowly!")
  25. end
  26. player:RegisterEvent(talk_40, 1000, 1)
  27.  
  28. function talk_30(id, delay, calls, unit)
  29. if unit:GetHealth() <= 30 then
  30. unit:SendChatMessage("H-how can you be so strong? But you're not the onle one who's strong! Huagh!")
  31. unit:CastSpell(26297)
  32. end
  33. player:RegisterEvent(talk_30, 1000, 1)
  34.  
  35. function maen_death(event, creature, target)
  36. unit:SendChatMessage("Damn you, disgusting insect!")
  37. end
  38.  
  39. function maen_leavecombat(event, creature, target)
  40. unit:SendChatMessage("Haha! You disgust me!")
  41. end
  42.  
  43. function maen_targetdied(even, creature, target)
  44. unit:SendChatMessage("One more trophy to put up on my wall!")
  45. end
  46.  
  47. RegisterCreatureEvent(NPC_ID, 1, maen_combat)
  48. RegisterCreatureEvent(NPC_ID, 2, maen_leavecombat)
  49. RegisterCreatureEvent(NPC_ID, 3, maen_targetdied)
  50. RegisterCreatureEvent(NPC_ID, 4, maen_death)
Advertisement
Add Comment
Please, Sign In to add comment