1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- --[[
- Script Name : SpawnScripts/QueensColony/aSapswillvillager133771750.lua
- Script Purpose : Spawn script for a dancing Sapswill.
- Script Author : Scatman
- Script Date : 2009.01.11
- Script Notes :
- --]]
- local ADiplomaticMission = 166
- function spawn(NPC)
- SpawnSet(NPC, "visual_state", 11298)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function hailed(NPC, Spawn)
- if HasCompletedQuest(Spawn, ADiplomaticMission) or HasQuest(Spawn, ADiplomaticMission) then
- QuestTalk(NPC, Spawn)
- else
- NormalTalk(NPC, Spawn)
- end
- end
- function NormalTalk(NPC, Spawn)
- FaceTarget(NPC, Spawn)
-
- choice = math.random(1, 2)
- if choice == 1 then
- Say(NPC, "Danger? Only danger I see is crackin' my nog on this rock!")
- else
- Say(NPC, "Invasion? Ahh my dance! I call it the Stout Shuffle though.")
- end
- end
- function QuestTalk(NPC, Spawn)
- if HasQuest(Spawn, ADiplomaticMission) and not QuestStepIsComplete(Spawn, ADiplomaticMission, 4) then
- SetStepComplete(Spawn, ADiplomaticMission, 4)
- end
-
- FaceTarget(NPC, Spawn)
-
- choice = math.random(1, 3)
- if choice == 1 then
- Say(NPC, "Special welcomes, diplomat!")
- elseif choice ==2 then
- Say(NPC, "Hee hee. You talkin' crazy, have a stout!")
- else
- Say(NPC, "Dancing is good for diplomats too!")
- end
- end
|