NewlynIcebreaker.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : SpawnScripts/Everfrost/NewlynIcebreaker.lua
  3. Script Author : Flunklesnarkin
  4. Script Date : 2015.10.23 01:10:49
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheStoriesofEverfrost = 167
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. if HasQuest(Spawn, TheStoriesofEverfrost) == false then
  14. Default_Chat(NPC, Spawn)
  15. elseif HasQuest(Spawn, TheStoriesofEverfrost) == true and GetQuestStep(Spawn, 167) == 2 then
  16. Default_Chat(NPC, Spawn)
  17. elseif HasQuest(Spawn, TheStoriesofEverfrost) == true and GetQuestStep(Spawn, 167) == 3 then
  18. Default_Chat(NPC, Spawn)
  19. elseif HasQuest(Spawn, TheStoriesofEverfrost) == true and GetQuestStep(Spawn, 167) == 1 then
  20. TSOE_Chat1(NPC, Spawn)
  21. end
  22. end
  23. function respawn(NPC)
  24. end
  25. function Default_Chat(NPC, Spawn)
  26. Say(NPC, "Your armor's looking a bit dinged up. Want me to take a look at it?")
  27. end
  28. function TSOE_Chat1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. AddConversationOption(conversation, "Maybe later. At the moment, I have actually just come to hear your story. What brought you to Everfrost?", "TSOE_Chat2")
  32. StartConversation(conversation, NPC, Spawn, "Hello there. You need that armor of yours fixed up?")
  33. end
  34. function TSOE_Chat2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. AddConversationOption(conversation, "I see. So is it very different?", "TSOE_Chat3")
  38. StartConversation(conversation, NPC, Spawn, "Why, any good son or daughter of Halas would. This may not be exactly as our people remember it, but it's still our homeland, changed or not.")
  39. end
  40. function TSOE_Chat3(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. AddConversationOption(conversation, "But there are some tokens left?", "TSOE_Chat4")
  44. StartConversation(conversation, NPC, Spawn, "How should I know? My people don't live so long as the elves, or even the humans for that matter... I can say that from the stories, though, it is different. The Rending tore her up good and sure.")
  45. end
  46. function TSOE_Chat4(NPC, Spawn)
  47. SetStepComplete(Spawn, TheStoriesofEverfrost, 1)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. AddConversationOption(conversation, "I see, I see.")
  51. StartConversation(conversation, NPC, Spawn, "Aye, there are still the beautiful peaks, and the feel of the land is still there. It is cold and bitter, but beautiful and enduring, much like us.")
  52. end