View Single Post
  #1  
Old 06-20-2003, 10:20 AM
used_pawn
Sarnak
 
Join Date: Apr 2003
Posts: 53
Default Added code for faction hits in quests

Guess Im on a roll today

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:

Code:
			//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:

Code:
			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
Now, time to update some content!!
Reply With Quote