No. Make a folder called "scripts" OR "lua scripts"
No. Make a folder called "scripts" OR "lua scripts"
Mk, I've made a folder "LUA scripts" (no quotations).
I've placed the compiled script "Boss_IllidanStormrage.luac" file, LUAScripting.dll, LUAScripting.pdb in the folder.
What else would I need to add to it? =\
(Sorry, kinda new to this stuff)
No, you put the .dll's in the script_bin folder. Then you name then Illidan lua script with the extension .lua, not .luac.
This is best tutorial how to create LUA scripts!!!![]()
Haha thanks, my eBook is coming out soon...
how do you make them cast a spell when they are below x% health?
Last edited by backlash52; 06-13-2008 at 03:11 PM.
if(unit:GetHealth) < x then
player:CastSpell(id)
ok ive tried some trial and error here but if you could show me how this SHOULD look id be much obliged
this is my current scripting for a boss i made the text did work untill i tried to make him heal himself. so if you see whats wrong plz let me know.function TheCryptKeeper_speech (pUnit, Event)
pUnit:SendChatMessage(12, 0, "This is MY Crypt")
end
RegisterUnitEvent (99966, 1, "TheCryptKeeper_speech")
function TheCryptKeeper_dies (pUnit, Event)
pUnit:SendChatMessage(12, 0, "NO...This is MY...Crypt...")
end
RegisterUnitEvent (99966, 4, "TheCryptKeeper_dies")
Function TheCryptKeeper_hurt (pUnit, Event)
if(pUnit:GetHealth) < 250000 then
pUnit:CastSpell(39321)
end
RegisterUnitEvent (99966, 1, "TheCryptKeeper_hurt")
Hello, nice guide! I have a question: how would I go about making an npc immovable? I tried Unit:SetCombatCapable(1) but it caused problems when it comes to leaving combat.
pUnit:Root command
Awesome thanks
-----------------------------------
Ok so I tried Unit:Root() and I'm getting errors, what am I missing?![]()
Last edited by Flannel007; 06-18-2008 at 06:18 PM. Reason: Automerged Doublepost
Just throwin in really quick that it's helpful well structured, best guide I've seen, I haven't even taken a look at the custom LUA I have, but I already know what I did wrong, thanks a load.
Where do i enter lua script? :O
Thats my ''LUA'' it isnt working ;< what shud i fix?function Thor'Maz_Entercombat (pUnit, Event)
pUnit:SendChatMessage(12, 0, "Why are u even trying?")
end
RegisterUnitEvent(5, 1, "Thor'Maz_Entercombat")
function Thor'Maz_Killtarget (pUnit, Event)
pUnit:SendChatMessage(12, 0, ''Hmph, Too easy")
end
RegisterUnitEvent(5, 3, "Thor'Maz_Killtarget")
function Thor'Maz_Died (pUnit, Event)
pUnit:SendChatMessage(12, 0, "I lost..."
end
RegisterUnitEvent(5, 4, "Thor'Maz_Died")
Function Thor'Maz_Flame (pUnit, event)
pUnit:CastSpell (33933)
end
RegisterUnitEvent("Thor'Maz_Flame", 10000, 3)
nice guide! helped a lot, thanks!