9
3

honey_3.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/Graystone/honey_3.lua
  3. Script Purpose : honey_3
  4. Script Author : Scatman
  5. Script Date : 2009.10.05
  6. Script Notes :
  7. --]]
  8. local DWARF_MENTOR_QUEST_1 = 283
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, DWARF_MENTOR_QUEST_1, 3)
  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, 3) and SpellName == "Search barrel" then
  19. conversation = CreateConversation()
  20. AddConversationOption(conversation, "Check for honey.", "CheckForHoney")
  21. StartDialogConversation(conversation, 1, NPC, Spawn, "This is marked as being part of shipment #QGC4F.")
  22. end
  23. end
  24. function CheckForHoney(NPC, Spawn)
  25. conversation = CreateConversation()
  26. AddConversationOption(conversation, "Leave the shipment alone.", "CloseConversation")
  27. StartDialogConversation(conversation, 1, NPC, Spawn, "There doesn't appear to be any honey in this barrel, perhaps one of the others.")
  28. end