9
3

Durg.lua 602 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Spawn Template
  3. Script Name : Durg.lua
  4. Script Purpose : Durg's spawnscript at the tree house in the Queen's Colony.
  5. Script Author : Scatman
  6. Script Date : 2008.08.29
  7. Script Notes :
  8. --]]
  9. local ADiplomaticMission = 166
  10. function spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. choice = math.random(1, 2)
  14. if HasQuest(Spawn, ADiplomaticMission) and not QuestStepIsComplete(Spawn, ADiplomaticMission, 6) then
  15. SetStepComplete(Spawn, ADiplomaticMission, 6)
  16. end
  17. if choice == 1 then
  18. Say(NPC, "Durg happy to meet you!")
  19. else
  20. Say(NPC, "Must protect diplomat!")
  21. end
  22. end