1234567891011121314151617181920212223242526272829303132333435363738394041 |
- --[[
- Script Name : SpawnScripts/Oakmyst/atreantsapling.lua
- Script Purpose : a treant sapling
- Script Author : Scatman
- Script Date : 2009.05.07
- Script Notes :
- --]]
- local QUEST_FROM_NEOLA = 228
- function spawn(NPC)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
-
- if HasQuest(Spawn, QUEST_FROM_NEOLA) and GetQuestStep(Spawn, QUEST_FROM_NEOLA) == 2 then
- AddConversationOption(conversation, "Sprinkle Smitelin's Excel-a-gro onto the sapling.", "Again")
- end
- AddConversationOption(conversation, "Farewell little shrub.")
- StartConversation(conversation, NPC, Spawn, "...")
- end
- -----------------------------------------------------------------------------------------------------------------------------------
- -- QUEST FROM NEOLA
- -----------------------------------------------------------------------------------------------------------------------------------
- function Again(NPC, Spawn)
- SetStepComplete(Spawn, QUEST_FROM_NEOLA, 2)
-
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
-
- AddConversationOption(conversation, "Farewell little shrub.")
- StartConversation(conversation, NPC, Spawn, "...")
- end
|