HydroPK
Welcome To HydroPK's Forum!
Thank you for visiting the site, and We hope you enjoy your stay!
please, go to http://www.vhpk.tk/ and Vote for us! Smile
HydroPK
Would you like to react to this message? Create an account in a few clicks or log in to continue.


one of the top RSPS around!
 
HomeHome  PortalPortal  Chat Box  Latest imagesLatest images  RegisterRegister  Log in  

 

 Firemaking by Zack_flowers (:

Go down 
4 posters
AuthorMessage
zack_flowers




Posts : 9
Reputation : 0
Join date : 2010-07-09

Firemaking by Zack_flowers (: Empty
PostSubject: Firemaking by Zack_flowers (:   Firemaking by Zack_flowers (: EmptyFri 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.
Back to top Go down
hydro
IN-game Owner
hydro


Posts : 179
Reputation : 5
Join date : 2010-07-09
Age : 29
Location : Texas

Firemaking by Zack_flowers (: Empty
PostSubject: Re: Firemaking by Zack_flowers (:   Firemaking by Zack_flowers (: EmptySat 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??
Back to top Go down
http://gaminginfinity.forumotion.com/forum.htm
zack_flowers




Posts : 9
Reputation : 0
Join date : 2010-07-09

Firemaking by Zack_flowers (: Empty
PostSubject: Re: Firemaking by Zack_flowers (:   Firemaking by Zack_flowers (: EmptySat 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.
Back to top Go down
gwann




Posts : 67
Reputation : -4
Join date : 2010-07-20
Age : 28

Firemaking by Zack_flowers (: Empty
PostSubject: Re: Firemaking by Zack_flowers (:   Firemaking by Zack_flowers (: EmptySat Jul 24, 2010 2:45 am

good=]
Back to top Go down
world pker
IN-game Admin



Posts : 89
Reputation : -2
Join date : 2010-07-09
Age : 29

Firemaking by Zack_flowers (: Empty
PostSubject: Re: Firemaking by Zack_flowers (:   Firemaking by Zack_flowers (: EmptySat Jul 24, 2010 9:06 am

nice job on the snipits
Back to top Go down
Sponsored content





Firemaking by Zack_flowers (: Empty
PostSubject: Re: Firemaking by Zack_flowers (:   Firemaking by Zack_flowers (: Empty

Back to top Go down
 
Firemaking by Zack_flowers (:
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
HydroPK :: HydroPK Server :: Tutorials/Guides-
Jump to: