Thread: Item Struct
View Single Post
  #6  
Old 11-26-2002, 04:37 PM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

Well since I know where this is, here is the info copied from some code Kaiyodo wrote.

Code:
	if(strstr(SlotText, "EAR"))
		CombinedVal += (2+16);        // L and R
	if(strstr(SlotText, "HEAD"))
		CombinedVal += 4;
	if(strstr(SlotText, "FACE"))
		CombinedVal += 8;
	if(strstr(SlotText, "NECK"))
		CombinedVal += 32;
	if(strstr(SlotText, "SHOULDERS"))
		CombinedVal += 64;
	if(strstr(SlotText, "ARMS"))
		CombinedVal += 128;
	if(strstr(SlotText, "BACK"))
		CombinedVal += 256;
	if(strstr(SlotText, "WRIST"))
		CombinedVal += (512+1024);		// L and R
	if(strstr(SlotText, "RANGE"))
		CombinedVal += 2048;
	if(strstr(SlotText, "HANDS"))
		CombinedVal += 4096;
	if(strstr(SlotText, "PRIMARY"))
		CombinedVal += 8192;
	if(strstr(SlotText, "SECONDARY"))
		CombinedVal += 16384;
	if(strstr(SlotText, "FINGERS"))
		CombinedVal += (32768+65536);		// L and R
	if(strstr(SlotText, "CHEST"))
		CombinedVal += 131072;
	if(strstr(SlotText, "LEGS"))
		CombinedVal += 262144;
	if(strstr(SlotText, "FEET"))
		CombinedVal += 524288;
	if(strstr(SlotText, "WAIST"))
		CombinedVal += 1048576;
	if(strstr(SlotText, "AMMO"))
		CombinedVal += 2097152;
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote