this is 100% firemaking just like real rs as i only try to make things exactly like real rs
this includes
-dropping the wood
-removing the wood once its on fire
-if you walk away while trying to light the wood it just leaves the log on the ground
-doing the animation
-moves once its on fire
ok start by removing all your firemaking codes from case 53: and add this in case 53:
Code:
if ((itemUsed == 590 && useWith == 1511) || (itemUsed == 1511 && useWith == 590)) {
firemakingMain(1, 1511, 38);
woodIDs = 1511;
}
if ((itemUsed == 590 && useWith == 1521) || (itemUsed == 1521 && useWith == 590)) {
firemakingMain(15, 1521, 50);
woodIDs = 1521;
}
if ((itemUsed == 590 && useWith == 1519) || (itemUsed == 1519 && useWith == 590)) {
firemakingMain(30, 1519, 70);
woodIDs = 1519;
}
if ((itemUsed == 590 && useWith == 1517) || (itemUsed == 1517 && useWith == 590)) {
firemakingMain(45, 1517, 100);
woodIDs = 1517;
}
if ((itemUsed == 590 && useWith == 1515) || (itemUsed == 1515 && useWith == 590)) {
firemakingMain(60, 1515, 145);
woodIDs = 1515;
}
if ((itemUsed == 590 && useWith == 1513) || (itemUsed == 1513 && useWith == 590)) {
firemakingMain(75, 1513, 200);
woodIDs = 1513;
}
now add this with your other voids
Code:
public boolean Tinderbox = false;
public int woodTimer = 0;
public int woodIDs = 0;
public void firemakingMain(int level, int woodID, int experience) {
if (woodTimer <= 0) {
if (playerLevel[11] < level) {
sendMessage("You need an Firemaking level of "+level+" to make this burn");
} else {
dropItem(woodID, getItemSlot(woodID));
startAnimation(733);
sendMessage("You attempt to light the logs");
Tinderbox = true;
woodTimer = 10 + misc.random(10);
addSkillXP(experience, 11);
}
} else {
sendMessage("Please wait till the log has been lit");
}
}
and then add this to your process
Code:
woodTimer -= 1;
if ((woodTimer == 0) && (Tinderbox == true)) {
Tinderbox = false;
WalkTo(-1,0);
removeGroundItem(absX, absY, woodIDs);
sendMessage("The log manages to catch on fire!");
ReplaceServerObject(absX, absY, 2732, -1, 10);
}
there and thats it 100% firemaking =)
credits me