Geo
July 14th, 2010, 20:56
Look for "private void itemselect" in your itempackethandler.java
You should see something like:
case 139:
case 141:
case 143:
if (player.potDelay == 0) {
player.getInventory().deleteItem(itemId, 1);
if (itemId != 143) {
player.getInventory().addItem(itemId+2, 1);
} else {
player.getInventory().addItem(229, 1);
}
int abc = (int) ((player.getSkills().getLevelForXp(5)/4) + 7);
player.getSkills().RestorePray(abc);
player.animate(829, 0);
player.combatDelay += 4;
player.potDelay = 3;
}
break;
after the break add this:
case 14217:
if (player.potDelay == 0) {
player.getInventory().deleteItem(14217, 1);
player.getInventory().addItem(14219, 1);
player.specialAmount = 25;
player.animate(829, 0);
player.sm("Your special has been restored.");
player.potDelay = 30;
}
break;
case 14219:
if (player.potDelay == 0) {
player.getInventory().deleteItem(14219, 1);
player.getInventory().addItem(14221, 1);
player.specialAmount = 25;
player.animate(829, 0);
player.sm("Your special has been restored.");
player.potDelay = 30;
}
break;
case 14221:
if (player.potDelay == 0) {
player.getInventory().deleteItem(14221, 1);
player.getInventory().addItem(14223, 1);
player.specialAmount = 25;
player.animate(829, 0);
player.sm("Your special has been restored.");
player.potDelay = 30;
}
break;
case 14223:
if (player.potDelay == 0) {
player.getInventory().deleteItem(14223, 1);
player.getInventory().addItem(14225, 1);
player.specialAmount = 25;
player.animate(829, 0);
player.sm("Your special has been restored.");
player.potDelay = 30;
}
break;
case 14225:
if (player.potDelay == 0) {
player.getInventory().deleteItem(14225, 1);
player.getInventory().addItem(229, 1);
player.specialAmount = 25;
player.animate(829, 0);
player.sm("Your special has been restored.");
player.potDelay = 30;
}
break;
if you don't have 14217-14225 in your itemdefinitions add this in your itemdefinitions.xml:
<itemDefinition>
<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>
<normPrice>0</normPrice>
</price>
<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
</bonus>
<examine>A strong potion.</examine>
<id>14217</id>
<stackable>false</stackable>
<name>extreme something (5)</name>
<noted>false</noted>
<equipId>-1</equipId>
</itemDefinition>
<itemDefinition>
<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>
<normPrice>0</normPrice>
</price>
<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
</bonus>
<examine>A strong potion.</examine>
<id>14219</id>
<stackable>false</stackable>
<name>extreme something (4)</name>
<noted>false</noted>
<equipId>-1</equipId>
</itemDefinition>
<itemDefinition>
<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>
<normPrice>0</normPrice>
</price>
<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
</bonus>
<examine>A strong potion.</examine>
<id>14221</id>
<stackable>false</stackable>
<name>extreme something (3)</name>
<noted>false</noted>
<equipId>-1</equipId>
</itemDefinition>
<itemDefinition>
<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>
<normPrice>0</normPrice>
</price>
<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
</bonus>
<examine>A strong potion.</examine>
<id>14223</id>
<stackable>false</stackable>
<name>extreme something (2)</name>
<noted>false</noted>
<equipId>-1</equipId>
</itemDefinition>
<itemDefinition>
<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>
<normPrice>0</normPrice>
</price>
<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
</bonus>
<examine>A strong potion.</examine>
<id>14225</id>
<stackable>false</stackable>
<name>extreme something (1)</name>
<noted>false</noted>
<equipId>-1</equipId>
</itemDefinition>
posted this 'cause someone requested...
You should see something like:
case 139:
case 141:
case 143:
if (player.potDelay == 0) {
player.getInventory().deleteItem(itemId, 1);
if (itemId != 143) {
player.getInventory().addItem(itemId+2, 1);
} else {
player.getInventory().addItem(229, 1);
}
int abc = (int) ((player.getSkills().getLevelForXp(5)/4) + 7);
player.getSkills().RestorePray(abc);
player.animate(829, 0);
player.combatDelay += 4;
player.potDelay = 3;
}
break;
after the break add this:
case 14217:
if (player.potDelay == 0) {
player.getInventory().deleteItem(14217, 1);
player.getInventory().addItem(14219, 1);
player.specialAmount = 25;
player.animate(829, 0);
player.sm("Your special has been restored.");
player.potDelay = 30;
}
break;
case 14219:
if (player.potDelay == 0) {
player.getInventory().deleteItem(14219, 1);
player.getInventory().addItem(14221, 1);
player.specialAmount = 25;
player.animate(829, 0);
player.sm("Your special has been restored.");
player.potDelay = 30;
}
break;
case 14221:
if (player.potDelay == 0) {
player.getInventory().deleteItem(14221, 1);
player.getInventory().addItem(14223, 1);
player.specialAmount = 25;
player.animate(829, 0);
player.sm("Your special has been restored.");
player.potDelay = 30;
}
break;
case 14223:
if (player.potDelay == 0) {
player.getInventory().deleteItem(14223, 1);
player.getInventory().addItem(14225, 1);
player.specialAmount = 25;
player.animate(829, 0);
player.sm("Your special has been restored.");
player.potDelay = 30;
}
break;
case 14225:
if (player.potDelay == 0) {
player.getInventory().deleteItem(14225, 1);
player.getInventory().addItem(229, 1);
player.specialAmount = 25;
player.animate(829, 0);
player.sm("Your special has been restored.");
player.potDelay = 30;
}
break;
if you don't have 14217-14225 in your itemdefinitions add this in your itemdefinitions.xml:
<itemDefinition>
<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>
<normPrice>0</normPrice>
</price>
<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
</bonus>
<examine>A strong potion.</examine>
<id>14217</id>
<stackable>false</stackable>
<name>extreme something (5)</name>
<noted>false</noted>
<equipId>-1</equipId>
</itemDefinition>
<itemDefinition>
<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>
<normPrice>0</normPrice>
</price>
<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
</bonus>
<examine>A strong potion.</examine>
<id>14219</id>
<stackable>false</stackable>
<name>extreme something (4)</name>
<noted>false</noted>
<equipId>-1</equipId>
</itemDefinition>
<itemDefinition>
<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>
<normPrice>0</normPrice>
</price>
<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
</bonus>
<examine>A strong potion.</examine>
<id>14221</id>
<stackable>false</stackable>
<name>extreme something (3)</name>
<noted>false</noted>
<equipId>-1</equipId>
</itemDefinition>
<itemDefinition>
<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>
<normPrice>0</normPrice>
</price>
<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
</bonus>
<examine>A strong potion.</examine>
<id>14223</id>
<stackable>false</stackable>
<name>extreme something (2)</name>
<noted>false</noted>
<equipId>-1</equipId>
</itemDefinition>
<itemDefinition>
<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>
<normPrice>0</normPrice>
</price>
<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
</bonus>
<examine>A strong potion.</examine>
<id>14225</id>
<stackable>false</stackable>
<name>extreme something (1)</name>
<noted>false</noted>
<equipId>-1</equipId>
</itemDefinition>
posted this 'cause someone requested...