FirionaVie.lua 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/FirionaVie.lua
  3. Script Author : TyroneSWG
  4. Script Date : 2020.07.01 08:07:55
  5. Script Purpose : General Testing Information.
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. FaceTarget(NPC, Spawn)
  12. conversation = CreateConversation()
  13. PlaySound(NPC, "blah.mp3", GetX(NPC), GetY(NPC), GetZ(NPC))
  14. AddConversationOption(conversation, "How do I get to the Discord?", "Choice1")
  15. AddConversationOption(conversation, "How do I use commands?", "Choice2")
  16. AddConversationOption(conversation, "I need gear!", "Choice3")
  17. AddConversationOption(conversation, "Can you take me to Memorial Island please?", "Choice4")
  18. AddConversationOption(conversation, "I do not require anything at this time.", "EndConvo")
  19. StartConversation(conversation, NPC, Spawn, "Hail, Adventurer. How may I assist you?")
  20. end
  21. function Choice1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. conversation = CreateConversation()
  24. AddConversationOption(conversation, "Thank you!")
  25. StartConversation(conversation, NPC, Spawn, "Visit the website to get a link to the Discord server. There you will find many useful resources.")
  26. end
  27. function Choice2(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. conversation = CreateConversation()
  30. AddConversationOption(conversation, "Thank you!")
  31. StartConversation(conversation, NPC, Spawn, "Visit the Wiki to view the list of commands players can use to help test.")
  32. end
  33. function Choice3(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. AddConversationOption(conversation, "Thank you!")
  37. StartConversation(conversation, NPC, Spawn, "This magical creature next to me will give you what you need to start your adventure!")
  38. CloseConversation()
  39. end
  40. function Choice4(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. Emote(NPC, "begins casting Call of the Beyond")
  44. StartConversation(conversation, NPC, Spawn, "Sending you away!")
  45. Zone(GetZone(816), Spawn, 48.28, -1.08, 44.05, 221.37)
  46. end
  47. function EndConvo(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. AddConversationOption(conversation, "Thank you!")
  51. StartConversation(conversation, NPC, Spawn, "Farewell, I will be here if you need information!")
  52. Emote(NPC, "waves")
  53. CloseConversation()
  54. end
  55. function respawn(NPC)
  56. end