9
3

ShakanNotebend.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/ShakanNotebend.lua
  3. Script Author : Rylec
  4. Script Date : 2021.08.18 05:08:40
  5. Script Purpose :
  6. :
  7. --]]
  8. local playerClass = 0
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. playerClass = GetClass(Spawn)
  14. local voice = MakeRandomInt(1,3)
  15. local choice = MakeRandomInt(1,2)
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1048.mp3", "", "", 0, 0, Spawn)
  17. if playerClass == 37 then
  18. conversation = CreateConversation()
  19. PlayAnimation(NPC, 10745)
  20. AddConversationOption(conversation, "What advice do you have for a fellow dirge?", "conv_01")
  21. AddConversationOption(conversation, "I certainly will. Good bye.")
  22. StartConversation(conversation, NPC, Spawn, "I thought I heard another dirge singing songs of lamentation. If I can be of any service, let me know.")
  23. else
  24. if choice == 1 then
  25. Say(NPC, "Be gone before I call the guards") -- Kelethin character?
  26. else
  27. conversation = CreateConversation() -- Qeynos character
  28. AddConversationOption(conversation, "Just looking around.")
  29. StartConversation(conversation, NPC, Spawn, "Well met, " .. GetName(Spawn) .. ". What brings you to the Elddar Grove this fine day?")
  30. end
  31. end
  32. end
  33. function conv_01(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. AddConversationOption(conversation, "That's useful to know!", "conv_02")
  37. 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.")
  38. end
  39. function conv_02(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. AddConversationOption(conversation, "That's interesting.", "conv_03")
  43. 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.")
  44. end
  45. function conv_03(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. AddConversationOption(conversation, "Thank you for the advice.")
  49. 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.")
  50. end
  51. function respawn(NPC)
  52. spawn(NPC)
  53. end