12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- --[[
- Script Name : SpawnScripts/IsleRefuge1/aGruttoothprotector.lua
- Script Author : LordPazuzu
- Script Date : 2022.09.13 08:09:15
- Script Purpose :
- :
- --]]
- dofile("SpawnScripts/Generic/MonsterCallouts/BaseGoblin2.lua")
- require "SpawnScripts/Generic/NPCModule"
- function spawn(NPC, Spawn)
- NPCModule(NPC, Spawn)
- EmoteLoop(NPC,Spawn)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function EmoteLoop(NPC,Spawn)
- if IsInCombat(NPC) == false and HasMoved(NPC)==false then
- choice = MakeRandomInt(1,10)
- if choice == 1 then
- PlayFlavor(NPC, "", "", "treaten", 0, 0, Spawn, 0)
- elseif choice == 2 then
- PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn, 0)
- elseif choice == 3 then
- PlayFlavor(NPC, "", "", "frustrated", 0, 0, Spawn, 0)
- elseif choice == 4 then
- PlayFlavor(NPC, "", "", "peer", 0, 0, Spawn, 0)
- elseif choice == 5 then
- PlayFlavor(NPC, "", "", "feint", 0, 0, Spawn, 0)
- elseif choice == 6 then
- PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn, 0)
- elseif choice == 7 then
- PlayFlavor(NPC, "", "", "treaten", 0, 0, Spawn, 0)
- elseif choice == 8 then
- PlayFlavor(NPC, "", "", "stare", 0, 0, Spawn, 0)
- elseif choice == 9 then
- PlayFlavor(NPC, "", "", "brandish", 0, 0, Spawn, 0)
- elseif choice == 10 then
- PlayFlavor(NPC, "", "", "cackle", 0, 0, Spawn, 0)
- end
- AddTimer(NPC,MakeRandomInt(7000,9000),"EmoteLoop")
- else
- AddTimer(NPC,MakeRandomInt(10000,11000),"EmoteLoop")
- end
-
- end
|