9
3

atreantsapling.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/atreantsapling.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.19 01:10:30
  5. Script Purpose :
  6. :
  7. --]]
  8. local QUEST_FROM_NEOLA = 228
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. conversation = CreateConversation()
  17. if HasQuest(Spawn, QUEST_FROM_NEOLA) and GetQuestStep(Spawn, QUEST_FROM_NEOLA) == 2 then
  18. AddConversationOption(conversation, "Sprinkle Smitelin's Excel-a-gro onto the sapling.", "Again")
  19. end
  20. AddConversationOption(conversation, "Farewell little shrub.")
  21. StartConversation(conversation, NPC, Spawn, "...")
  22. end
  23. -----------------------------------------------------------------------------------------------------------------------------------
  24. -- QUEST FROM NEOLA
  25. -----------------------------------------------------------------------------------------------------------------------------------
  26. function Again(NPC, Spawn)
  27. SetStepComplete(Spawn, QUEST_FROM_NEOLA, 2)
  28. FaceTarget(NPC, Spawn)
  29. conversation = CreateConversation()
  30. AddConversationOption(conversation, "Farewell little shrub.")
  31. StartConversation(conversation, NPC, Spawn, "...")
  32. end