I will update this script once I get round to it since unfortunatly the few parts kjanko/hydroxis did change were not always to blizzlike.
I thought id have a small tinker around with the defile spawning and stuff... so i made this small function that will spawn defile at a random player for 30 seconds...
yes, it's very basic, and im still wondering how the damage is handled and all that stuff... but it's a start :P
Code:---- Defile ------------------------------------------------------ function Defile_Spawn(pUnit, Event) local plr = Lich:GetRandomPlayer() if plr ~= nil then Lich:FullCastSpell(72762, plr) x = plr:GetX() y = plr:GetY() z = plr:GetZ() o = plr:GetO() Lich:SpawnCreature(38757, x, y, z, o, 15, 30000) -- Im assuming defile will need to be inserted, with this NPC ID or change this later ofc... end end
GetRandomPlayer needs a type, so set that to 0 to be able to get any player, Lich:GetRandomPlayer(0).
Also it increases scale/damage depending on if anyone is within the location, so I would have the npc check every second (defile npc) for nearest player. If player is within X amount then increase scale, and just keep repeating till it despawns. Now the issue would be dealing damage, which I am not sure how to do. :/
Ah yes, forgot the zero :P
I know a bit of C# and java, so i understand all this, but im not that familar with lua, so it's taking me a bit to figure it out.
I'm thinking of something like:
Code:function Defile_Check_For_Players(pUnit, Event) local plr = pUnit:GetRandomPlayer(1) if pUnit:GetDistanceYards(plr) < 5 then pUnit:CastSpellOnTarget(73708, plr) sc = pUnit:GetScale() pUnit:SetScale(sc + 0.2) else plr:RemoveAura(73708) end end
Last edited by Hurracane; 04-07-2010 at 11:01 AM.
Really nice
It's a spell that incrases the scale of Defile.
Defile - Spell - World of Warcraft
Something like that?Code:local plrs = pUnit:GetInRangePlayers() for k,v in pairs (plrs) do if(pUnit:GetDistanceYards(v) < 5 then if(ticks == 1) then v:CastSpell(72754) elseif (ticks == 2) then v:CastSpell(73708) elseif (ticks == 3) then v:CastSpell(73709) end pUnit:SetScale(pUnit:GetScale() + 0.2) ticks = ticks + 1 end end end
Where did you define ticks?
I missed that part out, aswell as registering the function every sec or something.
Anyway, I like the script it is similar to the original one and I think very good for only the standard ArcEmu interpreter.
Hi first of all sorry for my bad englisch =P
I wanted to send u a PM but because off my post count of "0" i couldnt.
What i wanted to ask was:
I think this script is very good but i cant test it =P
I downloaded your script put the lichking.lua into my scripts directory and loaded the sql into my world database.
Im using the newest ascent wish i compiled by myself and a 3.3.2 database i hope so =P
Now my question... when i go into the icc i cant use the teleporter to the lich king... how do i get to come to him?
I hope i dont annoy you but i hope u could say me wich database u think is the best when i want to play blizzlike? Is there any database wich include most of the icc stuff?
Greetings
Max
There is no database that currently supports Arcemu with ICC. To get there either: use the recall as a GM; make your own teleporter; or wait for a DB to support ICC.
lol db do support ICC well mine does and area triggers works fine..I was busy these days to full update it but it works.For bugs and missing this you can report it to me on msn [email protected]