9
3

Gonk.lua 601 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Spawn Template
  3. Script Name : Gonk.lua
  4. Script Purpose : Gonk'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, 7) then
  15. SetStepComplete(Spawn, ADiplomaticMission, 7)
  16. end
  17. if choice == 1 then
  18. Say(NPC, "Gonk likes diplomats!")
  19. else
  20. Say(NPC, "Gonk not bonk diplomat!")
  21. end
  22. end