View Single Post
  #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