curfeld_quest_barrel.lua 674 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity/curfeld_quest_barrel.lua
  3. Script Purpose : <purpose>
  4. Script Author : <author-name>
  5. Script Date : <date>
  6. Script Notes : <special-instructions>
  7. --]]
  8. local QUEST_1_FROM_CURFIELD = 380
  9. function spawn(NPC)
  10. SetRequiredQuest(QUEST_1_FROM_CURFIELD, 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)
  18. if HasQuest(Spawn, QUEST_1_FROM_CURFIELD) and GetQuestStep(Spawn, QUEST_1_FROM_CURFIELD) == 1 then
  19. SendMessage(Spawn, "You search the barrel and find the stolen research documents.");
  20. SetStepComplete(Spawn, QUEST_1_FROM_CURFIELD, 1)
  21. end
  22. end