All pastes #186038 Raw Edit

Miscellany

public text v1 · immutable
#186038 ·published 2006-09-29 14:27 UTC
rendered paste body
if (token.equals("Stall")) {
				int StallID = Integer.parseInt(token3[0]);
				int StallX = Integer.parseInt(token3[1]);
				int StallY = Integer.parseInt(token3[2]);
				int SDir = Integer.parseInt(token3[3]);
				int Lvl = Integer.parseInt(token3[4]);
				int Exp = Integer.parseInt(token3[5]);
				int Stat = Integer.parseInt(token3[6]);
				int ItemAmount = Integer.parseInt(token3[7]);
				int SType = Integer.parseInt(token3[8]);
				int ItemID = 0;

if(SType == 1){ItemID = Item.randomNGems();}	
if(SType == 2){ItemID = Item.randomBakeryStall();}				if(SType == 3){ItemID = Item.randomSilkStall();}
if(SType == 4){ItemID = Item.randomFurStall();}
if(SType == 5){ItemID = Item.randomSilverStall();}	
if(SType == 6){ItemID = Item.randomSpiceStall();}
			
	if (obID == StallID && x == StallX && y == StallY){	
		if(playerLevel[Stat] >= Lvl){
			if (freeSlots() > 0) {
			addItem(ItemID, ItemAmount);
			addSkillXP(Exp, Stat);
			sendMessage("You manage to steal a "+GetItemName(ItemID)+".");
			} else {sendMessage("You don't have enough free slots."); }
	} 
else { sendMessage("Sorry you must have "+Lvl+" thieving to steal from this stall.");
	}
	
}else{}
	}