123456789101112131415161718192021222324252627282930313233 |
- --[[
- Script Name : SapswillVillageHappy.lua
- Script Purpose : Spawn script for a happy Sapswill villager.
- Script Author : Scatman
- Script Date : 2009.01.11
- Script Notes :
- --]]
- local ADiplomaticMission = 166
- function spawn(NPC)
- SpawnSet(NPC, "visual_state", 11150)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function hailed(NPC, Spawn)
- if HasQuest(Spawn, ADiplomaticMission) and not QuestStepIsComplete(Spawn, ADiplomaticMission, 5) then
- SetStepComplete(Spawn, ADiplomaticMission, 5)
- end
-
- FaceTarget(NPC, Spawn)
-
- choice = math.random(1, 3)
- if choice == 1 then
- Say(NPC, "Get some swill, diplomat! Is good!")
- else
- Say(NPC, "Dishpan hands? Huh? Oh! Dip-lo-mat! Ha! Funny!")
- end
- end
|