Thread: $mob->
View Single Post
  #3  
Old 08-28-2008, 03:31 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

Deref. does not give the id for CastSpell(spell_id, target_id)

$npc->CastSpell(spellid, $hate_target->GetID())

The member function for setting level on a specific PTR_OBJ is SetLevel()

$client->SetLevel(1, 0);

You can use
$hate_target->GetName() to actually have it say which target is the target by name instead of cryptic pointers
Reply With Quote