9
3

asunshimmerspriteDif7.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/asunshimmerspriteDif7.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.19 05:10:13
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/CatalogueQuestUpdates.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. RandomMovementFlight(NPC, Spawn, 5, -5, 2, -2, 2, 8, 15)
  13. end
  14. function respawn(NPC, Spawn)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. end
  20. function casted_on(NPC, Spawn, Message)
  21. if Message == "Catalogue Creature" then
  22. if HasQuest(Spawn, Catalogue) and GetQuestStepProgress(Spawn,Catalogue,2) == 0 then
  23. SetStepComplete(Spawn, Catalogue, 2)
  24. local con = CreateConversation()
  25. AddConversationOption(con, "Close the entry.")
  26. StartDialogConversation(con, 1, NPC, Spawn, "Sunshimmer Sprite\n\n \"Sprites are a newer addition to the Oakmyst since The Cataclysm. Supposedly hailing from more enchanted waters, they were swept in from the torrential winds. It is hard to say what terms they have made with the resident fairies. Unlike the fairies here in Oakmyst, sprites are known to be true to their word.\"\n\n-Tracker Kelnis") end
  27. end
  28. end