ok, so this works as long as the mob has # in the name
sub EVENT_SPAWN {
if (substr($npc->GetName(), 0, 1) eq "#") {
blah;
}
}
but...how can I make it pick out mobs with an upper case letter at the beginning of the name? I saw demonstar use this ^, is that the function needed? how to apply to the above if statement?
thanks so much guys!
|