9
3

atreantsapling.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst/atreantsapling.lua
  3. Script Purpose : a treant sapling
  4. Script Author : Scatman
  5. Script Date : 2009.05.07
  6. Script Notes :
  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