123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- --[[
- Script Name : SpawnScripts/BrawlersDojo/athirdcircleinitiate.lua
- Script Author : Dorbin
- Script Date : 2022.12.18 02:12:18
- Script Purpose :
- :
- --]]
- require "SpawnScripts/Generic/DialogModule"
- require "SpawnScripts/Generic/CombatModule"
- function spawn(NPC, Spawn)
- combatModule(NPC, Spawn)
- AddTimer(NPC, math.random(2000,5000), "EmoteLoop")
- SetTempVariable(NPC,"Talking","false")
- SetTempVariable(NPC,"Reset",nil)
- SetInfoStructString(NPC, "action_state", "mood_angry")
- end
- function hailed(NPC, Spawn)
- if HasQuest(Spawn,5790) and GetQuestStepProgress(Spawn,5790,1)==0 then
- FaceTarget(NPC, Spawn)
- Dialog.New(NPC, Spawn)
- Dialog.AddDialog("If your brain were half as good as your brawn, you'd be a quarter the warrior I am!")
- Dialog.AddVoiceover("voiceover/english/barbarian_eco_race_evil/ft/eco/evil/barbarian_eco_race_evil_ogre_gm_85d4dfd9.mp3",3300429686, 1230722065)
- PlayFlavor(NPC, "", "", "flex",0,0 , Spawn, 0)
- Dialog.AddOption("Is that so? Spar with me!","Dialog1")
- Dialog.Start()
- end
- end
- function Dialog1(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn, 0)
- AddTimer(NPC,3000,"attack",1,Spawn)
- end
- function attack(NPC,Spawn)
- SpawnSet(NPC,"attackable",1)
- SpawnSet(NPC,"show_level",1)
- Attack(NPC,Spawn)
- PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_2_aggro_gm_d2336620.mp3", "Your overconfidence will be your undoing.", "", 549554872, 2137888085, Spawn, 0)
- end
- function aggro(NPC,Spawn)
- if GetTempVariable(NPC,"Reset")== nil then
- else
- ClearHate(NPC, Spawn)
- SetInCombat(Spawn, false)
- SetInCombat(NPC, false)
- ClearEncounter(NPC)
- SetTarget(Spawn,nil)
- end
- end
- function healthchanged(NPC, Spawn)
- if GetHP(NPC) < GetMaxHP(NPC) * 0.26 then
- SpawnSet(NPC,"attackable",0)
- SpawnSet(NPC,"show_level",0)
- -- if IsInCombat(NPC,Spawn) then
- SetTempVariable(NPC,"Reset",1)
- ClearHate(NPC, Spawn)
- SetInCombat(Spawn, false)
- SetInCombat(NPC, false)
- ClearEncounter(NPC)
- SetTarget(Spawn,nil)
- -- end
- AddTimer(NPC,1500,"end2",1,Spawn)
- AddTimer(NPC,3000,"bow",1,Spawn)
- AddTimer(NPC,5000,"bow2",1,Spawn)
- end
- end
- function end2(NPC,Spawn)
- ClearHate(NPC, Spawn)
- SetInCombat(Spawn, false)
- SetInCombat(NPC, false)
- ClearEncounter(NPC)
- SetTarget(Spawn,nil)
- end
- function bow(NPC,Spawn)
- PlayFlavor(NPC, "", "", "bow", 0, 0, Spawn, 0)
- SetStepComplete(Spawn,5790,1)
- end
- function bow2(NPC,Spawn)
- Runback(NPC)
- end
- function respawn(NPC)
- spawn(NPC)
- PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn, 0)
- end
- function death(NPC,Spawn)
- Despawn(NPC)
- end
- function victory(NPC)
- SetTempVariable(NPC,"Reset",nil)
- SetTempVariable(NPC,"Talking","false")
- end
-
|