Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2008, 04:51 PM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default help change players target?

i want to change the players target on my buffer to ither nothing or to the player so that could buffs using the selfbuff command will work

i tried this
$client->RemoveFromTargets($npc);

bu it does not work.. any thoughts?
Reply With Quote
  #2  
Old 11-09-2008, 05:28 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I think it depends on exactly what you are trying to do. But, if you just want a player to cast a buff on themselves, this command should work:

Code:
quest::selfcast(spellid);

I haven't tested this, but if you want to change a target, maybe something like this would work:

Code:
my $cname = $client->GetCleanName();

my $get_client = $entity_list->GetClientByName($cname);

$client->SetTarget($get_client);
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 11-09-2008, 07:43 PM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

when you buff with selfcast and your a war for say it don't always group buff your group because your targeting the npc not yourself or a group member.

so im trying to get the npc to make you cast the spells but make you target yourself or clear your target.

and that did not work just stopped at that pint and no buffs fired off.
Reply With Quote
  #4  
Old 11-09-2008, 07:45 PM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

sorry that did work thanks.
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 03:58 PM.


 

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