used_pawn
06-20-2003, 10:20 AM
Guess Im on a roll today :wink:
usage : faction(x)
where x is the 'id' value from the database table 'npc_faction'
thus, it acts like a faction hit, I thought this would be a handy way to do this (only have to remember one value to use multiple times) and still fully customizeable
../zone/parser.cpp :line 941 or thereabouts REPLACE this:
//else if (strstr(strlwr(arglist[0]),"faction")) {
// if (mob && mob->IsClient()) {
// int32 faction_id = atoi( )
// cout<<"Faction("<<faction_id<<","<<faction_value<<")"<<endl;
// //mob->CastToClient()->SetFactionLevel2(mob->GetID(), ), mob->GetClass(), mob->GetRace(), mob->GetDeity(), atoi(arglist[2]));
// }
//}
with this:
else if (strstr(strlwr(arglist[0]),"faction")) {
mob->CastToClient()->SetFactionLevel(mob->CastToClient()->CharacterID(),atoi(arglist[1]), mob->CastToClient()->GetClass(), mob->CastToClient()->GetRace(), mob->CastToClient()->GetDeity());
}
hope Im making someone happy :D
Now, time to update some content!!
usage : faction(x)
where x is the 'id' value from the database table 'npc_faction'
thus, it acts like a faction hit, I thought this would be a handy way to do this (only have to remember one value to use multiple times) and still fully customizeable
../zone/parser.cpp :line 941 or thereabouts REPLACE this:
//else if (strstr(strlwr(arglist[0]),"faction")) {
// if (mob && mob->IsClient()) {
// int32 faction_id = atoi( )
// cout<<"Faction("<<faction_id<<","<<faction_value<<")"<<endl;
// //mob->CastToClient()->SetFactionLevel2(mob->GetID(), ), mob->GetClass(), mob->GetRace(), mob->GetDeity(), atoi(arglist[2]));
// }
//}
with this:
else if (strstr(strlwr(arglist[0]),"faction")) {
mob->CastToClient()->SetFactionLevel(mob->CastToClient()->CharacterID(),atoi(arglist[1]), mob->CastToClient()->GetClass(), mob->CastToClient()->GetRace(), mob->CastToClient()->GetDeity());
}
hope Im making someone happy :D
Now, time to update some content!!