View Single Post
  #1  
Old 10-18-2008, 09:56 AM
seveianrex
Sarnak
 
Join Date: Sep 2008
Location: asdf
Posts: 60
Default Tradeskill Group Emotes

{tradeskills.cpp}

in bool Client::TradeskillExecute, at approx. line 700, locate:

Code:
	if(spec->tradeskill == JEWELRY_MAKING){
		switch(GetAA(aaJewelCraftMastery)){
		case 1:
			AAChance = 10;
			break;
		case 2:
			AAChance = 25;
			break;
		case 3:
			AAChance = 50;
			break;
		}
	}
add immediately after:

Code:
const Item_Struct* item = NULL;
locate:

Code:
		_log(TRADESKILLS__TRACE, "Tradeskill success");

		itr = spec->onsuccess.begin();
		while(itr != spec->onsuccess.end()) {
			//should we check this crap?
			SummonItem(itr->first, itr->second);
add immediately after:

Code:
			item = database.GetItem(itr->first);
			if (this->GetGroup())
			{
				entity_list.MessageGroup(this,true,MT_Skills,"%s has successfully fashioned %s!",GetName(),item->Name);
			}
locate:
Code:
_log(TRADESKILLS__TRACE, "Tradeskill failed");
add immediately after:
Code:
if (this->GetGroup())
		{
			entity_list.MessageGroup(this,true,MT_Skills,"%s was unsuccessful in %s tradeskill attempt.",GetName(),GetGender() == 0 ? "his" : "her");
		}

Last edited by trevius; 10-20-2008 at 07:50 AM.. Reason: Corrected the Code Submission based on a Suggestion from Derison
Reply With Quote