Thanks Trevius. Well in that case I guess I will go ahead and post what I'm actually tryng to do.
I want a mob to randomly pick someone on the hate list and set their level to 1.
I was referencing AndMetal's post here:
http://www.eqemulator.net/forums/showthread.php?t=25588 where he suggests using:
Code:
$mob->GetHateRandom();
and then using that charid to cast a spell on a random person.
Code:
$mob->CastSpell(123, $mob->GetHateRandom());
He stated he was not sure if it would work, and I don't believe it is. I was using this script to test wether or not it was getting a charid. I believe I also tried $npc->castspell.
If GetHateRandom is working, how would I direct:
or
Code:
$mob->SetLevel(in_level, command= false)
to the randomly selected guy on the hate list?