OK.. First Here is my Theiving Code
Code:
case 9:
if(c.playerLevel[17] >= 40) {
c.startAnimation(881);
c.sendMessage("You Pick Pocket the Guard");
c.getItems().addItem(995, 300);
c.getPA().addSkillXP(150, 17);
c.getPA().refreshSkill(17);
}
else if(c.playerLevel[17] < 40) {
c.sendMessage("You need a thieving level of 40 to thieve This Man.");
break;
}
case 1:
if(c.playerLevel[17] >= 1) {
c.startAnimation(881);
c.sendMessage("You Pick Pocket the Man!");
c.getItems().addItem(995, 30);
c.getPA().addSkillXP(80, 17);
c.getPA().refreshSkill(17);
}
else if(c.playerLevel[17] < 1) {
c.sendMessage("You Need a Thieving Level of 1 the Thieve this Man.");
break;
}
case 2:
if(c.playerLevel[17] >= 1) {
c.startAnimation(881);
c.sendMessage("You Pick Pocket the Man!");
c.getItems().addItem(995, 30);
c.getPA().addSkillXP(80, 17);
c.getPA().refreshSkill(17);
}
else if(c.playerLevel[17] < 1) {
c.sendMessage("You Need a Thieving Level of 1 the Thieve this Man.");
break;
}
case 3:
if(c.playerLevel[17] >= 1) {
c.startAnimation(881);
c.sendMessage("You Pick Pocket the Man!");
c.getItems().addItem(995, 30);
c.getPA().addSkillXP(80, 17);
c.getPA().refreshSkill(17);
}
else if(c.playerLevel[17] < 1) {
c.sendMessage("You Need a Thieving Level of 1 the Thieve this Man.");
break;
}
case 4:
if(c.playerLevel[17] >= 1) {
c.startAnimation(881);
c.sendMessage("You Pick Pocket the Woman!");
c.getItems().addItem(995, 30);
c.getPA().addSkillXP(80, 17);
c.getPA().refreshSkill(17);
}
else if(c.playerLevel[17] < 1) {
c.sendMessage("You Need a Thieving Level of 1 the Thieve this Woman.");
break;
}
case 5:
if(c.playerLevel[17] >= 1) {
c.startAnimation(881);
c.sendMessage("You Pick Pocket the Woman!");
c.getItems().addItem(995, 30);
c.getPA().addSkillXP(80, 17);
c.getPA().refreshSkill(17);
}
else if(c.playerLevel[17] < 1) {
c.sendMessage("You Need a Thieving Level of 1 the Thieve this Woman.");
break;
}
case 6:
if(c.playerLevel[17] >= 1) {
c.startAnimation(881);
c.sendMessage("You Pick Pocket the Woman!");
c.getItems().addItem(995, 30);
c.getPA().addSkillXP(80, 17);
c.getPA().refreshSkill(17);
}
else if(c.playerLevel[17] < 1) {
c.sendMessage("You Need a Thieving Level of 1 the Thieve this Woman.");
break;
}
case 7:
if(c.playerLevel[17] >= 10) {
c.startAnimation(881);
c.sendMessage("You Pick Pocket the Farmer!!");
c.getItems().addItem(995, 90);
c.getPA().addSkillXP(145, 17);
c.getPA().refreshSkill(17);
}
else if(c.playerLevel[17] < 10) {
c.sendMessage("You Need a Thieving Level of 10 the Thieve this Farmer!.");
break;
}
case 18:
if(c.playerLevel[17] >= 25) {
c.startAnimation(881);
c.sendMessage("You Pick Pocket the Warrior!!");
c.getItems().addItem(995, 180);
c.getPA().addSkillXP(260, 17);
c.getPA().refreshSkill(17);
}
else if(c.playerLevel[17] < 25) {
c.sendMessage("You Need a Thieving Level of 25 the Thieve this Warrior.");
break;
}
If I Like Theiving the Npc ID 9 (Guard) It Gives the XP + Cash + Send Message's To all of them.. So like If I Click Pick Pocket Guard.. It Does All of them.. and If i Pickpocket Npc ID 1 (Man) It Does Every Code After It.
Can Any One help?
I will Rep++ if you can.
Thanks.