ElendiaStarleaf.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/ElendiaStarleaf.lua
  3. Script Author : Rylec
  4. Script Date : 2021.08.07 05:08:04
  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. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1051.mp3", "", "", 0, 0, Spawn)
  16. if playerClass == 39 then
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "What advice do you have for a fellow ranger?", "conv_01")
  19. AddConversationOption(conversation, "It certainly is. Good bye.")
  20. StartConversation(conversation, NPC, Spawn, "Good day, fellow ranger! It is always nice to meet others that chose this rewarding profession.")
  21. else
  22. local choice = MakeRandomInt(1,2)
  23. if choice == 1 then
  24. Say(NPC, "Be gone before I call the guards") -- Kelethin character
  25. else
  26. Say(NPC, "Hello there, you seek woodlore do you?") -- Qeynos character
  27. end
  28. end
  29. end
  30. function conv_01(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. conversation = CreateConversation()
  33. AddConversationOption(conversation, "I'll keep that in mind.", "conv_02")
  34. StartConversation(conversation, NPC, Spawn, "First and foremost, be in control of the range of any fights you are involved in. Release a deadly volley of arrows from a distance, and if your foe survives long enough to engage in hand to hand combat, remember that you are also skilled at wielding daggers and swords.")
  35. end
  36. function conv_02(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. AddConversationOption(conversation, "Sounds like good advice.", "conv_03")
  40. StartConversation(conversation, NPC, Spawn, "Some of our most effective hand to hand attacks are positional, meaning you need to be behind or beside an opponent for that attack to work. So you must be aware of situations in which there are multiple foes, and avoid becoming the center of attention, as positional attacks are of little use when you're surrounded!")
  41. end
  42. function conv_03(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. AddConversationOption(conversation, "That's useful to know!")
  46. StartConversation(conversation, NPC, Spawn, "Last but not least, obtain items that add to your agility or stamina, when you find them! Agility affects both your ability to inflict damage and avoid taking damage from others. Your stamina affects your health. This is crucial.")
  47. end
  48. function respawn(NPC)
  49. spawn(NPC)
  50. end