9
3

GilnaGlorysong.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/GilnaGlorysong.lua
  3. Script Purpose : dirge trainer in Halas
  4. Script Author : theFoof
  5. Script Date : 2013.9.24
  6. Script Notes :
  7. --]]
  8. local DIRGE = 37
  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 GetClass(Spawn) == DIRGE then
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  19. AddConversationOption(conversation, "What advice do you have for a fellow dirge?", "DirgeChat1")
  20. AddConversationOption(conversation, "I certainly will. Good bye.")
  21. StartConversation(conversation, NPC, Spawn, "I thought I heard another dirge singing songs of lamentation. If I can be of any service, let me know.")
  22. else
  23. PlayFlavor(NPC, "", "La! La! La!", "hello", 0, 0, Spawn)
  24. end
  25. end
  26. function DirgeChat1(NPC, Spawn)
  27. conversation = CreateConversation()
  28. FaceTarget(NPC, Spawn)
  29. AddConversationOption(conversation, "That's useful to know!", "DirgeChat2")
  30. StartConversation(conversation, NPC, Spawn, "If you find items that add to your agility or stamina, then take them! Agility affects both your ability to inflict damage and avoid taking damage from others. Your stamina affects your health. This is crucial.")
  31. end
  32. function DirgeChat2(NPC, Spawn)
  33. conversation = CreateConversation()
  34. FaceTarget(NPC, Spawn)
  35. AddConversationOption(conversation, "That's interesating.", "DirgeChat3")
  36. StartConversation(conversation, NPC, Spawn, "Our songs of despair are incredibly valuable to others. They can bolster both fighters and other scouts by increasing their defense and offense. And the most experienced dirges can even raise a fallen comrade with a song.")
  37. end
  38. function DirgeChat3(NPC, Spawn)
  39. conversation = CreateConversation()
  40. FaceTarget(NPC, Spawn)
  41. AddConversationOption(conversation, "Thank you for the advice.")
  42. StartConversation(conversation, NPC, Spawn, "But do not neglect your melee skills. These are essential to our survival! Songs of despair can demoralize and weaken your foe, but without a weapon to inflict damage there is no killing blow.")
  43. end