Could you tell us a bit about what it is?
|
hey guys i see no 1 has released this tut about bonefire so here i go:
Client Sided
Open: objectDef.java
and search for
right Under that Add this:Code:objectDef.readValues(stream);
Code:if (i == 2732) { objectDef.actions = new String[5]; objectDef.actions[0] = null; objectDef.actions[1] = "Add-Logs"; objectDef.name = "Fire"; objectDef.description = "An Log on fire".getBytes(); }
then close and compile
then head to your source.
Server Sided
Open ActionHandler.java
and search for:
then under that add this code:Code:secondClickObject
well thats all enjoy and compileCode:case 2732: if (c.getItems().playerHasItem(1511,1)){ c.getItems().deleteItem(1511, 1); c.startAnimation(883); c.stopMovement(); c.sendMessage("You add a log to the fire."); } else if (c.getItems().playerHasItem(1521,1)){ c.getItems().deleteItem(1521, 1); c.startAnimation(883); c.stopMovement(); c.sendMessage("You add a log to the fire."); } else if (c.getItems().playerHasItem(1519,1)){ c.getItems().deleteItem(1519, 1); c.startAnimation(883); c.stopMovement(); c.sendMessage("You add a log to the fire."); } else if (c.getItems().playerHasItem(1517,1)){ c.getItems().deleteItem(1517, 1); c.startAnimation(883); c.stopMovement(); c.sendMessage("You add a log to the fire."); } else if (c.getItems().playerHasItem(1515,1)){ c.getItems().deleteItem(1515, 1); c.startAnimation(883); c.stopMovement(); c.sendMessage("You add a log to the fire."); } else if (c.getItems().playerHasItem(1513,1)){ c.getItems().deleteItem(1513, 1); c.startAnimation(883); c.stopMovement(); c.sendMessage("You add a log to the fire."); } break;
Credits:
Me Aka bilal96 - 100%
Could you tell us a bit about what it is?
^
Bonfire - The RuneScape Wiki
Pretty much its a extremely cheap way to get your firemaking up quicker and easier like it wasn't already easy enough.
And you're serversided part is shit code and it only supports normal logs.
okk sorry about that guys i just updated it so its much better so use it now.
yh i sorry but use this i just done it and it works perfectly here:
Code:case 2732: if (c.getItems().playerHasItem(1511,1)){ c.getItems().deleteItem(1511, 1); c.startAnimation(883); c.stopMovement(); c.sendMessage("You add a log to the fire."); } else if (c.getItems().playerHasItem(1521,1)){ c.getItems().deleteItem(1521, 1); c.startAnimation(883); c.stopMovement(); c.sendMessage("You add a log to the fire."); } else if (c.getItems().playerHasItem(1519,1)){ c.getItems().deleteItem(1519, 1); c.startAnimation(883); c.stopMovement(); c.sendMessage("You add a log to the fire."); } else if (c.getItems().playerHasItem(1517,1)){ c.getItems().deleteItem(1517, 1); c.startAnimation(883); c.stopMovement(); c.sendMessage("You add a log to the fire."); } else if (c.getItems().playerHasItem(1515,1)){ c.getItems().deleteItem(1515, 1); c.startAnimation(883); c.stopMovement(); c.sendMessage("You add a log to the fire."); } else if (c.getItems().playerHasItem(1513,1)){ c.getItems().deleteItem(1513, 1); c.startAnimation(883); c.stopMovement(); c.sendMessage("You add a log to the fire."); } break;
thats only going to work perfectly if you sit there and repeatedly click the fire >.< nobody wants to do that..+ you're missing adding EXP for the logs burned..
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |