Hey i recognise that!! Totaly my fault left over from the " , wind32/linux wars =)
Should read thusly
Code:
else if (strstr(strlwr(arglist[0]),"faction")) {
if (mob && mob->IsClient()) {
sint32 faction_id = atoi(arglist[1]);
sint32 faction_value = atoi(arglist[2]);
mob->CastToClient()->SetFactionLevel2(mob->GetID(), faction_id, mob->GetClass(), mob->GetRace(), mob->GetDeity(), faction_value);
}
}
Btw if you use SetFactionLevel() instead of SetFactionLevel2() it's not quite the same thing, The first one handles all faction hits for a given npc, the later adds the specified value to the given faction id.