9
3

LieoonliooCroosinian.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/LieoonliooCroosinian.lua
  3. Script Author : Rylec
  4. Script Date : 2021.09.01 04:09:07
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. FaceTarget(NPC, Spawn)
  12. playerClass = GetClass(Spawn)
  13. local voice = MakeRandomInt(1,3)
  14. local choice = MakeRandomInt(1,9)
  15. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1047.mp3", "", "", 0, 0, Spawn)
  16. if playerClass == 36 then
  17. conversation = CreateConversation()
  18. PlayAnimation(NPC, 11682)
  19. AddConversationOption(conversation, "What advice do you have for a fellow troubador?", "conv_01")
  20. AddConversationOption(conversation, "It certainly can. Good bye.")
  21. StartConversation(conversation, NPC, Spawn, "Welcome, fellow troubador. This city can always use more talented performers!")
  22. else
  23. if choice == 1 then
  24. Say(NPC, "Be gone before I call the guards") -- Kelethin character?
  25. else
  26. conversation = CreateConversation() -- Qeynos character
  27. AddConversationOption(conversation, "Just looking around.")
  28. StartConversation(conversation, NPC, Spawn, "Well met, " .. GetName(Spawn) .. ". What brings you to the Elddar Grove this fine day?")
  29. end
  30. end
  31. end
  32. function conv_01(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. AddConversationOption(conversation, "That's useful to know!", "conv_02")
  36. 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.")
  37. end
  38. function conv_02(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. AddConversationOption(conversation, "That's interesting.", "conv_03")
  42. StartConversation(conversation, NPC, Spawn, "Our songs of cheer are incredibly valuable to others. They can embolden mages and anyone else wielding magical spells, increasing their offense and granting them the power to perform outstanding feats.")
  43. end
  44. function conv_03(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. AddConversationOption(conversation, "Thank you for the advice.")
  48. StartConversation(conversation, NPC, Spawn, "But do not neglect your weapon skills. These are essential to our survival! Uplifting songs can strengthen you and your group mates, but without a weapon to inflict damage there is no killing blow.")
  49. end
  50. function respawn(NPC)
  51. spawn(NPC)
  52. end