9
3

FlizzleCogplume.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/FlizzleCogplume.lua
  3. Script Author : Rylec
  4. Script Date : 2021.08.13 02:08:24
  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.."_1040.mp3", "", "", 0, 0, Spawn)
  16. if playerClass == 33 then
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "What advice do you have for a fellow swashbuckler?", "conv_01")
  19. AddConversationOption(conversation, "It certainly is. Good bye.")
  20. StartConversation(conversation, NPC, Spawn, "Welcome, fellow swashbuckler! It is such a pleasure to meet another dashing rogue within this city.")
  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, "Well, well, what have we here?") -- Qeynos character
  27. end
  28. end
  29. end
  30. function conv_01(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. conversation = CreateConversation()
  33. AddConversationOption(conversation, "That's useful to know!", "conv_02")
  34. 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.")
  35. end
  36. function conv_02(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. AddConversationOption(conversation, "That's interesting.", "conv_03")
  40. StartConversation(conversation, NPC, Spawn, "We have talents in dealing damage but we are particularly skilled at weakening our opponent's attacks.")
  41. end
  42. function conv_03(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. AddConversationOption(conversation, "I bet it is!", "conv_04")
  46. 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. But thankfully, we have enough devastating attacks that are straightforward and can be used from any position. This is very useful when dealing with multiple opponents!")
  47. end
  48. function conv_04(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. AddConversationOption(conversation, "Thank you for the advice.")
  52. 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.")
  53. end
  54. function respawn(NPC)
  55. spawn(NPC)
  56. end