Second part a bad idea? May I ask why? :p
(just this part.. I want to know if they have special abilities before I start messing with them in perl)
Code:
void NPC::mod_prespawn(Spawn2 *sp)
{
for( int i = 1; i < 36; i++ )
{
if(GetSpecialAbility(i))
{
const char* HasAbility = "1";
const char* Stuff = "HasSpecial";
SetEntityVariable(Stuff, HasAbility);
break;
}
}
}