what are some options for : \/
Step 3: function Name_Event (pUnit, Event) = When it happend i.e. OnCombat(it also doesnt matter what you put here like above)
Oher than oncombat, its there on on 50% hp?
what are some options for : \/
Step 3: function Name_Event (pUnit, Event) = When it happend i.e. OnCombat(it also doesnt matter what you put here like above)
Oher than oncombat, its there on on 50% hp?
what is before the parentheses doesnt matter, your just naming the function, but try to not have spaces
heres what i want to do i need a script like the spawn one when one dies but only if one iss still alive
ill make it easy on you ill youse names
if spider dies spawn spider a only if maker a is alive is there a way to do that?
wait what do you mean, like spawn spider2 when spider1 dies, but only if the spider1 is alive? thats kinda redundant isnt it?
spawn spider1 when spider1 dies only if bug1 is alive
(im using it as a machine that makes the spiders)
ah I see, let me think
ok, i think i got it:
Code:function spiderSpawn(unit) x = unit:GetX() y = unit:GetY() z = unit:GetZ() o = unit:GetO() unit:SpawnCreature(spider ID,x,y,z,o,faction,milliseconds) end function healthCheck(unit) hp = unit:GetHealthPct() end function spiderMain(unit) unit:RegisterEvent("healthCheck",1000,0) while hp > 1 do unit:RegisterEvent("spiderSpawn",10000,1) end end RegisterUnitEvent(Bug ID,1,"spiderMain")
thank you so much i +rep now i can make my last quest on t-9
np, tell if it works or not
ok so its not working for some reason so i ditched it and i came back to ask for help because im now making abetter instance can you please highlight in red what i should change?
Hello, I've recently started scripting and I'm making a boss fight and he spawns elementals who after 3 mins are going to "self destruct" and I was wondering if there was a script that would instantly kill the elemental after it casts the spell. If anyone out there could possibly help me, that would be awesome! Thank you!
the script i have from the "BT raid" i think is all in C++ and is created by a guy called "M4ksiu" and is only the Illidan Figth lol i tested it and works fine, i was wondering iff is able to change the phases in any way...like the "text" that Illidan says and the sounds(the time and the moments) he spawns to mutch sometimes
@Zombienation: You can set the dspawn time of the elementals to about .1 second after they cast the spell