Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2009, 05:21 PM
Kilralpine
Sarnak
 
Join Date: Jul 2004
Posts: 98
Default 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
Reply With Quote
  #2  
Old 01-22-2009, 08:29 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

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.
Reply With Quote
  #3  
Old 01-22-2009, 11:51 PM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

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 =)
Reply With Quote
  #4  
Old 01-28-2009, 04:25 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

Quote:
Originally Posted by Kilralpine View Post
What is the best way to do the following...

Get Highest Hate List Target, And Cast a Spell on him
You should be able to use the quest object $mob->GetHateTop() to get the player that's on the top of the hate list. You could do something like this to have the NPC cast it on whomever's on the top of the hate list:

Code:
$npc->CastSpell($mob->GetHateTop(),12345)
You may have to cast $mob->GetHateTop() to the Entity List ID (GetID() maybe?), but that should do the trick.

Quote:
Originally Posted by ChaosSlayer View Post
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
1) $mob->GetHateRandom()
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.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:48 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3