12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- --[[
- Script Name : SpawnScripts/QueensColony/NebbleUnderroot.lua
- Script Author : Zcoretri, premierio015(Update)
- Script Date : 2015.07.27
- Script Purpose : Nebble Unfderroot dialog
- Modified Date : 2020.04.03
- Modified by : premierio015
- Modified Notes : Added correct VoiceOvers and animation
- --]]
- function spawn(NPC)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function hailed(NPC, Spawn)
- SpawnSet(NPC, "visual_state", 0)
- FaceTarget(NPC, Spawn)
- math.randomseed(os.time())
- choice = math.random(1,2)
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..choice.."_1040.mp3", "", "fishing_reel_in", 0, 0, Spawn)
- text = math.random(1,3)
- if text == 1 then
- Say(NPC, "Mmm, triggerfish pie! I can smell it now.")
- elseif text == 2 then
- Say(NPC, "Shark fin soup! Maybe I'll get lucky.")
- else
- Say(NPC, "Got any goods for sale from your adventures?")
- end
-
- AddTimer(NPC, 45000, "FishingCast", 1, Spawn)
- end
- function FishingCast(NPC)
- PlayAnimation(NPC, 11539)
- AddTimer(NPC, 4000, "ResetState", 1, Spawn)
- end
- function ResetState(NPC)
- SpawnSet(NPC, "visual_state", 11540)
- end
|