AdjunctCaptainRommuls.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/Adjunct-CaptainRommuls.lua
  3. Script Purpose : Adjunct-Captain Rommuls
  4. Script Author : John Adams (rewritten by Cynnar)
  5. Script Date : 2009.04.07
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local A_BROTHERHOOD_ENFORCER = 1370064
  9. function spawn(NPC)
  10. SetMount(NPC, 6831)
  11. SetMountColor(NPC, 1, 1, 1, 255, 1, 1)
  12. MoveToLocation(NPC, -8.13, 4.00, -42.68, 3, "", true)
  13. MoveToLocation(NPC, -14.43, 3.57, -27.02, 3, "", false)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. end
  20. function Talk1(NPC)
  21. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/adjunct-captain_rommuls/fprt_hood04/qst_rommuls_seeexplosion_f4d0194c.mp3", "What's all this?!", "", 2343755495, 1390123839)
  22. local enforcer = GetSpawn(NPC, A_BROTHERHOOD_ENFORCER)
  23. if enforcer ~= nil then
  24. AddTimer(enforcer, 1500, "E_Talk1")
  25. end
  26. end
  27. function Talk2(NPC)
  28. local zone = GetZone(NPC)
  29. local enforcer1 = GetSpawnByLocationID(zone, 403031)
  30. local enforcer2 = GetSpawnByLocationID(zone, 403032)
  31. local enforcer3 = GetSpawnByLocationID(zone, 403033)
  32. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/adjunct-captain_rommuls/fprt_hood04/qst_rommuls_grrr_5833be16.mp3", "I have fared better against worse odds... but I shall comply, for now.", "", 148659455, 3381420393)
  33. AddTimer(NPC, 1999, "moveRommuls")
  34. AddTimer(enforcer1, 1999, "move_enforcer1")
  35. AddTimer(enforcer2, 1999, "move_enforcer2")
  36. AddTimer(enforcer3, 1999, "move_enforcer3")
  37. end
  38. function Talk3(NPC)
  39. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/adjunct-captain_rommuls/fprt_hood04/qst_rommuls_ohno_48ef4e64.mp3", "You won't get away with this you... you elves!", "", 2960277190, 1354555525)
  40. AddTimer(NPC, 10000, "DespawnRommulus")
  41. end
  42. function DespawnRommulus(NPC)
  43. Despawn(NPC)
  44. end
  45. function moveRommuls(NPC)
  46. MoveToLocation(NPC, -24.59, 2.00, -7.14, 3, "Talk3", true)
  47. MoveToLocation(NPC, -24.59, 2.00, -7.14, 3, "DespawnRommulus", false)
  48. --if enforcer ~= nil then
  49. --MoveToLocation(enforcer1, -8.13, 4.00, -42.68, 3, "DespawnRommulus", false)
  50. --MoveToLocation(enforcer2, -24.59, 2.00, -7.14, 3, "DespawnRommulus", false)
  51. --MoveToLocation(enforcer3, -24.59, 2.00, -7.14, 3, "DespawnRommulus", false)
  52. --end
  53. end