zack_flowers
Posts : 9 Reputation : 0 Join date : 2010-07-09
| Subject: Firemaking by Zack_flowers (: Fri Jul 09, 2010 11:19 pm | |
| This is very basic firemaking but it still works (: make a folder in your skills folder and name it firemaking. and make a file named burnLog.java into that folder and add this into it. - Code:
-
package palidino76.rs2.player.skills.fireMaking;
import palidino76.rs2.player.Player; import palidino76.rs2.player.items.*;
public class burnLog { public static void burn(Player p, int iUsed, int uWith) { PlayerItems pi = new PlayerItems();
if(iUsed == 1511 && uWith == 590 || iUsed == 590 && uWith == 1511) { if(p.skillLvl[11] >= 1) { p.addSkillXP(800, 11); p.requestAnim(733, 2); pi.deleteItem(p, 1511, pi.getItemSlot(p, 1511), 1); p.frames.createGlobalObject(2732, p.heightLevel, p.absX, p.absY, 0, 10); p.objectX = p.absX; p.objectY = p.absY; p.objectHeight = p.heightLevel; p.frames.sendMessage(p, "The logs begin to burn."); p.firedelay = 20; } else { p.frames.sendMessage(p, "You need a firemaking level of at least 1 to burn this."); } } if(iUsed == 1513 && uWith == 590 || iUsed == 590 && uWith == 1513) { if(p.skillLvl[11] >= 75) { p.addSkillXP(8076, 11); p.requestAnim(733, 2); pi.deleteItem(p, 1513, pi.getItemSlot(p, 1513), 1); p.frames.createGlobalObject(2732, p.heightLevel, p.absX, p.absY, 0, 10); p.objectX = p.absX; p.objectY = p.absY; p.objectHeight = p.heightLevel; p.frames.sendMessage(p, "The logs begin to burn."); p.firedelay = 20; } else { p.frames.sendMessage(p, "You need a firemaking level of at least 75 to burn this."); } } if(iUsed == 1515 && uWith == 590 || iUsed == 590 && uWith == 1515) { if(p.skillLvl[11] >= 60) { p.addSkillXP(4050, 11); p.requestAnim(733, 2); pi.deleteItem(p, 1515, pi.getItemSlot(p, 1515), 1); p.frames.createGlobalObject(2732, p.heightLevel, p.absX, p.absY, 0, 10); p.objectX = p.absX; p.objectY = p.absY; p.objectHeight = p.heightLevel; p.frames.sendMessage(p, "The logs begin to burn."); p.firedelay = 20; } else { p.frames.sendMessage(p, "You need a firemaking level of at least 60 to burn this."); } } if(iUsed == 1517 && uWith == 590 || iUsed == 590 && uWith == 1517) { if(p.skillLvl[11] >= 45) { p.addSkillXP(2700, 11); p.requestAnim(733, 2); pi.deleteItem(p, 1517, pi.getItemSlot(p, 1517), 1); p.frames.createGlobalObject(2732, p.heightLevel, p.absX, p.absY, 0, 10); p.objectX = p.absX; p.objectY = p.absY; p.objectHeight = p.heightLevel; p.frames.sendMessage(p, "The logs begin to burn."); p.firedelay = 20; } else { p.frames.sendMessage(p, "You need a firemaking level of at least 45 to burn this."); } } if(iUsed == 1519 && uWith == 590 || iUsed == 590 && uWith == 1519) { if(p.skillLvl[11] >= 30) { p.addSkillXP(1800, 11); p.requestAnim(733, 2); pi.deleteItem(p, 1519, pi.getItemSlot(p, 1519), 1); p.frames.createGlobalObject(2732, p.heightLevel, p.absX, p.absY, 0, 10); p.objectX = p.absX; p.objectY = p.absY; p.objectHeight = p.heightLevel; p.frames.sendMessage(p, "The logs begin to burn."); p.firedelay = 20; } else { p.frames.sendMessage(p, "You need a firemaking level of at least 30 to burn this."); } } if(iUsed == 1521 && uWith == 590 || iUsed == 590 && uWith == 1521) { if(p.skillLvl[11] >= 15) { p.addSkillXP(1200, 11); p.requestAnim(733, 2); pi.deleteItem(p, 1521, pi.getItemSlot(p, 1521), 1); p.frames.createGlobalObject(2732, p.heightLevel, p.absX, p.absY, 0, 10); p.objectX = p.absX; p.objectY = p.absY; p.objectHeight = p.heightLevel; p.frames.sendMessage(p, "The logs begin to burn."); p.firedelay = 20; } else { p.frames.sendMessage(p, "You need a firemaking level of at least 15 to burn this."); } } } } Now open up player.java and add this under public class player { - Code:
-
public int fire = 0; public int firedelay = 0; Now open up itemonitem.java and add this import. - Code:
-
import palidino76.rs2.player.skills.fireMaking.*; Then under this.. - Code:
-
int itemUsed = player.stream.readSignedWordA(); add... - Code:
-
burnLog.burn(player, itemUsed, usedWith); If you need any help just ask me on server (: Hope you like it..eventhough it's very basic. | |
|
hydro IN-game Owner
Posts : 179 Reputation : 5 Join date : 2010-07-09 Age : 29 Location : Texas
| Subject: Re: Firemaking by Zack_flowers (: Sat Jul 10, 2010 12:29 am | |
| alright, I had to edit all the imports and stuff because mine goes net.com.hydroPK.model.skills.fireMaking
I did that, but when I get done editting all that stuff, and compile, I get like 44 errors about a missing variable or somethin?? | |
|
zack_flowers
Posts : 9 Reputation : 0 Join date : 2010-07-09
| Subject: Re: Firemaking by Zack_flowers (: Sat Jul 10, 2010 12:06 pm | |
| My server is probably set up differently than yours, if you have msn or anything I can help you add everything. | |
|
gwann
Posts : 67 Reputation : -4 Join date : 2010-07-20 Age : 28
| Subject: Re: Firemaking by Zack_flowers (: Sat Jul 24, 2010 2:45 am | |
| | |
|
world pker IN-game Admin
Posts : 89 Reputation : -2 Join date : 2010-07-09 Age : 29
| Subject: Re: Firemaking by Zack_flowers (: Sat Jul 24, 2010 9:06 am | |
| | |
|
Sponsored content
| Subject: Re: Firemaking by Zack_flowers (: | |
| |
|