Hi, I just tried to make my 1st LUA script yesterday for a boss on a private server i'm playing on, i emailed it to owner, but we didn't know where to put it. :confused: He said he put it in some script file, but idk the exact location, or something is wrong with my script itself, because it didn't do anything to boss...please comment if you know my problem. Orginally I had (Unit, Event) and not (pUnit, Event) does it make a diffrence? 1st day of scripting, don't bash too hard please

. I want to try to become a Dev. for the server, but I don't know how to acess database and put LUA scripts into it, I really need a tutor, but the thread about free LUA help is non-leecher, even though this is my 1st thread and post on MMOwned in the week that i've just joined. When commenting consider me to be a LUA dumbass, since I just started today, i used a guide to make my script

.
Just realized a posted in wrong section, sorry!
--------------------------------------------------------
Script:
function Nightclaw_OnCombat(pUnit, Event)
pUnit:SendChatMessage(14, 0, "Foolish mortals, you dare enter the Chaos World!")
pUnit:RegisterEvent("Nightclaw_Phase1, 600000000000000000000, 1")
function Nightclaw_Phase1(pUnit, Event)
if Unit:GetHealthPct() <= 50 then
pUnit:CastSpell(52262)
pUnit:Castspell(24169)
pUnit:SendChatMessage(14, 0, "Playtime is over!")
pUnit:SetScale(2)
end
end
function Nightclaw_Attack1(pUnit,Event)
pUnit:SendChatMessage(14, 0, "Slice n Dice")
pUnit:FullCastSpellOnTarget(41078, Unit:GetClosestPlayer())
end
function Nightclaw_OnLeaveCombat(pUnit, Event)
pUnit:SendChatMessage(14, 0, "The Chaos World reigns!"
pUnit:RemoveEvents()
end
function Nightclaw_OnKilledTarget(pUnit, Event)
pUnit:SendChatMessage(14, 0 "Pitiful mortal")
end
function Nightclaw_OnDied(pUnit, Event)
pUnit:SendChatMessage(14, 0, "The Lord will not be as Merciful!")
pUnit:RemoveEvents()
end
RegisterUnitEvent(124, 1, "Nightclaw_OnCombat")
RegisterUnitEvent(124, 2, "Nightclaw_OnLeaveCombat")
RegisterUnitEvent(124, 3, "Nightclaw_OnKilledTarget")
RegisterUnitEvent(124, 4, "Nightclaw_OnDied")
RegisterUnitEvent(124, "NightClawAttack1", 60000, 2)
end