Hello first of all I would like to say im one new to this forum and 2 I have little java experience though I learn fast though tampering. One of the things I started to tamper with was Stealing from stalls in Ardougne and for the most part the code works with just one problem I can steal from the cake stall and then steal from the fur stall but not the other way around. The Fur stall only works after I try to steal from the cake stall why is this my server is based off Mithscape V1. A copy of my code is below.
Code:
case 34384:
case 34387:
double randomNumber;
double randomNumber1;
randomNumber = Math.random();
randomNumber1 = (randomNumber);
PlayerItems pi = new PlayerItems();
//int randomInteger = Misc.random(2);
if(p.clickId == 34384) {
if (p.skillLvl[17] >= 10) {
if (randomNumber1 <0.6) {
//if (randomInteger == 0) {
p.requestAnim(881, 0);
//p.thiefDelay = 3;
//p.thiefTimer = 5;
p.frames.sendMessage(p, "You steal Bread from the Baker's stall.");
p.appendExperience(10, 17);
pi.addItem(p, 2309, 1);
}
} else {
p.frames.sendMessage(p, "You need to have level 10 thieving to steal from this stall.");
}
if (p.skillLvl[17] >= 10) {
if (randomNumber1 >0.6 && randomNumber1 <0.9) {
//if (randomInteger == 1) {
p.requestAnim(881, 0);
//p.thiefDelay = 3;
//p.thiefTimer = 5;
p.frames.sendMessage(p, "You steal Cake from the Baker's stall.");
p.appendExperience(100, 17);
pi.addItem(p, 1891, 1);
}
} //End if skillLvl = 10
if (p.skillLvl[17] >= 10) {
if (randomNumber1 >0.9) {
//if (randomInteger == 2) {
p.requestAnim(881, 0);
//p.thiefDelay = 3;
//p.thiefTimer = 5;
p.frames.sendMessage(p, "You steal Cholate Cake from the Baker's stall.");
p.appendExperience(300, 17);
pi.addItem(p, 1897, 1);
}
} //End if skillLvl = 10
} //End if Click ID = 34384
if(p.clickId == 34387) {
if (p.skillLvl[17] >= 10) {
if (randomNumber1 <0.6) {
p.requestAnim(881, 0);
//p.thiefDelay = 3;
//p.thiefTimer = 5;
p.frames.sendMessage(p, "You steal Fur from the Fur's stall.");
p.appendExperience(10, 17);
pi.addItem(p, 6814, 1);
}
} else {
p.frames.sendMessage(p, "You need to have level 10 thieving to steal from this stall.");
}
if (p.skillLvl[17] >= 10) {
if (randomNumber1 >0.6) {
p.requestAnim(881, 0);
//p.thiefDelay = 3;
//p.thiefTimer = 5;
p.frames.sendMessage(p, "You steal Grey Wolf Fur from the Fur stall.");
p.appendExperience(300, 17);
pi.addItem(p, 958, 1);
}
} //End if skillLvl = 10
} //End if Click ID = 34387
break;
case 34382:
p.frames.sendMessage(p, "Silver stall not programed yet.");
break;
case 34383:
p.frames.sendMessage(p, "Silk stall not programed yet.");
break;
case 34385:
p.frames.sendMessage(p, "Gem stall not programed yet.");
break;
I added the code wrap.