aRommulsloyalist.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/aRommulsloyalist.lua
  3. Script Purpose : a Rommuls loyalist
  4. Script Author : John Adams (Updated by Cynnar 2018.06.22 09:06:28)
  5. Script Date : 2009.04.10
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local HALFELF_MENTOR_QUEST_4 = 317 -- Thaen Sevellos
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. if HasQuest(Spawn, HALFELF_MENTOR_QUEST_4) and GetQuestStep(Spawn, HALFELF_MENTOR_QUEST_4) == 1 then
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_rommuls_loyalist/fprt_hood04/quests/captor/thug000.mp3", "", "", 1922921489, 2760341303, Spawn)
  19. AddConversationOption(conversation, "I know what I'm doing; release your prisoner.", "dlg_27_1")
  20. AddConversationOption(conversation, "Fine, I'll leave.")
  21. StartConversation(conversation, NPC, Spawn, "Watch where you point your nose, pal, you don't want to lose it.")
  22. end
  23. end
  24. function dlg_27_1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. conversation = CreateConversation()
  27. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_rommuls_loyalist/fprt_hood04/quests/captor/thug001.mp3", "", "", 835606330, 2405395928, Spawn)
  28. AddConversationOption(conversation, "Your prisoner is of the Ayr'Dal Brotherhood. You hold him yet he has committed no crime.", "dlg_27_2")
  29. StartConversation(conversation, NPC, Spawn, "Hah, not a chance!")
  30. end
  31. function dlg_27_2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_rommuls_loyalist/fprt_hood04/quests/captor/thug002.mp3", "", "", 3750086716, 2767526036, Spawn)
  35. AddConversationOption(conversation, "I am not afraid of using force.", "dlg_27_3")
  36. StartConversation(conversation, NPC, Spawn, "Oooh, so you're one of them, huh? Well guess what, I ain't moving.")
  37. end
  38. function dlg_27_3(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_rommuls_loyalist/fprt_hood04/quests/captor/thug003.mp3", "", "", 1311881842, 4106998175, Spawn)
  42. AddConversationOption(conversation, "Very well. [fight]", "MakeAttackablePlease")
  43. StartConversation(conversation, NPC, Spawn, "Make your move.")
  44. end
  45. function MakeAttackablePlease(NPC, Spawn)
  46. --Rom2 = GetSpawn(Spawn, 1370157)
  47. local zone = GetZone(NPC)
  48. local Rom2 = GetSpawnByLocationID(zone, 403037)
  49. SpawnSet(NPC, "show_level", 1)
  50. SpawnSet(Rom2, "show_level", 1)
  51. AddHate(Spawn, NPC, 100)
  52. AddHate(Spawn, Rom2, 100)
  53. end
  54. function death(NPC, Spawn)
  55. --Rom2 = GetSpawn(Spawn, 1370157)
  56. local zone = GetZone(NPC)
  57. local Rom2 = GetSpawnByLocationID(zone, 403037)
  58. if Rom2 == nil or not IsAlive(Rom2) then
  59. SetStepComplete(Spawn, HALFELF_MENTOR_QUEST_4, 1)
  60. local Thaen = GetSpawn(Spawn, 1370066)
  61. Despawn(Thaen, 30000)
  62. end
  63. end