Thread: [PI]BoneFire Tut[PI]

Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1 [PI]BoneFire Tut[PI] 
    Registered Member Alien Creep's Avatar
    Join Date
    Nov 2011
    Posts
    128
    Thanks given
    3
    Thanks received
    18
    Rep Power
    13
    hey guys i see no 1 has released this tut about bonefire so here i go:


    Client Sided

    Open: objectDef.java
    and search for

    Code:
    objectDef.readValues(stream);
    right Under that Add this:

    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:

    Code:
    secondClickObject
    then under that add this code:

    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;
    well thats all enjoy and compile

    Credits:
    Me Aka bilal96 - 100%
    Reply With Quote  
     

  2. #2  
    Ligma male grindset


    Join Date
    Nov 2011
    Age
    27
    Posts
    4,331
    Thanks given
    1,032
    Thanks received
    1,941
    Rep Power
    5000
    Could you tell us a bit about what it is?

    Spoiler for Signature:
    Attached image
    Attached image

    Attached image

    Attached image

    Reply With Quote  
     

  3. #3  
    Shake n Bake

    Organic's Avatar
    Join Date
    Apr 2010
    Posts
    2,499
    Thanks given
    204
    Thanks received
    324
    Rep Power
    588
    ^
    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.

    Just live life at its fullest.

    LOL
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member Alien Creep's Avatar
    Join Date
    Nov 2011
    Posts
    128
    Thanks given
    3
    Thanks received
    18
    Rep Power
    13
    Quote Originally Posted by Organic View Post
    ^
    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.
    yh soz i forgot ill add it now 2 mins
    Reply With Quote  
     

  6. #5  
    « Pokémon Master »
    Ash Ketchum's Avatar
    Join Date
    Jun 2011
    Age
    29
    Posts
    1,423
    Thanks given
    275
    Thanks received
    153
    Rep Power
    39
    Quote Originally Posted by bilal96 View Post
    hey guys i see no 1 has released this tut about bonefire so here i go:


    Client Sided

    Open: objectDef.java
    and search for

    Code:
    objectDef.readValues(stream);
    right Under that Add this:

    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:

    Code:
    secondClickObject
    then under that add this code:

    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(1511,0)) {
    				c.sendMessage("@red@You need more Logs to add to the fire.");
    				}
    				break;
    well thats all enjoy and compile

    Credits:
    Me Aka bilal96 - 100%
    l...was literally just looking for this. not too bad but needs to be done alot better.
    Attached image
    Spoiler for Galkon:

    Spoiler for Great Quotes:
    Quote Originally Posted by i am prod View Post
    **** YOU this just erased everyones passwords and no one can log in!!!
    Quote Originally Posted by blade2 View Post
    did i ****ing say it was a ****ing virus u dip shit i said virus scan dont scan java files i didn't say its a virus... l2****ingreadkid
    Spoiler for (╯°□°)╯︵┻━┻:
    Reply With Quote  
     

  7. #6  
    Registered Member
    Wale's Avatar
    Join Date
    Jul 2011
    Posts
    917
    Thanks given
    279
    Thanks received
    150
    Rep Power
    238
    nice work
    [CENTER]Attached image
    Reply With Quote  
     

  8. #7  
    Registered Member Alien Creep's Avatar
    Join Date
    Nov 2011
    Posts
    128
    Thanks given
    3
    Thanks received
    18
    Rep Power
    13
    okk sorry about that guys i just updated it so its much better so use it now.
    Reply With Quote  
     

  9. #8  
    « Pokémon Master »
    Ash Ketchum's Avatar
    Join Date
    Jun 2011
    Age
    29
    Posts
    1,423
    Thanks given
    275
    Thanks received
    153
    Rep Power
    39
    Quote Originally Posted by bilal96 View Post
    okk sorry about that guys i just updated it so its much better so use it now.
    thats not any better...lol use arrays and make it into a void..then you can just put it with the rest of your firemaking..also make it use events so it continues all the way down until you have no logs left. that would be better.
    Attached image
    Spoiler for Galkon:

    Spoiler for Great Quotes:
    Quote Originally Posted by i am prod View Post
    **** YOU this just erased everyones passwords and no one can log in!!!
    Quote Originally Posted by blade2 View Post
    did i ****ing say it was a ****ing virus u dip shit i said virus scan dont scan java files i didn't say its a virus... l2****ingreadkid
    Spoiler for (╯°□°)╯︵┻━┻:
    Reply With Quote  
     

  10. #9  
    Registered Member Alien Creep's Avatar
    Join Date
    Nov 2011
    Posts
    128
    Thanks given
    3
    Thanks received
    18
    Rep Power
    13
    Quote Originally Posted by l0lc0pt3r View Post
    thats not any better...lol use arrays and make it into a void..then you can just put it with the rest of your firemaking..also make it use events so it continues all the way down until you have no logs left. that would be better.
    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;
    Reply With Quote  
     

  11. #10  
    « Pokémon Master »
    Ash Ketchum's Avatar
    Join Date
    Jun 2011
    Age
    29
    Posts
    1,423
    Thanks given
    275
    Thanks received
    153
    Rep Power
    39
    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..
    Attached image
    Spoiler for Galkon:

    Spoiler for Great Quotes:
    Quote Originally Posted by i am prod View Post
    **** YOU this just erased everyones passwords and no one can log in!!!
    Quote Originally Posted by blade2 View Post
    did i ****ing say it was a ****ing virus u dip shit i said virus scan dont scan java files i didn't say its a virus... l2****ingreadkid
    Spoiler for (╯°□°)╯︵┻━┻:
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 2
    Last Post: 08-10-2008, 05:59 PM
  2. Replies: 7
    Last Post: 06-26-2008, 09:41 AM
  3. [tut]how to add a safe pk spot[tut]1st tut
    By jad_scape in forum Tutorials
    Replies: 35
    Last Post: 06-20-2008, 04:03 AM
  4. Replies: 3
    Last Post: 03-19-2008, 06:34 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •