My Lua scripts are not working correctly...all they do is like Copy off one LUA..such as I have an npc named bob and he says Hi! im bob...well these other npcs with completely different Lua's say Hi! im bob.
Can any one help?
My Lua scripts are not working correctly...all they do is like Copy off one LUA..such as I have an npc named bob and he says Hi! im bob...well these other npcs with completely different Lua's say Hi! im bob.
Can any one help?
mmm thats because you didnt edit your lua script or the register event
remember to +Rep people that helped you out Spartansp RepackV4 How to setup Spartansp Repack
Usefull guide 1 MMOwned Morpher SFGAMES WEBSITE
post here your lua scripts so i can check what are you doing wrong mate
remember to +Rep people that helped you out Spartansp RepackV4 How to setup Spartansp Repack
Usefull guide 1 MMOwned Morpher SFGAMES WEBSITE
Code:function Boss_Phase3(Unit, event) if Unit:GetHealthPct() < 85 then Unit:CastSpell(30852) Unit:RegisterEvent("Boss_Nova1",10000, 0) Unit:RegisterEvent("Boss_Phase4",1000, 0) end end function Boss_Nova1(Unit) Unit:CastSpell(30852) Unit:SendChatMessage(12, 0, "I will make you my slave!") end function Boss_Phase4(Unit, event) if Unit:GetHealthPct() < 10 then Unit:RemoveEvents() Unit:CastSpell(23537) Unit:SendChatMessage(12, 0, "Time to DIE!") end end function Boss_OnCombat(Unit, event) Unit:RegisterEvent("Boss_Phase3",1000, 0) end RegisterUnitEvent(222997, 1, "Boss_OnCombat")
all your script is messed up man....
remember to +Rep people that helped you out Spartansp RepackV4 How to setup Spartansp Repack
Usefull guide 1 MMOwned Morpher SFGAMES WEBSITE
lol....ok try looking at my script:
here is download link try to make things more easy:
Filebeam - Free Fast File Hosting
remember to +Rep people that helped you out Spartansp RepackV4 How to setup Spartansp Repack
Usefull guide 1 MMOwned Morpher SFGAMES WEBSITE
no problem mate
remember to +Rep people that helped you out Spartansp RepackV4 How to setup Spartansp Repack
Usefull guide 1 MMOwned Morpher SFGAMES WEBSITE
some of the ends i think need to be taken out
Here are two Scripts ..they both run over each other..but they work .. any way to fix?
Code:function phase_1(pUnit, Event) if pUnit:GetHealthPct() < 100 then pUnit:RemoveEvents(); pUnit:FullCastSpell(42477) pUnit:SendChatMessage(12, 0, "Here Take this Heal!") pUnit:RegisterEvent("phase_2",1000, 0) end end function phase_2(pUnit, Event) if pUnit:GetHealthPct() < 25 then pUnit:RemoveEvents(); pUnit:FullCastSpell(41455) pUnit:SendChatMessage(12, 0, "The gods have given me great Heals!") end end function boss_start(pUnit, Event) pUnit:RegisterEvent("phase_1",1000, 0) end RegisterUnitEvent(222989, 1, "boss_start")3Code:function phase_1(pUnit, Event) if pUnit:GetHealthPct() < 70 then pUnit:RemoveEvents(); pUnit:FullCastSpell(40325) pUnit:SendChatMessage(12, 0, "I will end you.") pUnit:RegisterEvent("phase_2",1000, 0) end end function phase_2(pUnit, Event) if pUnit:GetHealthPct() < 25 then pUnit:RemoveEvents(); pUnit:FullCastSpell(37487) pUnit:SendChatMessage(12, 0, "You will never stop me!") end end function boss_start(pUnit, Event) pUnit:RegisterEvent("phase_1",1000, 0) end RegisterUnitEvent(222991, 1, "boss_start")
Hehe, the best thing is to work off Spartan's script.
It will help you to learn better!![]()