• Log in or sign up for an account here: https://www.sythe.org/login

Fletching

  • Thread starter Thread starter pk3r kyle
  • Start date Start date
P

pk3r kyle

Guest
Purpose: This is to allow almost full fletching on your server(everything except darts) in one, easy to use, void.

Difficulty: 2/10

Assumed Knowledge: Know where to place voids, have a brain, and know how to use Ctrl+F.

Server Base: Any source that has Item on Item

Classes Modified: Client.java 0r ClientHandler.java (wichever you use)

Procedure:

1: BACKUP CLIENT.JAVA BEFORE GOING FURTHER

2:right under

Code:
public class client extends Player implements Runnable {

(or wherever you put your voids, you can choose a diferent loc)
add
Code:
int FletchingType = 0;
boolean FletchingOn = false;


then add this under that
Code:
public void Fletching(int type, int logtype) { //logtype is also arrowtype for arrows

//type 0=arrowshaft 1=shortbow(U) 2=longbow(U) 3=Bow 4=Longbow 5=arrow 6=dart
//logtype 0=regular 1=oak 2=willow 3=Maple 4=Yew 5=Magic
//logtype (arrow)0=Add feathers to shafts 1= bronze 2= Iton 3= Steel 4= Mithril 5= Addy 6= Rune
//logtype (dart, adding faethers) 0= bronze 1= Iton 2= Steel 3= Mithril 4= Addy 5= Rune



if(type == 0) {//arrowshafts
	deleteItem(1511,getItemSlot(1511),1);//regular logs
	addItem(52, 50);//arrowshafts
	addSkillXP((20*playerLevel[9]), 9);
sendMessage("You cut the logs into arrowshafts");
} 
if(type == 1) {//shortbows(u)
if(logtype == 0) {//regular
if (playerLevel[9] >= 5) {
	deleteItem(1511,getItemSlot(1511),1);//regular logs
	addItem(50, 1);
	addSkillXP((25*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 5 fletcing to make this.");
}
}
if(logtype == 1) {//oak
if (playerLevel[9] >= 15) {
	deleteItem(1521,getItemSlot(1521),1);//oak logs
	addItem(54, 1);
	addSkillXP((75*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 15 fletcing to make this.");
}
}
if(logtype == 2) {//willow
if (playerLevel[9] >= 25) {
	deleteItem(1519,getItemSlot(1519),1);//willow logs
	addItem(58, 1);
	addSkillXP((225*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 25 fletcing to make this.");
}
}
if(logtype == 3) {//Maple
if (playerLevel[9] >= 35) {
	deleteItem(1517,getItemSlot(1517),1);//Maple logs
	addItem(64, 1);
	addSkillXP((675*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 35 fletcing to make this.");
}
}
if(logtype == 4) {//Yew
if (playerLevel[9] >= 45) {
	deleteItem(1515,getItemSlot(1515),1);//Maple logs
	addItem(68, 1);
	addSkillXP((675*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 45 fletcing to make this.");
}
}
if(logtype == 5) {//Magic
if (playerLevel[9] >= 65) {
	deleteItem(1513,getItemSlot(1513),1);//Maple logs
	addItem(72, 1);
	addSkillXP((2025*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 65 fletcing to make this.");
}
}
}

if(type == 2) {//longbows(u)
if(logtype == 0) {//regular
if (playerLevel[9] >= 10) {
	deleteItem(1511,getItemSlot(1511),1);//regular logs
	addItem(48, 1);
	addSkillXP((50*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 10 fletcing to make this.");
}
}
if(logtype == 1) {//oak
if (playerLevel[9] >= 20) {
	deleteItem(1521,getItemSlot(1521),1);//oak logs
	addItem(56, 1);
	addSkillXP((150*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 20 fletcing to make this.");
}
}
if(logtype == 2) {//willow
if (playerLevel[9] >= 30) {
	deleteItem(1519,getItemSlot(1519),1);//willow logs
	addItem(60, 1);
	addSkillXP((450*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 30 fletcing to make this.");
}
}
if(logtype == 3) {//Maple
if (playerLevel[9] >= 40) {
	deleteItem(1517,getItemSlot(1517),1);//Maple logs
	addItem(64, 1);
	addSkillXP((1350*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 40 fletcing to make this.");
}
}
if(logtype == 4) {//Yew
if (playerLevel[9] >= 55) {
	deleteItem(1515,getItemSlot(1515),1);//Maple logs
	addItem(70, 1);
	addSkillXP((4050*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 55 fletcing to make this.");
}
}
if(logtype == 5) {//Magic
if (playerLevel[9] >= 70) {
	deleteItem(1513,getItemSlot(1513),1);//Maple logs
	addItem(62, 1);
	addSkillXP((8100*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 70 fletcing to make this.");
}
}
}
if(type == 3) {//shortbows Finish
if(logtype == 0) {//Regular
if (playerLevel[9] >= 5) {
	deleteItem(50,getItemSlot(50),1);//regular logs
	deleteItem1777,getItemSlot(1777),1);//bowstring
	addItem(841, 1);
	addSkillXP((10*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 5 fletcing to make this.");
}
}
if(logtype == 1) {//oak
if (playerLevel[9] >= 15) {
	deleteItem(54,getItemSlot(54),1);//oak logs
	deleteItem1777,getItemSlot(1777),1);//bowstring
	addItem(843, 1);
	addSkillXP((20*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 15 fletcing to make this.");
}
}
if(logtype == 2) {//willow
if (playerLevel[9] >= 25) {
	deleteItem(58,getItemSlot(58),1);//willow logs
	deleteItem1777,getItemSlot(1777),1);//bowstring
	addItem(849, 1);
	addSkillXP((40*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 25 fletcing to make this.");
}
}
if(logtype == 3) {//Maple
if (playerLevel[9] >= 35) {
	deleteItem(64,getItemSlot(64),1);//Maple logs
	deleteItem1777,getItemSlot(1777),1);//bowstring
	addItem(853, 1);
	addSkillXP((80*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 35 fletcing to make this.");
}
}
if(logtype == 4) {//Yew
if (playerLevel[9] >= 45) {
	deleteItem(68,getItemSlot(68),1);//yew logs
	deleteItem1777,getItemSlot(1777),1);//bowstring
	addItem(857, 1);
	addSkillXP((160*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 45 fletcing to make this.");
}
}
if(logtype == 5) {//Magic
if (playerLevel[9] >= 65) {
	deleteItem(72,getItemSlot(72),1);//Magic logs
	deleteItem1777,getItemSlot(1777),1);//bowstring
	addItem(861, 1);
	addSkillXP((320*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 65 fletcing to make this.");
}
}
}
if(type == 4) {//Longbow Finish
if(logtype == 0) {//regular
if (playerLevel[9] >= 10) {
	deleteItem(48,getItemSlot(48),1);//regular logs
	deleteItem1777,getItemSlot(1777),1);//bowstring
	addItem(839, 1);
	addSkillXP((50*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 10 fletcing to make this.");
}
}
if(logtype == 1) {//oak
if (playerLevel[9] >= 20) {
	deleteItem(56,getItemSlot(56),1);//oak logs
	deleteItem1777,getItemSlot(1777),1);//bowstring
	addItem(845, 1);
	addSkillXP((150*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 20 fletcing to make this.");
}
}
if(logtype == 2) {//willow
if (playerLevel[9] >= 30) {
	deleteItem(60,getItemSlot(60),1);//willow logs
	deleteItem1777,getItemSlot(1777),1);//bowstring
	addItem(847, 1);
	addSkillXP((450*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 30 fletcing to make this.");
}
}
if(logtype == 3) {//Maple
if (playerLevel[9] >= 40) {
	deleteItem(64,getItemSlot(64),1);//Maple logs
	deleteItem1777,getItemSlot(1777),1);//bowstring
	addItem(851, 1);
	addSkillXP((1350*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 40 fletcing to make this.");
}
}
if(logtype == 4) {//Yew
if (playerLevel[9] >= 55) {
	deleteItem(66,getItemSlot(66),1);//yew logs
	deleteItem1777,getItemSlot(1777),1);//bowstring
	addItem(855, 1);
	addSkillXP((4050*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 55 fletcing to make this.");
}
}
if(logtype == 5) {//Magic
if (playerLevel[9] >= 70) {
	deleteItem(70,getItemSlot(70),1);//Magic logs
	deleteItem1777,getItemSlot(1777),1);//bowstring
	addItem(70, 1);
	addSkillXP((8100*playerLevel[9]), 9);
} else {
sendMessage("You need to be level 70 fletcing to make this.");
}
}
}
if(type == 5) {
if(logtype == 0) {//adding feathers
	deleteItem(52,getItemSlot(52),50);//shafts
	deleteItem(314,getItemSlot(314),50);//feathers
	addItem(53, 50);//shafts with feathers
	addSkillXP((10*playerLevel[9]), 9);
sendMessage("You added the feathers to the shafts.");
}
if(logtype == 1) {//bronze arrows
	deleteItem(53,getItemSlot(53),50);//shafts
	deleteItem(39,getItemSlot(39),50);//heads
	addItem(882, 50);//arrow
	addSkillXP((20*playerLevel[9]), 9);
sendMessage("You added the feathers to the shafts.");
}
if(logtype == 2) {//iron arrows
if (playerLevel[9] >= 15) {
	deleteItem(53,getItemSlot(53),50);//shafts
	deleteItem(40,getItemSlot(40),50);//heads
	addItem(884, 50);//arrows
	addSkillXP((50*playerLevel[9]), 9);
sendMessage("You added the feathers to the shafts.");
} else {
sendMessage("You need to be level 15 fletcing to make this.");
}
}
if(logtype == 3) {//steel arrows
if (playerLevel[9] >= 30) {
	deleteItem(53,getItemSlot(53),50);//shafts
	deleteItem(41,getItemSlot(40),50);//heads
	addItem(886, 50);//arrows
	addSkillXP((140*playerLevel[9]), 9);
sendMessage("You added the feathers to the shafts.");
} else {
sendMessage("You need to be level 30 fletcing to make this.");
}
}
if(logtype == 4) {//steel arrows
if (playerLevel[9] >= 45) {
	deleteItem(53,getItemSlot(53),50);//shafts
	deleteItem(41,getItemSlot(41),50);//heads
	addItem(888, 50);//arrows
	addSkillXP((480*playerLevel[9]), 9);
sendMessage("You added the feathers to the shafts.");
} else {
sendMessage("You need to be level 45 fletcing to make this.");
}
}
if(logtype == 5) {//mithril arrows
if (playerLevel[9] >= 60) {
	deleteItem(53,getItemSlot(53),50);//shafts
	deleteItem(42,getItemSlot(42),50);//heads
	addItem(890, 50);//arrows
	addSkillXP((1440*playerLevel[9]), 9);
sendMessage("You added the feathers to the shafts.");
} else {
sendMessage("You need to be level 60 fletcing to make this.");
}
}
if(logtype == 6) {//addy arrows
if (playerLevel[9] >= 75) {
	deleteItem(53,getItemSlot(53),50);//shafts
	deleteItem(43,getItemSlot(43),50);//heads
	addItem(892, 50);//arrows
	addSkillXP((4320*playerLevel[9]), 9);
sendMessage("You added the feathers to the shafts.");
} else {
sendMessage("You need to be level 75 fletcing to make this.");
}
}
if(logtype == 7) {//rune arrows
if (playerLevel[9] >= 90) {
	deleteItem(53,getItemSlot(53),50);//shafts
	deleteItem(44,getItemSlot(44),50);//heads
	addItem(894, 50);//arrows
	addSkillXP((12960*playerLevel[9]), 9);
sendMessage("You added the feathers to the shafts.");
} else {
sendMessage("You need to be level 90 fletcing to make this.");
}
}
}
if(type == 6) {//this is where darts will be when i finish
}
}

ok now that u hav this serch for
Code:
//clicking most buttons 2

and under it add
Code:
			case 9167://first choice of three
			if(FletchingOn == true) {
			Fletching(0, 0);
			FletchingType = 0;
			RemoveAllWindows();
			}
					break;

			case 9168://second choice of three
			if(FletchingOn == true) {
			Fletching(1, 0);
			FletchingType = 0;
			RemoveAllWindows(); 
			}
					break;
			case 9169://third choice of three
			if(FletchingOn == true) {
			Fletching(2, 0);
			FletchingType = 0;
			RemoveAllWindows(); 
			}
					break;

then search for

Code:
public void selectoption(String question, String s1, String s2, String s3)

it should look look this

Code:
public void selectoption(String question, String s1, String s2, String s3)
{
sendFrame171(1, 2465);
sendFrame171(0, 2468);
sendFrame126(question, 2460);
sendFrame126(s1, 2461);
sendFrame126(s2, 2462);
sendFrame126(s3, 2463);
}
}

replace it with

Code:
public void selectoption(String question, String s1, String s2, String s3)
{
sendFrame171(1, 2465);
sendFrame171(0, 2468);
sendFrame126(question, 2460);
if (s3 == "") {
sendFrame126(s1, 2461);
sendFrame126(s2, 2462);
sendFrame126(s3, 2463);
sendFrame164(2459);
} else {
sendFrame126(s1, 2471);
sendFrame126(s2, 2472);
sendFrame126(s3, 2473);
sendFrame164(2469);
}
}

now serch for

Code:
				//end herblore shit!

and replace
Code:
				else if(itemUsed == 1511 && useWith == 946)

to the end of your fletching stuff under Item on Item void with


with
Code:
				else if((itemUsed == 1511 && useWith == 946) || (itemUsed == 946 && useWith == 1511)) {
				FletchingType = 1;
				FletchingOn = true;
				selectoption("What wouldyou like to make?", "Arrowshafts", "Shortbow", "Longbow");
				}
				else if((itemUsed == 1521 && useWith == 946) || (itemUsed == 946 && useWith == 1521)) {
				FletchingType = 2;
				FletchingOn = true;
				selectoption("What would you like to make?", "Shortbow", "Longbow", "");
				}
				else if((itemUsed == 1519 && useWith == 946) || (itemUsed == 946 && useWith == 1519)) {
				FletchingType = 3;
				FletchingOn = true;
				selectoption("What would you like to make?", "Shortbow", "Longbow", "");
				}
				else if((itemUsed == 1517 && useWith == 946) || (itemUsed == 946 && useWith == 1517)) {
				FletchingType = 4;
				FletchingOn = true;
				selectoption("What would you like to make?", "Shortbow", "Longbow", "");
				}
				else if((itemUsed == 1515 && useWith == 946) || (itemUsed == 946 && useWith == 1515)) {
				FletchingType = 5;
				FletchingOn = true;
				selectoption("What would you like to make?", "Shortbow", "Longbow", "");
				}
				else if((itemUsed == 1513 && useWith == 946) || (itemUsed == 946 && useWith == 1513)) {
				FletchingType = 6;
				FletchingOn = true;
				selectoption("What would you like to make?", "Shortbow", "Longbow", "");
					}
				//------------------------end of cutting--------------------------------
				//start of finishing
				//shorts
				else if((itemUsed == 50 && useWith == 1777) || (itemUsed == 1777 && useWith == 50)) {
				Fletching(3, 0);
				}
				else if((itemUsed == 54 && useWith == 1777) || (itemUsed == 1777 && useWith == 54)){
				Fletching(3, 1);
				}
				else if((itemUsed == 60 && useWith == 1777) || (itemUsed == 1777 && useWith == 60)) {
				Fletching(3, 2);
				}
				else if((itemUsed == 64 && useWith == 1777) || (itemUsed == 1777 && useWith == 64)) {
				Fletching(3, 3);
				}
				else if((itemUsed == 68 && useWith == 1777) || (itemUsed == 1777 && useWith == 68)) {
				Fletching(3, 4);
				}
				else if((itemUsed == 72 && useWith == 1777) || (itemUsed == 1777 && useWith == 72)) {
				Fletching(3, 5);
					}
				//longs
				else if((itemUsed == 48 && useWith == 1777) || (itemUsed == 1777 && useWith == 48)) {
				Fletching(4, 0);
				}
				else if((itemUsed == 56 && useWith == 1777) || (itemUsed == 1777 && useWith == 56)){
				Fletching(4, 1);
				}
				else if((itemUsed == 58 && useWith == 1777) || (itemUsed == 1777 && useWith == 58)) {
				Fletching(4, 2);
				}
				else if((itemUsed == 62 && useWith == 1777) || (itemUsed == 1777 && useWith == 62)) {
				Fletching(4, 3);
				}
				else if((itemUsed == 66 && useWith == 1777) || (itemUsed == 1777 && useWith == 66)) {
				Fletching(4, 4);
				}
				else if((itemUsed == 70 && useWith == 1777) || (itemUsed == 1777 && useWith == 70)) {
				Fletching(4, 5);
					}
				// end of fletching--------------------------------------

[glow=blue,2,300]how this works:[/glow]

call with
Fletching(#, #)
the first number is the type
type 0=arrowshaft 1=shortbow(U) 2=longbow(U) 3=Bow 4=Longbow 5=arrow 6=dart(not done)

the second is logtype
logtype 0=regular 1=oak 2=willow 3=Maple 4=Yew 5=Magic

ex: Fletching(1, 2) makes a willow longbow(u)
Fletching(4, 5) makes a magic longbow

for arrows and darts, use this as logtype
logtype (arrow)0=Add feathers to shafts 1= bronze 2= Iton 3= Steel 4= Mithril 5= Addy 6= Rune
logtype (dart, adding faethers) 0= bronze 1= Iton 2= Steel 3= Mithril 4= Addy 5= Rune
 
Runescape Gamblingrunescape gambling
Back
Top