All pastes #961819 Raw Edit

Someone

public text v1 · immutable
#961819 ·published 2008-03-29 06:51 UTC
rendered paste body
int Game::CheckItem(item& Claw) 
{
	itemC++;
	Claw.itemTmpC = itemC;
	Claw.cycleTmpC = cycleC;
	//SilentLog("ClawColours", "%d\n", Claw.Color); //only speshul items 

	printf("checkitem called");
	switch (Claw.Category) {
		case Misc:
			//		+3 jav			20 IAS		
			//if ((PREFIX==441) && (SUFFIX==170)) {return Claw.Id;}
					// (have enough of these for now)
			break;
		case Helm:
			break;
		case Special:
			break;
		case Armor:
			// CURIOUS
			//if (ITEM("utp") == 0)) {LogItem(path, Claw);} // archon plate
			//if (Claw.Flags.Socketed==4) {LogItem(path, Claw);}
			if (LIFE==100) {LogItem(path, Claw);}

			// 3 sockets + 80 life
			//		Artificer's				3 socket armor			squid		80 life only
			if ((PREFIX==421) && (SOCKETS==3) && (SUFFIX==319) && (LIFE==80)) { return Claw.Id; }

			// 4 sockets + 100 life
			//if ((SOCKETS==4) && (LIFE==100)) { return Claw.Id; }

			// 4 sockets + whale + archon plate
			if ((PREFIX==422) && (SOCKETS==4) &&//		jeweller's					4 socket
				(SUFFIX==320) && (ITEM("utp") == 0)) //		of the whale				archon plate only
			{return Claw.Id;}
			
			// 4 sockets + fhr + archon plate
			if ((PREFIX==422) && (SOCKETS==4) && //		jeweller's			4 socket
				(SUFFIX==264) &&	(ITEM("utp") == 0)) //		stability2				archon plate only
			{return Claw.Id;}



			// done armor
			break;
		case Weapon:
			// CURIOUS
			//if (PREFIX==489) {LogItem(path, Claw);} //echoing

			//if ((PREFIX==507) && (Claw.stats[107].ID==107)) {LogItem(path, Claw);} //cunning +3 traps
			//if ((PREFIX==510) && (Claw.stats[107].ID==107)) {LogItem(path, Claw);} //shadow +3 shadow
			// 9hw isn't Greater Talons, it's bullshit  -  Greater Talons is 9tw
			//if ((ITEM("9tw")==0)) {LogItem(path, Claw);}
			if ((PREFIX==591) && (Claw.stats[107].ID==107)) {LogItem(path, Claw);} //witch-hunter's +2 assassin (witch2)
			if (SKILL(271)>2) {LogItem(path, Claw);}// +3 lightning sentry
			//if (SKILL(278)>2) {LogItem(path, Claw);}// +3 venom
			//if (SKILL(267)>2) {LogItem(path, Claw);}// +3 fade
			//if (Claw.stats[107*100].ID==107*100) {LogItem(path, Claw);} // triple +skilled claw

			// grab
			// blue, red, green, and +15 str spears
			if (ITEM("glv")==0/* || ITEM("tsp"))*/) { // light weapons only
				if (PREFIX==489) { // echoing
					//   winter			incineration		2				3
					if ((SUFFIX==179) || (SUFFIX==186) || (SUFFIX==709) || (SUFFIX==713) || 
						//	4				anthrax			2					3
						(SUFFIX==717) || (SUFFIX==237) || (SUFFIX==685) || (SUFFIX==689) || 
						// 4				thegiant5	perfect str roll
						(SUFFIX==693) || ((SUFFIX==386) && (STR==15)) ) 
						{return Claw.Id;}
				}
			}
			//if ((PREFIX==510) && (SKILL(267)==3)) {return Claw.Id;} // 6 fade prebuff
			//if ((PREFIX==510) && (SKILL(278)==3)) {return Claw.Id;} // 6 venom? prebuff
			if (ITEM("9tw")==0) { //GREATER TALONS
				if ((PREFIX==507) && (SKILL(271)==3)) {return Claw.Id;} // 6 LS
				if ((PREFIX==591) && (SKILL(271)==3)) {return Claw.Id;} // 5 LS +2 sin witch2
			}
			break;
		case Weapon2:
		

			break;
		case Shield:
			if (SOCKETS==4) {LogItem(path, Claw);} // jeweller's 

			// 3 socket NOT jeweller's + 30/20
			//		Artificer's				3 socket 			 deflecting
			//if ((Claw.ItemAffix[0]==421) && (Claw.Sockets==3) && (Claw.ItemAffix[1]==173)) {
			//	Chat("Claw", "###3 socket 30/20 shield (non-jeweller's, LLD probably)###");
			//	return Claw.Id;
			//} 
			//DO I NEED THIS atm?
			
			// TODO: figure out the vulpine stat, then only shop 12% ones
			// vulpine			30/20			bone shields
			//if ((PREFIX==199) && (SUFFIX==173) && ITEM("bsh") == 0))
			//	 {return Claw.Id;} 

			// 4 socket + 30/20
			if ((Claw.Sockets==4) && (SUFFIX==173)) {return Claw.Id;} 

			// 4 socket + Colossus (41-60 life)
			if ((Claw.Sockets==4) && ((SUFFIX==326)) )  {return Claw.Id;} 
			// 3 socket + Colossus (preferably only 60?)
			if ((Claw.Sockets==4) && (SUFFIX==326) && (LIFE>55) )  {return Claw.Id;} 


			/*if (Claw.ItemAffix[0]==199) {prefix="Vulpine2";prefC++;}
			if (Claw.ItemAffix[0]==422) {prefix="Jeweller's";prefC++;}
			if (Claw.ItemAffix[0]==421) {prefix="Artificer's";prefC++;}
			if (Claw.ItemAffix[1]==173) {suffix="of Deflecting";suffC++;}
*/
			break;
	}

	return 0; // 0 is a-okay anything else stops the bot (will eventually be used to buy)
}