Thanks all that have clicked on this thread, the problem is probably a very easy one, however i'll explain it.
When in a boss fight, using different spells. I do it the cheater way and create lots of phases and correspond one spell, etc so its much easier.
However, i have this lua script for a boss, and on phase 2 <=40% health, i want it to spam arcane blasts? i'm still learning lua and i dont understand it. atm i do it so it casts it every 5 seconds, but its even after the long cast time? any help, thankies
**Just a snip bit of the code**Code:function Petra_Phase2(pUnit, Event) if pUnit:GetHealthPct() <= 40 then pUnit:RemoveEvents() pUnit:SendChatMessage(14, 0, "EAT MY APPLE PIE") pUnit:SetMaxMana(10000000) pUnit:RegisterEvent("Petra_FrostboltofAges", 1000, 50) pUnit:RegisterEvent("Petra_ArcaneBlast", 6000, 0) pUnit:RegisterEvent("Petra_Phase3", 1000, 0) end end function Petra_ArcaneBlast(pUnit,Event) pUnit:FullCastSpellOnTarget(42897, pUnit:GetMainTank()) end
Also another dilemma i face is that when i try and set the model it just completely ignores? i do pUnit:SetModel(*DISPLAYID*)
And if anybody else has any little bits to add that will help me thankies, ! ooo i just thought of another thing!!Code:function Petra_Phase1(pUnit, Event) if pUnit:GetHealthPct() <= 75 then pUnit:RemoveEvents() pUnit:SendChatMessage(14, 0, "TEXT") pUnit:SetModel(ID)
Spawning Adds byside of the boss
http://www.mmowned.com/forums/emulator-server-releases/279546-lua-custom-boss-buffer.html -- IM TRYING TO FOLLOW THIS GUIDE?
I changed the ID, (30416), but im not sure what to do for x,y,z etc? umm am i being noob or just retarded? i just want to test it so i place the boss anywhere i havent really put any .gps down? would i just have to do that or is there a way of doing it so it spawns so many xyz away from the boss?Code:Unit:SpawnCreature(30416, x-0.5, y, z, o, 14,50000) Unit:SpawnCreature(30416, x, y-0.5, z, o, 14,50000) Unit:SpawnCreature(30416, x, y, z-0.5, o, 14,50000) Unit:SpawnCreature(30416, x-0.5, y-0.5, z, o, 14,50000) Unit:SpawnCreature(30416, x-0.5, y, z, o, 14,50000) Unit:SpawnCreature(30416, x, y-0.5, z, o, 14,50000) Unit:SpawnCreature(30416, x, y, z-0.5, o, 14,50000) Unit:SpawnCreature(30416, x-0.5, y-0.5, z, o, 14,50000) Unit:SpawnCreature(30416, x-0.5, y, z, o, 14,50000) Unit:SpawnCreature(30416, x, y-0.5, z, o, 14,50000) Unit:SpawnCreature(30416, x, y, z-0.5, o, 14,50000)
thanks if you can help with any 3 of the problems and help me solute.. as i said there probably like /FACEPALM but u know, instead of me trying to work it out for like 5 hours i ask you guys, thanks
EDIT:: one last thing i hate wamp and just cant stand it its such a fiddly program for me whenever i use it, ive downloaded a website and ive configged the files? is there anyway of just adding it to like a htdocs file inside of server ? if so can someone help me pleaseee tyy x sorry for asking for so much help ;/