Get Target - Hate List
What is the best way to do the following...
Get Highest Hate List Target, And Cast a Spell on him I basically want to move Vyzh`dra The Exileds Deathtouch to a Perl timer; that will cast it on the main tank every 5 minutes... Basically the only part I am not sure of is how to get the target, and how to cast a spell to that specific target |
Wouldn't the top of the hate list already be targetted? Not sure if you could just cast the spell on the timer without specifying the target. Then again, there's probably a $npc->GetTarget() type of command anyways.
|
I like to expand this question and add that I am looking for a simular way to work with Hate list.
Basicly some sort of a comand that allows me to select random or even sort the hate list for various purposes. For exmaple: -select random person on hate list -select specific person on hate list (like 6th) -reverse hate list (the 1st becomes last and vice-verse) -find specific class on hate list (like cleric) -find specific race -find a pet etc and things like that. IMHO we could use a whole new build in comand which specificly accesses and works with mobs Hate list for us =) |
Quote:
Code:
$npc->CastSpell($mob->GetHateTop(),12345) Quote:
2) In a roundabout way, you could probably cycle through the entity list in combination with $mob->GetHateAmount(tmob, is_dam= false) to generate the hate list, but I think it might be better (read: fewer CPU cycles) to create a new command (maybe GetHateList()?) to output the hate list as an array that you can then work with. 3) If we create a GetHateList() command, we can just reorder the array without actually changing the hate list. 4-6) Again, if we create a GetHateList() command, we can use $mob->GetClass(), $mob->GetRace(), and $mob->GetPetID() (or add $mob->IsPet()) to create a secondary or tertiary "filtered" list to select from. |
All times are GMT -4. The time now is 02:54 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.