Level of $npc->GetTarget() ?
I know $ulevel gets the level of the player when doing something to the npc like EVENT_SAY but what about when the player isn't doing anything?
More specifically, get the level of a player from the target of the boss? For example, I have code to get the npc target id for casting a spell on it (nuke main tank in boss event script). How would I get the level of the bosses target? Code:
my $SPELL_ID = quest::ChooseRandom(12505, 12506, 12507); |
You can just use GetLevel(), which is listed here:
http://www.eqemulator.net/wiki/wikka...a=QuestObjects It is under mob class, so you can use it on anything. Code:
my $SPELL_ID = quest::ChooseRandom(12505, 12506, 12507); |
Ahh figured it would only get the mobs level, didn't realize that would work on target.
Thanks much! |
client and npc are both MOB anything listed under mob works for both.
|
All times are GMT -4. The time now is 04:38 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.