Make sure you read the Rules babe
public class Thieving {client c;public int[] npclist = {1, 2, 3};public void checkNPC(int NPCID, client a) {c = a;if(NPCID == 1 || NPCID == 2 || NPCID == 3){Rob(1,10,"Man",5,80,0,0,0,0,0,0);}}/*BEGIN THIEVING VOID*/public void Rob(int minlevel, int maxlevel, String npc, int gold, int exp, int items1, int items2, int items3, int items1q, int items2q, int items3q){int chance = misc.random(maxlevel - thief);int chancei1 = misc.random(3);int chancei2 = misc.random(3);int chancei3 = misc.random(3);int thief = c.playerLevel[17];if(chance <= 1){if(thief >= minlevel){c.sendMessage("You pickpocket the "+npc+".");if(gold > 0){c.addItem(995, gold);}if(items1 > 0 && chancei1 == 1){c.addItem(items1, items1q);}if(items2 > 0 && chancei2 == 1){c.addItem(items2, items2q);}if(items3 > 0 && chancei3 == 1){c.addItem(items3, items3q);}c.addSkillXP(exp, 17);c.setAnimation(881);}else{c.sendMessage("You need to have a thieving level of "+minlevel+" to pickpocket this "+npc+".");}}else if( chance > 1){if(thief >= minlevel){c.sendMessage("You fail to pickpocket the "+npc);c.NewHP = (c.playerLevel[c.playerHitpoints] - 1);c.updateRequired = true;c.hitUpdateRequired = true;}else{c.sendMessage("You need to have a thieving level of "+minlevel+" to pickpocket this "+npc);}}}/*END THIEVING VOID*/}
public class Thieving {
public int[] npclist = {1, 2, 3};
public void checkNPC(int NPCID, client a) if(NPCID == 1 || NPCID == 2 || NPCID == 3){Rob(1,10,"Man",5,80,0,0,0,0,0,0);}
public void Rob(int minlevel, int maxlevel, String npc, int gold, int exp, int items1, int items2, int items3, int items1q, int items2q, int items3q){
int minlevel
int maxlevel
String npc
int items1, int items2, int items3
int items1q, int items2q, int items3q
int gold
int exp
int chance = misc.random(maxlevel - thief);
int chancei1 = misc.random(3);int chancei2 = misc.random(3);int chancei3 = misc.random(3);
if(chance <= 1){if(thief >= minlevel){c.sendMessage("You pickpocket the "+npc+".");if(gold > 0){c.addItem(995, gold);}
if(items1 > 0 && chancei1 == 1){c.addItem(items1, items1q);}if(items2 > 0 && chancei2 == 1){c.addItem(items2, items2q);}if(items3 > 0 && chancei3 == 1){c.addItem(items3, items3q);}
c.addSkillXP(exp, 17);c.setAnimation(881);
}else{c.sendMessage("You need to have a thieving level of "+minlevel+" to pickpocket this "+npc+".");}}
else if( chance > 1){if(thief >= minlevel){c.sendMessage("You fail to pickpocket the "+npc);c.NewHP = (c.playerLevel[c.playerHitpoints] - 1);c.updateRequired = true;c.hitUpdateRequired = true;}else{c.sendMessage("You need to have a thieving level of "+minlevel+" to pickpocket this "+npc);}}}
case 17: //second Click npcNPCSlot = ((misc.HexToInt(inStream.buffer, 0, packetSize) / 1000) - 128);NPCID = server.npcHandler.npcs[NPCSlot].npcType;faceNPC(NPCSlot);FishingGo = false;PutNPCCoords = false;
/*BEGIN THIEVING!!!*/for(i = 0; i < server.Thieving.npclist.length; i++){if(NPCID == server.Thieving.npclist[i]){server.Thieving.checkNPC(NPCID, this);}}/*END THIEVING!!!!!*/
for (i = 0; i < server.Thieving.npclist.length; i++){
if(NPCID == server.Thieving.npclist[i]){
server.Thieving.checkNPC(NPCID, this);
public class server implements Runnable {
public static Thieving Thieving = null;
itemHandler = new ItemHandler();
Thieving = new Thieving();
Rob(1,10,"Man",10,80,0,0,0,0,0,0);
Credits: The guy who started this base | Me who continued it and finished it.
Its long because its a skill base.... xD