SapswillVillageDrunk.lua 570 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SapswillVillageDrunk.lua
  3. Script Purpose : Spawn script for a drunk Sapswill villager.
  4. Script Author : Scatman
  5. Script Date : 2009.01.11
  6. Script Notes :
  7. --]]
  8. local ADiplomaticMission = 166
  9. function spawn(NPC)
  10. SpawnSet(NPC, "visual_state", 228)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if HasQuest(Spawn, ADiplomaticMission) and not QuestStepIsComplete(Spawn, ADiplomaticMission, 2) then
  17. SetStepComplete(Spawn, ADiplomaticMission, 2)
  18. end
  19. --FaceTarget(NPC, Spawn)
  20. Say(NPC, "...")
  21. end