1234567891011121314151617181920212223242526272829303132333435363738 |
- --[[
- Script Name : SpawnScripts/Castleview/planter_4.lua
- Script Purpose : planter_4
- Script Author : Scatman
- Script Date : 2009.10.02
- Script Notes :
- --]]
- local HIGH_ELF_MENTOR_QUEST_2 = 224
- function spawn(NPC)
- SetRequiredQuest(NPC, HIGH_ELF_MENTOR_QUEST_2, 4)
- end
- function hailed(NPC, Spawn)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function casted_on(Target, Caster, SpellName)
- if HasQuest(Caster, HIGH_ELF_MENTOR_QUEST_2) and not QuestStepIsComplete(Caster, HIGH_ELF_MENTOR_QUEST_2, 4) and SpellName == "Plant Seeds" then
- conversation = CreateConversation()
- AddConversationOption(conversation, "Plant the seeds.", "PlantSeeds")
- StartDialogConversation(conversation, 1, Target, Caster, "This is one of the planters that Vindain spoke of.")
- end
- end
- function PlantSeeds(NPC, Spawn)
- SetStepComplete(Spawn, HIGH_ELF_MENTOR_QUEST_2, 4)
- local GreenWisp = SpawnMob(GetZone(Spawn), 2360166, false, 742.82, -14.4122, -165.919, 229.984)
- Despawn(GreenWisp, 300000)
-
- conversation = CreateConversation()
- AddConversationOption(conversation, "Leave the planter.", "CloseConversation")
- StartDialogConversation(conversation, 1, NPC, Spawn, "You place a seed, some soil, and some water into the planter. A fresh green wisp plant begins to grow at a surprising rate.")
- end
|