View Single Post
  #7  
Old 08-31-2014, 07:31 AM
bloatedseachicken
Fire Beetle
 
Join Date: Aug 2014
Posts: 6
Default

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!
Reply With Quote