PDA

View Full Version : 317 - Crafting Shop



Rog3r
June 23rd, 2010, 16:06
Interface ID: 2311

Place this into the client class:



public void CraftingShop(int lvl, int item, int amount, int item1, int amount1, int given, int exp) {
if (actionTimer == 0) {
if (playerLevel[12] >= lvl) {
if (playerHasItem(item, amount) && playerHasItem(item1, amount1)) {
addItem(given, 1);
deleteItem(item, amount);
closeInterface();
addSkillXP(exp + misc.random(3), 12);
actionTimer = 7;
} else if (!playerHasItem(item, amount) && !playerHasItem(item1, amount1)) {
sendMessage((misc.random(2)==1) ? "You need "+item+" peices of leather or "+item1+" coins." : "You'll need "+item+" peices of leather or perhaps "+item1+" coins to proceed.");
} else if (playerLevel[12] < lvl) {
sendMessage("You need to have a crafting level of " + lvl + " to craft it.");
}
}
}
}


Place the following into your packet 185:



case 33187:
CraftingShop(48, 1741, 4, 995, 50, 1129, 212);
break;
case 33190:
CraftingShop(36, 1741, 1, 995, 50, 1059, 235);
break;
case 33193:
CraftingShop(38, 1741, 2, 995, 50, 1061, 247);
break;
case 33196:
CraftingShop(44, 1741, 2, 995, 50, 1063, 221);
break;
case 33199:
CraftingShop(47, 1741, 3, 995, 50, 1095, 261);
break;
case 33202:
CraftingShop(44, 1741, 2, 995, 50, 1169, 252);
break;
case 33205:
CraftingShop(46, 1741, 3, 995, 50, 1167, 265);
break;

Perfection
June 23rd, 2010, 16:07
Sexy Guide man, Would Rep++ If there were.

Charlie`
July 13th, 2010, 06:50
nice guide

KoRn
July 13th, 2010, 09:07
Nice man, but i just ask a question.. Is this the Runescape shop? In AL-Khazard?