frozen_cherries_1.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/Graystone/frozen_cherries_1.lua
  3. Script Purpose : frozen_cherries_1
  4. Script Author : Scatman
  5. Script Date : 2009.10.05
  6. Script Notes : frozen_cherries_3 gives quest update
  7. --]]
  8. local DWARF_MENTOR_QUEST_1 = 283
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, DWARF_MENTOR_QUEST_1, 1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. end
  17. function casted_on(NPC, Spawn, SpellName)
  18. if HasQuest(Spawn, DWARF_MENTOR_QUEST_1) and not QuestStepIsComplete(Spawn, DWARF_MENTOR_QUEST_1, 1) and SpellName == "Search barrel" then
  19. conversation = CreateConversation()
  20. AddConversationOption(conversation, "Check for Frozen Cherries.", "CheckForCherries")
  21. StartDialogConversation(conversation, 1, NPC, Spawn, "This is marked as being part of shipment #4QGCG.")
  22. end
  23. end
  24. function CheckForCherries(NPC, Spawn)
  25. conversation = CreateConversation()
  26. AddConversationOption(conversation, "Leave the shipment alone.", "CloseConversation")
  27. StartDialogConversation(conversation, 1, NPC, Spawn, "There doesn't appaer to be any Frozen Cherries in this barrel, perhaps one of the others.")
  28. end