9
3

KashiSchoj.lua 5.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/KashiSchoj.lua
  3. Script Author : Rylec
  4. Script Date : 2021.08.29 10:08:29
  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.."_1035.mp3", "", "", 0, 0, Spawn)
  16. if playerClass == 42 then
  17. conversation = CreateConversation()
  18. PlayAnimation(NPC, 11682)
  19. AddConversationOption(conversation, "What advice do you have for a fellow beastlord?", "conv_01")
  20. AddConversationOption(conversation, "It certainly is. Good bye.")
  21. StartConversation(conversation, NPC, Spawn, "Welcome, fellow beastlord! It is such a pleasure to meet another animalist within this city.")
  22. else
  23. if choice == 1 then
  24. PlayFlavor(NPC, "voiceover/english/optional5/kerran_eco_neutral_2/ft/service/merchant/kerran_merchant_service_neutral_2_hail_gf_e4bce3ad.mp3", "Psst ... I'm cutting you in on the deal of a lifetime.", "agree", 1668699586, 882754848, Spawn)
  25. elseif choice == 2 then
  26. PlayFlavor(NPC, "voiceover/english/optional5/kerran_eco_neutral_2/ft/service/merchant/kerran_merchant_service_neutral_2_hail_gf_670060d5.mp3", "Calm down, friend. Just because this looks like your stolen backpack doesn't mean it is.", "boggle", 2037125351, 2488592551, Spawn)
  27. elseif choice == 3 then
  28. PlayFlavor(NPC, "voiceover/english/optional5/kerran_eco_neutral_2/ft/service/merchant/kerran_merchant_service_neutral_2_hail_gf_589bbb80.mp3", "Satisfaction is guaranteed, with all items fully refundable...if you can find me again.", "thumbsup", 1416046605, 1980489196, Spawn)
  29. elseif choice == 4 then
  30. PlayFlavor(NPC, "voiceover/english/optional5/kerran_eco_neutral_2/ft/service/merchant/kerran_merchant_service_neutral_2_hail_gf_8c371df0.mp3", "Don't let these deals slip through your fingers.", "point", 3644572506, 1178738876, Spawn)
  31. elseif choice == 5 then
  32. PlayFlavor(NPC, "voiceover/english/optional5/kerran_eco_neutral_2/ft/service/merchant/kerran_merchant_service_neutral_2_hail_gf_f2a55e76.mp3", "With these values it's like you're the one committing highway robbery!", "smile", 1546268499, 867906889, Spawn)
  33. elseif choice == 6 then
  34. PlayFlavor(NPC, "voiceover/english/optional5/kerran_eco_neutral_2/ft/service/merchant/kerran_merchant_service_neutral_2_hail_gf_1e754634.mp3", "Of course we deliver! I'll just need an address, key, and the times when you won't be home.", "scheme", 931400742, 1667556613, Spawn)
  35. elseif choice == 7 then
  36. PlayFlavor(NPC, "voiceover/english/optional5/kerran_eco_neutral_2/ft/service/merchant/kerran_merchant_service_neutral_2_hail_gf_48e9f7.mp3", "This merchandise is so hot it's still warm to the touch.", "wince", 3236908451, 3402344846, Spawn)
  37. elseif choice == 8 then
  38. PlayFlavor(NPC, "voiceover/english/optional5/kerran_eco_neutral_2/ft/service/merchant/kerran_merchant_service_neutral_2_hail_gf_29327bd1.mp3", "I have to dump this stuff and move out tonight. Staying one step ahead of my, uh, happy customers.", "lookaway", 975208121, 4129019150, Spawn)
  39. else
  40. Say(NPC, "Well, well, what have we here?")
  41. end
  42. end
  43. end
  44. function conv_01(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. AddConversationOption(conversation, "That's useful to know!", "conv_02")
  48. 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.")
  49. end
  50. function conv_02(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. AddConversationOption(conversation, "Spiritual Stance or Feral Stance? Got it.", "conv_03")
  54. StartConversation(conversation, NPC, Spawn, "We have multiple stances. While in our Feral Stance we can inflict devastating damage with assistance from our warder. Our offense is substantially reduced while in Spiritual Stance, but we can assist our group in many other ways, with heals or energy restoration, for example.")
  55. end
  56. function conv_03(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. AddConversationOption(conversation, "Ah, this is good to know!", "conv_04")
  60. StartConversation(conversation, NPC, Spawn, "Keep in mind that some of our attacks are positional, meaning you need to be behind or beside an opponent for that attack to work. Also, some attacks require stealth. Most of these abilities are learned from our warders. Speaking of which, we learn skills by working with our warders and they become more powerful the more we bond with them.")
  61. end
  62. function conv_04(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. AddConversationOption(conversation, "Thank you for the advice.")
  66. StartConversation(conversation, NPC, Spawn, "Focus on improving your own skills for your opponent is sure to be defeated in the face of your growing prowess.")
  67. end
  68. function respawn(NPC)
  69. spawn(NPC)
  70. end