In Order to Understand this you need a bit of LUA background follow this link to learn [Only registered and activated users can see links. ] [Only registered and activated users can see links. ]
Now Lets begin with telling what setting a soul link will do
it makes OnCombat the monsters that are soullinked with it will come and attack as well
instead of single pulling you can get whole groups thus making instances more challenging
now lets begin
dementrating what it will do (in the form of letters)
instead of
z c
x
u
you will get
z x c
u
XD
Making and explaining the script
nothing much to explain if your trully fluent with LUA and you paid attension to the above
you will know how to use when to use why to use and (theres no 4th on hahahaha)
i generally use the OnSpawn function for this command
Code:
function Example_OnSpawn(pUnit, Event)
pUnit:SetSoulLinkedWith(z)
pUnit:SetSoulLinkedWith(c)
end
RegisterUnitEvent(x, 6, "Example_OnSpawn")
that will give you the example i made up earlier
now a true script will replace z, x, and c with
the Entry ID's
so have fun with this command : ) will be great for custom instances
Template
Written by Mager1794 created for editing purposes
Code:
function Template_OnSpawn(pUnit, Event)
pUnit:SetSoulLinkedWith(NPCID)
#Add more soul links if you wish
end
RegisterUnitEvent(NPCID, 6, "Template_OnSpawn")
Well. Runiker (imo) your guide doesnt teach lua scripting. But it teaches the commands and the endings etc. Everytime i forget a command or an event. I look at your guide
I learned lua scripting from modifying lua scripts thats alrdy made;D
Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>
Well. Runiker (imo) your guide doesnt teach lua scripting. But it teaches the commands and the endings etc. Everytime i forget a command or an event. I look at your guide
I learned lua scripting from modifying lua scripts thats alrdy made;D
Me to
Umm I only know one technique of LUA scripting cuz I only did that stuff with one script: BOSS_Hellfire_Kazzak.lua
Umm I only know one technique of LUA scripting cuz I only did that stuff with one script: BOSS_Hellfire_Kazzak.lua
Just take a new one and modify it. Thats how i learned it
Then i started trying out new commands in the old scripts, etc etc. Now i know 99,99% of the wow emulation lua.. I still dont know how to script addons and stuff
Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>