DUEL ARENA SCRIPT ( FOR BLOB AND GM ) Purpose: Make a new PK Box (kind of like a mini duel place) for you and your friends.
Difficulty: 3/10
Assumed Knowledge: Know how to copy and paste
Classes Modified: npchandler.java, client.java, shops.cfg and autospawn.cfg (4 Classes Modified in total)
Procedure
Step 1: Ok. First off, open autospawn.cfg up.
Go down to your shop keepers and add
Code:
// PK BOX SHIZNAT
spawn = 747 2759 2767 0 0 0 0 0 1 Oziach shopkeeper
spawn = 970 2759 2766 0 0 0 0 0 1 Diango shopkeeper
spawn = 551 2759 2765 0 3254 3420 3254 3420 2 Misc Shop Keeper
spawn = 553 2759 2768 0 3251 3420 3251 3420 2 Aubury
spawn = 555 2759 2769 0 3252 3421 3252 3421 2 Weapon/Ammy Shop Keeper
spawn = 2168 2759 2770 0 3254 3434 3254 3434 2 team capes 1
spawn = 2167 2759 2771 0 3253 3434 3253 3434 2 team capes 2
spawn = 2027 2770 2770 0 3224 3526 3247 3537 2 barrows
spawn = 2029 2768 2772 0 3224 3526 3247 3537 2 barrows
spawn = 2026 2768 2767 0 3224 3526 3247 3537 2 barrows
spawn = 1201 3267 3435 0 3267 3435 3267 3435 2 PK Box advert elf
spawn = 1199 3269 3435 0 3269 3435 3269 3435 2 PK Box advert elf
spawn = 1552 3254 3430 0 0 0 0 0 2 Santa
// END OF PK BOX SHIZNAT
Now save and close off autospawn.cfg.
Step 2: Time to open npchandler.java
Search for
Code:
moo
Then go down to the last
Code:
} and press enter, then paste this code:
Code:
// PK BOX SHIZNAT NPC
if (npcs.npcType == 1552) {
if (misc.random2(30) <= 3) {
npcs.updateRequired = true;
npcs.textUpdateRequired = true;
npcs.textUpdate = "Go to the north east door to get to PK Box";
}
}
if (npcs.npcType == 2027) {
if (misc.random2(30) <= 3) {
npcs.updateRequired = true;
npcs.textUpdateRequired = true;
npcs.textUpdate = "Welcome to the PK Box";
}
}
if (npcs.npcType == 2029) {
if (misc.random2(30) <= 3) {
npcs.updateRequired = true;
npcs.textUpdateRequired = true;
npcs.textUpdate = "No Pking in the dark brown area!";
}
}
if (npcs.npcType == 2026) {
if (misc.random2(30) <= 3) {
npcs.updateRequired = true;
npcs.textUpdateRequired = true;
npcs.textUpdate = "Try searching the crates!";
}
}
if (npcs.npcType == 1201) {
if (misc.random2(30) == 1) {
npcs.updateRequired = true;
npcs.textUpdateRequired = true;
npcs.textUpdate = "Have fun and dont die!";
}
}
if (npcs.npcType == 1199) {
if (misc.random2(30) == 1) {
npcs.updateRequired = true;
npcs.textUpdateRequired = true;
npcs.textUpdate = "Go through this door to go to PK Box";
}
}
// END OF PK BOX SHIZNAT NPC
Save off and close npchandler.java.
Step 3: Time to open client.java
Search for
Code:
Case 132:
Look a little below that for something that looks like this:
Code:
if(objectID == 6912) { // Xerozcheez: This object requires to be 3 sqs minium, so we change it ;)
destinationRange = 3;
}
It doesn't have to look exactly like that but similar like:
Code:
if(objectID ==
Ok, now go to the last
Code:
} in that code, press enter and paste this:
Code:
// pk box SHIZNAT
if(objectID == 4715) { // tele to mod island
teleportToX = 2088;
teleportToY = 3206;
sendMessage("Welcome To Mod Island");
}
if(objectID == 4719) { // char design screen
showInterface(3559);
}
if(objectID == 4722) { // tele to dummy room
teleportToX = 3252;
teleportToY = 3432;
}
if(objectID == 4723) { // bank
openUpBank();
}
if(objectID == 4721) { // tele to ghorrock using the double box
teleportToX = 3091;
teleportToY = 3957;
sendMessage("Welcome To Ghorrock");
}
if(objectID == 4712 && playerRights >= 2) { // use trap door and admins get a mod ring
addItem(773, 1);
sendMessage("Use this wisely");
}
if(objectID == 1591) { // tele to PK Box by using door in east varrock
teleportToX = 2764;
teleportToY = 2772;
sendMessage("Welcome To PK Box");
}
if(objectID == 356) { // tele to PK Box by using the ghorrock crate
teleportToX = 2764;
teleportToY = 2772;
sendMessage("Welcome To PK Box");
}
//END OF PK BOX SHIZNAT
Step 4:Search for } else if (NPCID == 553) { //Aubury rune shop and you should get something
like this:
Code:
else if (NPCID == 553) { //Aubury rune shop
PutNPCCoords = true;
WanneShop = 2; //Aubury Magic Shop
} [/i]
Now there are about 7 shops here so watch the WanneShop #'s
Now, Delete Aubury's shop and place all this over it:
You may want to change the WanneShop = # to suit your needs.
Code:
else if (NPCID == 551) { //Shop Keeper
PutNPCCoords = true;
WanneShop = 1; //General Pk Store
} else if (NPCID == 553) { //Aubury rune shop
PutNPCCoords = true;
WanneShop = 2; //Aubury Magic Shop
} else if (NPCID == 555) { //Shop Keeper
PutNPCCoords = true;
WanneShop = 3; //Weapon/Ammy Shop
} else if (NPCID == 1305) { // Agnar Food Shop
PutNPCCoords = true;
WanneShop = 4; //Aubury Magic Shop
} else if (NPCID == 2167) { // team capes 1
PutNPCCoords = true;
WanneShop = 5;
} else if (NPCID == 2168) { // team capes 2
PutNPCCoords = true;
WanneShop = 6;
} else if (NPCID == 747) { //Oziach mage shop
PutNPCCoords = true;
WanneShop = 7; //Oziach mage shop
} else if (NPCID == 970) { //Diangos hats
PutNPCCoords = true;
WanneShop = 8; //Diango
}
Now save and close off client.java
Step 4: Time to open shops.cfg
Go down to end of the second last line and press enter and paste this into it:
Code:
shop = 1 Fine_PKing_Supplies 1 1 391 5000 3751 2000 3749 2000 3753 3000 3755 2000 1127 2000 1079 2000 1093 2000 1163 2000 7535 5000 7460 2000 7461 5000 7462 5000 5574 500 5575 500 5576 500 3105 5000 6524 5000 6568 5000 6106 500 6107 1000 6108 1000 6109 1000 6110 1000 6111 1000
shop = 2 Ze_Weapon_Store 2 2 4151 1000 1231 100 1305 1000 1377 1000 1434 1000 4587 1000 3204 1000 6739 1000 7158 1000 5730 1000 3844 10 3840 10 3842 10
shop = 3 Weaponz_And_Jewelz_Shop 1 1 1725 5000 6585 5000 1704 5000 2491 5000 2497 5000 2503 5000 6731 5000 6735 5000 2997 5000
shop = 4 Food_Store. 2 2 379 500 373 500 385 500 397 500 391 500
shop = 5 Pot_Up_Son_Shop 2 2 2436 100 2440 100 2442 100 2434 100 2446 100 3024 100 4835 10000
shop = 6 Barrows_Shop 2 2 4708 100 4710 100 4712 100 4714 100 4716 100 4718 100 4720 100 4722 100 4753 100 4755 100 4757 100 4759 100 4745 100 4747 100 4749 100 4751 100 4724 100 4726 100 4728 100 4730 100 4732 100 4734 100 4736 100 4738 100
shop = 7 @cya@Fire Cape 2 2 6570 1000
shop = 8 @red@Pures Plox 2 2 1837 1000 1115 1000 1067 1000 1191 1000 1153 1000 5698 1000 4675 1000 6585 1000 2503 1000 2497 1000 2491 1000 4151 1000 2643 1000 6106 1000 6107 1000 6109 1000 6110 1000 6111 1000 2577 1000 2581 1000 1725 1000 861 1000 892 1000 542 1000 544 1000
Remember to corespond your WanneShop's with eachother!
Now, save, compile & run. Login and go to the varrock dummy room and go where Santa is pointing you to!
There should be two elf's guarding the door. Click on that door!
Recap of what you have just done : You have just created a PK box. This may only work on PK servers where Ape Atoll is a pk zone. Your PK box is located inside of a big empty warehouse with many crates. If you search the crates, you will find many surprises. There are 8 shops located along the walls of PK box. The dark brown area is a PK-free zone, meaning that no one should attack anyone, and if they do, they will be punished with your punishment of choice. The 8 shops carry many different things such as food to armour. There are a couple of ways to enter PK box. You may enter by following the directions that Santa gave you infront of the dummy room. Or you can teleport to Ape Atoll and walk south until you see a big building with many NPC's inside. In the middle of PK box, there is a trapdoor that when you click on it, you get a 'perfect' ring, which in most servers is a 'MOD' ring. When you click on the trapdoor, only mods and admins are able to get the ring, mods and regular players get nothing.
Credits : 95% Bammer (me), 5% Phonecheck, for the items in the shops and the shops
blobboy- 03-28-2007
dud could u put these in code quotes would be apreciated
halson- 03-28-2007
dud could u put these in code quotes would be apreciated
so does any of them work???
blobboy- 03-28-2007
hmm there not exactly what im looking for it seems more like its making pk zones and thats about it
tom- 04-06-2007
ah man that looked like cool idea :D
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.