View Single Post
  #3  
Old 12-30-2012, 02:52 PM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

i think i know what the problem is. GetMobID() isn't what you want. you should be using GetID(). GetMobID() returns a Mob object (don't ask me why, because it doesn't make any sense to me either) and is an $entity_list method, not a $mob method.

EDIT: i updated the QuestObject method list on the wiki at revision 2264, so some things have been moved/removed/added fairly recently. i used python scripts to parse the information so i didn't have to do it all by hand. i'll likely be updating it this way every few weeks and adding additional information to each entry when i have time (and motivation).

Quote:
Originally Posted by Davood View Post
then this shold work right?

Code:
my $npc_target = $client->GetTarget();
my $mon_target = $npc_target->GetMobID();
$client->CastSpell($a_cast_buff,$mon_target,10,0,0);
it doesn't i'm not sure why

$a_cast_buff is some spell id value (i outputted it to make sure it was valid)

casting on $clientid works with the same $client->Cast. etc code
Reply With Quote