KylaPursglove.lua 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/KylaPursglove.lua
  3. Script Author : Rylec
  4. Script Date : 2021.09.01 05:09:26
  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.."_1053.mp3", "", "", 0, 0, Spawn)
  17. if playerClass == 40 then
  18. conversation = CreateConversation()
  19. PlayAnimation(NPC, 11287)
  20. AddConversationOption(conversation, "What advice do you have for a fellow assassin?", "conv_01")
  21. AddConversationOption(conversation, "It certainly is. Good bye.")
  22. StartConversation(conversation, NPC, Spawn, "Ah, another assassin! It is a dangerous profession that you have chosen, but well worth it.")
  23. else
  24. if choice == 1 then
  25. Say(NPC, "Be gone before I call the guards") -- Kelethin character?
  26. else
  27. PlayFlavor(NPC, "", "To attack from the shadows is the greatest of advantages. An enemy cannot defend against an attack it can never see.", "converse", 0, 0, Spawn)
  28. end
  29. end
  30. end
  31. function conv_01(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. AddConversationOption(conversation, "I would appreciate it.", "conv_02")
  35. StartConversation(conversation, NPC, Spawn, "Understand that it goes against my very nature to give away anything I consider a trade secret, but I can part with a few bits of wisdom.")
  36. end
  37. function conv_02(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. AddConversationOption(conversation, "That's useful to know!", "conv_03")
  41. StartConversation(conversation, NPC, Spawn, "Procure 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.")
  42. end
  43. function conv_03(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. AddConversationOption(conversation, "That's interesting.", "conv_04")
  47. StartConversation(conversation, NPC, Spawn, "Our most devastating attacks are sudden strikes to vital organs from a cover of darkness. These opportunistic attacks performed under a cover of concealment surprises our target, thus giving them less chance to protect themselves.")
  48. end
  49. function conv_04(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. AddConversationOption(conversation, "What should I do then?", "conv_05")
  53. StartConversation(conversation, NPC, Spawn, "Keep in mind that the majority of our 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, as positional attacks are of little use when you're surrounded!")
  54. end
  55. function conv_05(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. AddConversationOption(conversation, "Thank you for the advice.")
  59. StartConversation(conversation, NPC, Spawn, "I suggest you employ a divide and conquer tactic, and cut them down as fast as possible. And do not overlook the power of poisons, in any situation!")
  60. end
  61. function respawn(NPC)
  62. spawn(NPC)
  63. end