CenturionGrimboldSteadirt.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SpawnScripts/Antonica/CenturionGrimboldSteadirt.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.05.09 12:05:45
  5. Script Purpose :
  6. :
  7. --]]
  8. local LordGrimrotsScythe = 5522
  9. local greetingsTable = { "voiceover/english/voice_emotes/greetings/greetings_1_1060.mp3",
  10. "voiceover/english/voice_emotes/greetings/greetings_2_1060.mp3",
  11. "voiceover/english/voice_emotes/greetings/greetings_3_1060.mp3"};
  12. function spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. PlayFlavor(NPC, greetingsTable[math.random(#greetingsTable)], "", "", 0, 0, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. local conversation = CreateConversation()
  18. if GetQuestStep(Spawn, LordGrimrotsScythe) == 9 then
  19. AddConversationOption(conversation, "Ignar Steadirt suggested I come see you.", "Option1")
  20. end
  21. AddConversationOption(conversation, "No, not right now. Thanks.")
  22. StartConversation(conversation, NPC, Spawn, "Yes? Can I help you?")
  23. end
  24. function Option1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. local conversation = CreateConversation()
  27. AddConversationOption(conversation, "How can I help?", "Option2")
  28. StartConversation(conversation, NPC, Spawn, "Good! We can always use more help dealing with the undead. I need someone to take care of some business inside this gate. I can't risk leaving it open for long, don't want any undead escaping.")
  29. end
  30. function Option2(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. SetStepComplete(Spawn, LordGrimrotsScythe, 9)
  33. local conversation = CreateConversation()
  34. AddConversationOption(conversation, "I'll get to work.")
  35. StartConversation(conversation, NPC, Spawn, "You can help by talking with the soldiers inside the Gully. You'll find the first encampment of the dwarven unit just inside these gates. For some reason, the undead are restless. It's our job to send them back to their eternal rest. Good luck!")
  36. end
  37. function respawn(NPC)
  38. spawn(NPC)
  39. end