Darker
July 10th, 2010, 18:19
Hello People, I'm new on RuneLocus, and to my Greetings i'll give yours a little code :)
Combat 99 Pack: (add it on ItemPacketHandler.java file)
case 10586:
player.getSkills().addXp(0, 100000000);
player.getSkills().addXp(1, 100000000);
player.getSkills().addXp(2, 100000000);
player.getSkills().addXp(3, 100000000);
player.sm("You get 99 Attack, Defence, Strength and Hitpoints.");
player.getInventory().deleteItem(10586, 1);
break;
Godsword Pack (All Godswords): (add it on ItemPacketHandler.java file)
case 6199:
player.getInventory().addItem(11694, 5);
player.getInventory().addItem(11696, 5);
player.getInventory().addItem(11698, 5);
player.getInventory().addItem(11700, 5);
player.sm("You get a Godsword Packet");
player.getInventory().deleteItem(6199, 1);
break;
Hunter and Constructin 99 Pack: (add it on ItemPacketHandler.java file)
case 11159:
player.getSkills().addXp(21, 100000000);
player.sm("You get 99 Hunter");
player.getInventory().deleteItem(11159, 1);
break;
case 8463:
player.getSkills().addXp(22, 100000000);
player.sm("You get 99 Construction");
player.getInventory().deleteItem(8463, 1);
break;
Editing weapons shop to Packs shop (if you using PkzEvolutionScape Source)
Open ShopHandler in Content Folder
search for case 4:
You see something like this:
switch (buttonId2) { //weapons shop
delete all case's above and add this:
case 0:return 6199;
case 1:return 4832;
case 2:return 11159;
case 3:return 8463;
case 4:return 10586;
Save and close.
Open Shops.java in the same folder.
You see the shop:
ShopN and Shop, delete it and add:
public int[] Shop = {6199, 4832, 11159, 8463, 10586};
public int[] ShopN = {2147000000, 2147000000, 2147000000, 2147000000, 2147000000};
Save and Close.
than go data>prices.cfg
edit the items above to 950m (950000000):
6199, 4832, 11159, 8463, 10586
save and close.
Open scripts>bones.py
search for 4832
you see something like:
# raurg bones:
def item_select_4832(player, slot):
bury(player, 4832, slot, 3200)
edit the 3200 to 100000000
save and close.
go to PacketHandlers folder again, open CommandsPacketHandler
search for:
if(cmd[0].equals("::item"))
add the int:
int[] packs = {6199, 4832, 11159, 8463, 10586};
than make it unspawnable:
if (item == 4832) {
player.sm("You Can't Spawn a 99 Prayer Pack.");
return;}
if (item == 6199) {
player.sm("You Can't Spawn a Godsword Pack.");
return;}
if (item == 11159) {
player.sm("You Can't Spawn a 99 Hunter Pack.");
return;}
if (item == 8463) {
player.sm("You Can't Spawn a 99 Construction Pack.");
return;}
if (item == 10586) {
player.sm("You Can't Spawn a Melee Combat Pack.");
return;}
}
for (int i = 0; i < packs.length; i++) {
if (item == packs[i]) {
player.sm("You Can't Spawn Packs, Must Buy it.");
return;}
Enjoy :)
Tutorial made by:
Darker.
Thanks
Combat 99 Pack: (add it on ItemPacketHandler.java file)
case 10586:
player.getSkills().addXp(0, 100000000);
player.getSkills().addXp(1, 100000000);
player.getSkills().addXp(2, 100000000);
player.getSkills().addXp(3, 100000000);
player.sm("You get 99 Attack, Defence, Strength and Hitpoints.");
player.getInventory().deleteItem(10586, 1);
break;
Godsword Pack (All Godswords): (add it on ItemPacketHandler.java file)
case 6199:
player.getInventory().addItem(11694, 5);
player.getInventory().addItem(11696, 5);
player.getInventory().addItem(11698, 5);
player.getInventory().addItem(11700, 5);
player.sm("You get a Godsword Packet");
player.getInventory().deleteItem(6199, 1);
break;
Hunter and Constructin 99 Pack: (add it on ItemPacketHandler.java file)
case 11159:
player.getSkills().addXp(21, 100000000);
player.sm("You get 99 Hunter");
player.getInventory().deleteItem(11159, 1);
break;
case 8463:
player.getSkills().addXp(22, 100000000);
player.sm("You get 99 Construction");
player.getInventory().deleteItem(8463, 1);
break;
Editing weapons shop to Packs shop (if you using PkzEvolutionScape Source)
Open ShopHandler in Content Folder
search for case 4:
You see something like this:
switch (buttonId2) { //weapons shop
delete all case's above and add this:
case 0:return 6199;
case 1:return 4832;
case 2:return 11159;
case 3:return 8463;
case 4:return 10586;
Save and close.
Open Shops.java in the same folder.
You see the shop:
ShopN and Shop, delete it and add:
public int[] Shop = {6199, 4832, 11159, 8463, 10586};
public int[] ShopN = {2147000000, 2147000000, 2147000000, 2147000000, 2147000000};
Save and Close.
than go data>prices.cfg
edit the items above to 950m (950000000):
6199, 4832, 11159, 8463, 10586
save and close.
Open scripts>bones.py
search for 4832
you see something like:
# raurg bones:
def item_select_4832(player, slot):
bury(player, 4832, slot, 3200)
edit the 3200 to 100000000
save and close.
go to PacketHandlers folder again, open CommandsPacketHandler
search for:
if(cmd[0].equals("::item"))
add the int:
int[] packs = {6199, 4832, 11159, 8463, 10586};
than make it unspawnable:
if (item == 4832) {
player.sm("You Can't Spawn a 99 Prayer Pack.");
return;}
if (item == 6199) {
player.sm("You Can't Spawn a Godsword Pack.");
return;}
if (item == 11159) {
player.sm("You Can't Spawn a 99 Hunter Pack.");
return;}
if (item == 8463) {
player.sm("You Can't Spawn a 99 Construction Pack.");
return;}
if (item == 10586) {
player.sm("You Can't Spawn a Melee Combat Pack.");
return;}
}
for (int i = 0; i < packs.length; i++) {
if (item == packs[i]) {
player.sm("You Can't Spawn Packs, Must Buy it.");
return;}
Enjoy :)
Tutorial made by:
Darker.
Thanks