Crafting skill ( Script ) Purpose: To Add Crafting to your server.
Difficulty: 2
Assumed Knowledge: Copy and pasting Adding Voids
Server Base: Testscape
Classes Modified: Client.java Shops.cfg
Procedure
Step 1: Under
Code:
public class client extends Player implements Runnable {
Add
Code:
//CRAFTING VOIDS BY PEN0r
public void craft17(){
if((playerLevel<12>) < 78)
{
sendMessage("You need to be level 78 To Craft Saradomin Platebody (blessed).");
}
else if((playerLevel<12>) >= 78)
{
sendMessage("You craft Saradomin Platebody (blessed).");
deleteItem(1833, getItemSlot(1833), 1);
addItem(2661,1);
addSkillXP(680, 12);
}
}
public void craft18(){
if((playerLevel<12>) < 80)
{
sendMessage("You need to be level 80 To Craft Zamorak Platebody (blessed).");
}
else if((playerLevel<12>) >= 80)
{
sendMessage("You craft Zamorak Platebody (blessed).");
deleteItem(1035, getItemSlot(1035), 1);
addItem(2653,1);
addSkillXP(700, 12);
}
}
public void craft19(){
if((playerLevel<12>) < 82)
{
sendMessage("You need to be level 82 To Craft A Obsidian Cape.");
}
else if((playerLevel<12>) >= 82)
{
sendMessage("You craft An Obsidian Cape.");
PostFuckingFeedbackleacher();
deleteItem(1743, getItemSlot(1743), 1);
addItem(6568,1);
addSkillXP(800, 12);
}
}
public void craft20(){
if((playerLevel<12>) <= 85)
{
sendMessage("You need to be level 85 To Craft A Fire Cape!");
}
else if((playerLevel<12>) >= 85)
{
sendMessage("You craft A Fire cape!!!");
deleteItem(6568, getItemSlot(6568), 1);
addItem(6570, 1);
addSkillXP(1000, 12);
}
}
public void craft13(){
if((playerLevel<12>) < 71)
{
sendMessage("You need to be level 71 To Craft Guthix Platelegs (blessed)");
}
else if((playerLevel<12>) >= 71)
{
sendMessage("You craft Guthix Platelegs (blessed).");
deleteItem(538, getItemSlot(538), 1);
addItem(2671,1);
addSkillXP(610, 12);
}
}
public void craft14(){
if((playerLevel<12>) < 73)
{
sendMessage("You need to be level 73 To Craft Saradomin Platelegs (blessed).")
}
else if((playerLevel<12>) >= 73)
{
sendMessage("You craft Saradomin Platelegs (blessed).");
deleteItem(1835, getItemSlot(1835), 1);
addItem(2663,1);
addSkillXP(630, 12);
}
}
public void craft15(){
if((playerLevel<12>) < 75)
{
sendMessage("You need to be level 75 To Craft Zamorak Platelegs (blessed).");
}
else if((playerLevel<12>) >= 75)
{
sendMessage("You craft Zamorak Platelegs (blessed).");
deleteItem(1033, getItemSlot(1033), 1);
addItem(2655,1);
addSkillXP(650, 12);
}
}
public void craft16(){
if((playerLevel<12>) <= 76)
{
sendMessage("You need to be level 76 To Craft Guthix Platebody (blessed).");
}
else if((playerLevel<12>) >= 76)
{
sendMessage("You craft A Guthix Platebody (blessed).");
deleteItem(540, getItemSlot(540), 1);
addItem(2669, 1);
addSkillXP(660, 12);
}
}
public void craft9(){
if((playerLevel<12>) < 60)
{
sendMessage("You need to be level 60 To Craft A Black Dhide Body!");
}
else if((playerLevel<12>) >= 60)
{
sendMessage("You craft a Black Dhide Body!");
deleteItem(1747, getItemSlot(1747), 1);
addItem(2503,1);
addSkillXP(500, 12);
}
}
public void craft10(){
if((playerLevel<12>) < 65)
{
sendMessage("You need to be level 65 To Craft Guthix Helm (blessed).");
}
else if((playerLevel<12>) >= 65)
{
sendMessage("You craft a Guthix helm (blessed).");
deleteItem(4302, getItemSlot(4302), 1);
addItem(2673,1);
addSkillXP(550, 12);
}
}
public void craft11(){
if((playerLevel<12>) < 67)
{
sendMessage("You need to be level 67 To Craft A Saradomin Helm (blessed).");
}
else if((playerLevel<12>) >= 67)
{
sendMessage("You craft A Saradomin Helm (blessed).");
deleteItem(4513, getItemSlot(4513), 1);
addItem(2665,1);
addSkillXP(570, 12);
}
}
public void craft12(){
if((playerLevel<12>) <= 70)
{
sendMessage("You need to be level 70 To Craft Zamorak Helm (blessed).");
}
else if((playerLevel<12>) >= 70)
{
sendMessage("You craft A Zamorak Helm (blessed).");
deleteItem(4515, getItemSlot(4515), 1);
addItem(2657, 1);
addSkillXP(600, 12);
}
}
public void craft5(){
if((playerLevel<12>) < 20)
{
sendMessage("You need to be level 20 To Craft A Gold Robe Bottom!");
}
else if((playerLevel<12>) >= 20)
{
sendMessage("You craft a Gold Robe Bottom!");
deleteItem(3694, getItemSlot(3694), 1);
addItem(2918,1);
addSkillXP(150, 12);
}
}
public void craft6(){
if((playerLevel<12>) < 30)
{
sendMessage("You need to be level 30 To Craft Green Dhide Bodys.");
}
else if((playerLevel<12>) >= 30)
{
sendMessage("You craft a Green Dhide Body!");
deleteItem(1753, getItemSlot(1753), 1);
addItem(1135,1);
addSkillXP(250, 12);
}
}
public void craft7(){
if((playerLevel<12>) < 45)
{
sendMessage("You need to be level 45 To Craft A Blue Dhide Body!");
}
else if((playerLevel<12>) >= 45)
{
sendMessage("You craft A Blue Dhide Body!");
deleteItem(1751, getItemSlot(1751), 1);
addItem(2499,1);
addSkillXP(300, 12);
}
}
public void craft8(){
if((playerLevel<12>) <= 53)
{
sendMessage("You need to be level 53 To Craft Red Dhide Body!");
}
else if((playerLevel<12>) >= 53)
{
sendMessage("You craft A Red Dhide Body!");
deleteItem(1749, getItemSlot(1749), 1);
addItem(2501, 1);
addSkillXP(370, 12);
}
}
public void craft1(){
if((playerLevel<12>) < 1)
{
sendMessage("You need to be level 1 To Craft A Leather Body lol!");
}
else if((playerLevel<12>) >= 1)
{
sendMessage("You craft a Leather body!");
deleteItem(1741, getItemSlot(1741), 1);
addItem(1129,1)
addSkillXP(60, 12);
}
}
public void craft2(){
if((playerLevel<12>) < 7)
{
sendMessage("You need to be level 7 To Craft Hardleather Bodys.");
}
else if((playerLevel<12>) >= 7)
{
sendMessage("You craft a Hard Leather body!!");
deleteItem(1741, getItemSlot(1741), 1);
addItem(1131,1);
addSkillXP(90, 12);
}
}
public void craft3(){
if((playerLevel<12>) < 15)
{
sendMessage("You need to be level 5 To Craft A Golden robe!");
}
else if((playerLevel<12>) >= 15)
{
sendMessage("You craft A Golden Robe!");
deleteItem(3694, getItemSlot(3694), 1);
addItem(2916,1);
addSkillXP(115, 12);
}
}
public void craft4(){
if((playerLevel<12>) <= 90)
{
sendMessage("You need to be level 90 To Craft The Mighty Gilded Armors.")
}
else if((playerLevel<12>) >= 90)
{
sendMessage("You craft The Mighty Gilded Armors!");
deleteItem(4674, getItemSlot(4674), 1);
addItem(3481, 1);
addItem(3483, 1);
addItem(3486, 1);
addItem(3488, 1);
addSkillXP(8000, 12);
}
}
//END OF VOIDS pen0r
Step 2: Now In Case 53: Find something like
Code:
if(itemUsed == 233 && useWith == 237) {
deleteItem(237, getItemSlot(237), 1);
addItem(235, 1);
}
else if(itemUsed == 237 && useWith == 233) {
deleteItem(237, getItemSlot(237), 1);
addItem(235, 1);
}The item ids CAN NOT MATCH. Under The } Add
Code:
//START OF CRAFTING SHIT Pen0r
//GOD CRAFTING
else if(itemUsed == 2951 && useWith == 1033) {
craft15();
}
else if(itemUsed == 2951 && useWith == 4515) {
craft12();
}
else if(itemUsed == 2951 && useWith == 1833) {
craft17();
}
else if(itemUsed == 2951 && useWith == 1835) {
craft14();
}
else if(itemUsed == 2951 && useWith == 4513) {
craft11();
}
else if(itemUsed == 2951 && useWith == 540) {
craft16();
}
else if(itemUsed == 2951 && useWith == 538) {
craft13();
}
else if(itemUsed == 2951 && useWith == 4302) {
craft10();
}
else if(itemUsed == 1733 && useWith == 1741) {
craft1();
}
else if(itemUsed == 1733 && useWith == 1741) {
craft2();
}
else if(itemUsed == 1733 && useWith == 3694) {
craft3();
}
else if(itemUsed == 1733 && useWith == 3694) {
craft5();
}
//END OF GOD CRAFTING
//Start of 85 + CRAFTING WOOT
else if(itemUsed == 440 && useWith == 1743) {
craft19();
}
else if(itemUsed == 2946 && useWith == 6568) {
craft20();
}
//START OF GILD CRAFT
else if(itemUsed == 1804 && useWith == 4674) {
craft4();
}
else if(itemUsed == 1733 && useWith == 1747) {
craft9();
}
else if(itemUsed == 1733 && useWith == 1749) {
craft8();
}
else if(itemUsed == 1733 && useWith == 1751) {
craft7();
}
else if(itemUsed == 1733 && useWith == 1753) {
craft6();
}
//END OF GILD CRAFT
//CRAFTING BY PEN0R
Step 3: Ok, Now if you want a shop selling the items Add this in your Shops.cfg
Code:
shop = 47 @whi@Crafting 2 2 1733 100 1741 1000 1743 1000 1753 500 1751 250 1749 100 1747 50 440 100 538 100 540 100 4302 100 1033 100 1035 100 4515 100 1835 100 1833 100 4513 100 1804 1000 2951 100 3694 1000
Step 4: Then In Client.java find something like this
Code:
} else if (NPCID == 553) { //Aubury rune shop
add below the wanneshop = # (# any number)
Code:
} else if (NPCID == 551) { //Shop Keeper
PutNPCCoords = true;
WanneShop = 1; //General Pk Store
Step 5: Open Autospawn.cfg and add this
Code:
spawn = 1301 3257 3435 0 3257 3435 3257 3435 2 Craftshop
Note: Im Searching for my Stat Click Help.. Ill find it soon..
Btw
Explaination
This is the things u can craft. you will see in shop use needle with zammy robe for zammy armors for druid Guthix. Desert = Sara. The Gold wool Would be Gold robes. And a guilded Cross *item id 4674* crafts Gilded full. *i did not include in shop cause i made another way to obtain it.* *for fire and obby cape ; obby cape = use *silver or golden or normal needle* on iron ore. Fire: Golden tinderbox on obby cape . Gl..
Leatherbody
Hardleatherbody
gold robe top
gold robe bottom
GOD ARMORS (much of em)
Oby cape
Fire cape
Gilded Full Armor
More...
If you get 4 errors its normal That is the ANTILEACH Im Not helping with those errors. With other errors ill help
Yangsta- 03-29-2007
Halson, can you stop posting scripts everywhere. Not saying that you shouldnt, but cant you post them in one topic? The who fourms filled with scripts that you have posted. PM me when uve made a new one so i can delete some old ones.
halson- 03-29-2007
Halson, can you stop posting scripts everywhere. Not saying that you shouldnt, but cant you post them in one topic? The who fourms filled with scripts that you have posted. PM me when uve made a new one so i can delete some old ones.
that is a no can do.
got special permission from blobboy and bridget.
ill stop if blobboy and bridget tell me to stop sending scripts.
and beside im just trying to make a difference in the server.
Yangsta- 03-29-2007
Im not saying its bad that you are contrubuting to the server, but I was thinking that making it neater might help. Cos then you dont have to go through every topic.
Bridget- 03-29-2007
lol yes make all your posts in one topic i give you permission to double, triple, ect. post in it ok? title it scripts from halson
halson- 03-29-2007
lol yes make all your posts in one topic i give you permission to double, triple, ect. post in it ok? title it scripts from halson
kk i will from now on
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.