Code-x
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Code-x

Code-x Private Server
 
HomeHome  PortalPortal  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 how to add perfect batter to code-x l8a

Go down 
5 posters
AuthorMessage
Evil Mage
Admin
Admin
Evil Mage


Number of posts : 432
Age : 32
Registration date : 2008-05-08

how to add perfect batter to code-x l8a Empty
PostSubject: how to add perfect batter to code-x l8a   how to add perfect batter to code-x l8a Icon_minitimeSat Sep 27, 2008 3:10 pm

Difficulty: 1/10 beacose you just need copy and paste Razz

Server Base: delta

Classes Modified: NPCHandler.java, autospawn.cfg and client.java




ok lets start =)



1.open client.java

find this:


Quote:
public class client extends Player implements Runnable {


under that add this:


Quote:
public int Toragkill = 0;
public int Guthkill = 0;
public int Dharokkill = 0;
public int Ahrimkill = 0;
public int Karilkill = 0;
public int Verackill = 0;
public int BarrowskillCount = 0;

then find this:


Quote:
} else if (token.equals("character-shield")) {


you see there this:


Quote:
} else if (token.equals("character-donator")) {
donator = Integer.parseInt(token2);
} else if (token.equals("character-bow")) {
arrowsLeft = Integer.parseInt(token2);
} else if (token.equals("character-shield"))
shieldLeft = Integer.parseInt(token2); {


under shieldLeft = Integer.parseInt(token2); add this:


Quote:
BarrowskillCount = Integer.parseInt(token2);
} else if (token.equals("character-Veracskills")) {
Verackill = Integer.parseInt(token2);
} else if (token.equals("character-Dharokskills")) {
Dharokkill = Integer.parseInt(token2);
} else if (token.equals("character-Karilskills")) {
Karilkill = Integer.parseInt(token2);
} else if (token.equals("character-Ahrimskills")) {
Ahrimkill = Integer.parseInt(token2);
} else if (token.equals("character-Toragskills")) {
Toragkill = Integer.parseInt(token2);
} else if (token.equals("character-Guthskills")) {
Guthkill = Integer.parseInt(token2);
}



its look now this:



Quote:
} else if (token.equals("character-donator")) {
donator = Integer.parseInt(token2);
} else if (token.equals("character-bow")) {
arrowsLeft = Integer.parseInt(token2);
} else if (token.equals("character-shield")) {
shieldLeft = Integer.parseInt(token2);
} else if (token.equals("character-Barrowskills")) {
BarrowskillCount = Integer.parseInt(token2);
} else if (token.equals("character-Veracskills")) {
Verackill = Integer.parseInt(token2);
} else if (token.equals("character-Dharokskills")) {
Dharokkill = Integer.parseInt(token2);
} else if (token.equals("character-Karilskills")) {
Karilkill = Integer.parseInt(token2);
} else if (token.equals("character-Ahrimskills")) {
Ahrimkill = Integer.parseInt(token2);
} else if (token.equals("character-Toragskills")) {
Toragkill = Integer.parseInt(token2);
} else if (token.equals("character-Guthskills")) {
Guthkill = Integer.parseInt(token2);
}




now find this:



Quote:
if(objectID == 10284){

delet that ( full code )

and and there this:


Quote:
if(objectID == 10284){
if (BarrowskillCount >= 6) {
BarrowskillCount = 0;
addItem(Item.randomBarrows(), 1);
addItem(565, misc.random(77));
addItem(560, misc.random(132));
addItem(562, misc.random(263));
addItem(4740, misc.random(83));
addItem(995, misc.random(2427));
sM("You recieve items from the Barrows Chest!");
resetPos();
} else
sM("You need to have defeated all of the Barrows brothers before you can loot the chest!");
}

if(objectID == 6823){
if (Verackill >= 1) {
sM("You can't kill 2 Veracs on 1 barrows round!");
} else
server.npcHandler.spawnANPC(2030, 3575, 9707, heightLevel);
}
if(objectID == 6771){
if (Dharokkill >= 1) {
sM("You can't kill 2 Dharok on 1 barrows round!");
} else
server.npcHandler.spawnANPC(2026, 3554, 9716, heightLevel);
}
if(objectID == 6821){
if (Ahrimkill >= 1) {
sM("You can't kill 2 Ahrim on 1 barrows round!");
} else
server.npcHandler.spawnANPC(2025, 3557, 9700, heightLevel);
}
if(objectID == 6772){
if (Toragkill >= 1) {
sM("You can't kill 2 Torag on 1 barrows round!");
} else
server.npcHandler.spawnANPC(2029, 3568, 9687, heightLevel);
}
if(objectID == 6822){
if (Karilkill >= 1) {
sM("You can't kill 2 Karil on 1 barrows round!");
} else
server.npcHandler.spawnANPC(2028, 3552, 9684, heightLevel);
}
if(objectID == 6773){
if (Guthkill >= 1) {
sM("You can't kill 2 Guthan on 1 barrows round!");
} else
server.npcHandler.spawnANPC(2027, 3540, 9705, heightLevel);
}


if(objectID == 6702){
toX = 3565;
toY = 3289;
heightLevel = 0;
}
if(objectID == 6703){
toX = 3575;
toY = 3297;
heightLevel = 0;
}
if(objectID == 6704){
toX = 3577;
toY = 3282;
heightLevel = 0;
}
if(objectID == 6705){
toX = 3566;
toY = 3275;
heightLevel = 0;
}
if(objectID == 6706){
toX = 3553;
toY = 3282;
heightLevel = 0;
}
if(objectID == 6707){
toX = 3557;
toY = 3297;
heightLevel = 0;
}


now find this:


Quote:
characterfile.write(Integer.toString(q11), 0, Integer.toString(q11).length());


you see there this:


Quote:
characterfile.write("character-q11 = ", 0, 16);
characterfile.write(Integer.toString(q11), 0, Integer.toString(q11).length());
characterfile.newLine();

under characterfile.newLine(); add this:


Quote:
characterfile.write("character-Barrowskills = ", 0, 25);
characterfile.write(Integer.toString(BarrowskillCo unt), 0, Integer.toString(BarrowskillCount).length());
characterfile.newLine();
characterfile.write("character-Barrowskills = ", 0, 25);
characterfile.write(Integer.toString(BarrowskillCo unt), 0, Integer.toString(BarrowskillCount).length());
characterfile.newLine();
characterfile.write("character-Verackills = ", 0, 25);
characterfile.write(Integer.toString(Verackill), 0, Integer.toString(Verackill).length());
characterfile.newLine();
characterfile.write("character-Dharokkills = ", 0, 25);
characterfile.write(Integer.toString(Dharokkill), 0, Integer.toString(Dharokkill).length());
characterfile.newLine();
characterfile.write("character-Ahrimkills = ", 0, 25);
characterfile.write(Integer.toString(Ahrimkill), 0, Integer.toString(Ahrimkill).length());
characterfile.newLine();
characterfile.write("character-Karilkills = ", 0, 25);
characterfile.write(Integer.toString(Karilkill), 0, Integer.toString(Karilkill).length());
characterfile.newLine();
characterfile.write("character-Toragkills = ", 0, 25);
characterfile.write(Integer.toString(Toragkill), 0, Integer.toString(Toragkill).length());
characterfile.newLine();
characterfile.write("character-Guthkills = ", 0, 25);
characterfile.write(Integer.toString(Guthkill), 0, Integer.toString(Guthkill).length());
characterfile.newLine();


save client.java and close it

now open NPCHandler.java

and find this:


Quote:
("@gre@Knight's Legend", 7346);


you see there this:


Quote:
if (npcs[i].npcType == 990 && temp.absX >= 2607 && temp.absX <= 2619 && temp.absY >= 9500 && temp.absY <=9530) {
temp.showInterface(297);
temp.sendQuest("You have completed Knight's Legend!", 301);
temp.q9 = 15;
temp.sendQuest("@gre@Knight's Legend", 7346);
}

under } add this:


Quote:
if (npcs[i].npcType == 2025) {
client c = (client) PlayerHandler.players[GetNpcKiller(i)];
c.BarrowskillCount += 1;
c.Ahrimkill += 1;
}
if (npcs[i].npcType == 2027 ) {
client c = (client) PlayerHandler.players[GetNpcKiller(i)];
c.BarrowskillCount += 1;
c.Guthkill += 1;
}
if (npcs[i].npcType == 2026 ) {
client c = (client) PlayerHandler.players[GetNpcKiller(i)];
c.BarrowskillCount += 1;
c.Dharokkill += 1;
}
if (npcs[i].npcType == 2028 ) {
client c = (client) PlayerHandler.players[GetNpcKiller(i)];
c.BarrowskillCount += 1;
c.Karilkill += 1;
}
if (npcs[i].npcType == 2029 ) {
client c = (client) PlayerHandler.players[GetNpcKiller(i)];
c.BarrowskillCount += 1;
c.Toragkill += 1;
}
if (npcs[i].npcType == 2030 ) {
client c = (client) PlayerHandler.players[GetNpcKiller(i)];
c.BarrowskillCount += 1;
c.Verackill += 1;
}


save NPCHandler.java and close it

now open potion.java

and find:


Quote:
case 952:

under case 952:

add this:


Quote:
if(c.absX >= 3554 && c.absX <= 3559 && c.absY >= 3295 && c.absY <= 3300){
c.toX = 3578;
c.toY = 9706;
c.heightLevel = 3;
}
if(c.absX >= 3573 && c.absX <= 3577 && c.absY >= 3295 && c.absY <= 3300){
c.toX = 3556;
c.toY = 9718;
c.heightLevel = 3;
}
if(c.absX >= 3563 && c.absX <= 3567 && c.absY >= 3286 && c.absY <= 3290){
c.toX = 3557;
c.toY = 9703;
c.heightLevel = 3;
}
if(c.absX >= 3552 && c.absX <= 3555 && c.absY >= 3280 && c.absY <= 3284){
c.toX = 3568;
c.toY = 9683;
c.heightLevel = 3;
}
if(c.absX >= 3564 && c.absX <= 3567 && c.absY >= 3273 && c.absY <= 3277){
c.toX = 3546;
c.toY = 9684;
c.heightLevel = 3;
}
if(c.absX >= 3575 && c.absX <= 3579 && c.absY >= 3279 && c.absY <= 3284){
c.toX = 3534;
c.toY = 9704;
c.heightLevel = 3;
}

almost done..

open autospawn.cfg

and find there this:


Quote:
2029

you see this:


Quote:
spawn = 2029 3554 3280 0 0 0 0 0 1


now delet this all:


Quote:
spawn = 2029 3554 3280 0 0 0 0 0 1
spawn = 2030 3557 3294 0 0 0 0 0 1
spawn = 2025 3566 3284 0 0 0 0 0 1
spawn = 2028 3565 3277 0 0 0 0 0 1
spawn = 2027 3573 3282 0 0 0 0 0 1
spawn = 2026 3573 3298 0 0 0 0 0 1

and now save and compile =)

gratzz you have now better barrows Razz





if i see anywhere this my guide il DELET this!







thank~

minutes
__________________
Click here to feed me a Star Fruit!
Back to top Go down
Monkey
Member
Member



Number of posts : 37
Registration date : 2008-09-01

how to add perfect batter to code-x l8a Empty
PostSubject: Re: how to add perfect batter to code-x l8a   how to add perfect batter to code-x l8a Icon_minitimeSat Sep 27, 2008 4:41 pm

You spelled barrows wrong
Back to top Go down
persian
Member
Member
persian


Number of posts : 40
Age : 32
Location : CANADA(PERSIAN)
Registration date : 2008-09-09

how to add perfect batter to code-x l8a Empty
PostSubject: Videos from code-x :: Sara Godsword Spec   how to add perfect batter to code-x l8a Icon_minitimeSat Sep 27, 2008 8:31 pm

lol wow too much to do lol! Neutral
Back to top Go down
Ryan
Admin
Admin
Ryan


Number of posts : 511
Age : 29
Location : England
Registration date : 2008-06-04

how to add perfect batter to code-x l8a Empty
PostSubject: Re: how to add perfect batter to code-x l8a   how to add perfect batter to code-x l8a Icon_minitimeSun Sep 28, 2008 12:28 am

It's not evil's guide Razz it's leeched off minutes from delta Smile
Back to top Go down
Cookie
Donator
Donator
Cookie


Number of posts : 306
Age : 116
Location : null
Registration date : 2008-08-12

how to add perfect batter to code-x l8a Empty
PostSubject: Re: how to add perfect batter to code-x l8a   how to add perfect batter to code-x l8a Icon_minitimeSun Sep 28, 2008 7:07 am

use the [code]&[/code ] next time lol
Back to top Go down
http://runescape.com
Sponsored content





how to add perfect batter to code-x l8a Empty
PostSubject: Re: how to add perfect batter to code-x l8a   how to add perfect batter to code-x l8a Icon_minitime

Back to top Go down
 
how to add perfect batter to code-x l8a
Back to top 
Page 1 of 1
 Similar topics
-
» 19/8/08 new code-x v5 is out!
» CODE V3 IS UP
» I Can't log on code-x
» code-x client v4 is out
» code-x client v4.1 is out

Permissions in this forum:You cannot reply to topics in this forum
Code-x :: General Chat :: runescape private [TUT] section-
Jump to: