Thread: My Full Firemaking! Multi Fires etc... 100% Like Real RS!

Page 1 of 6 123 ... LastLast
Results 1 to 10 of 55
  1. #1 My Full Firemaking! Multi Fires etc... 100% Like Real RS! 
    Registered Member

    Join Date
    Sep 2006
    Age
    28
    Posts
    623
    Thanks given
    2
    Thanks received
    2
    Rep Power
    156
    Purpose: To add real firemaking to your server without all this multi fire crap

    Difficulty: 4

    Process:

    Step One:

    Add this into the boolean process
    Code:
    server.Firemaking.Processing(playerId);
    Add this into case 53:
    Code:
    				resetCustomSkills();
    				server.Firemaking.checkFiremakingUsage(itemUsed, useWith, playerId);
    Add this into cases 17, 21, 192, 155, 131, 122, 98:

    Code:
    resetCustomSkills();
    Declare these:

    Code:
    public void resetCustomSkills() {
    server.Mining.resetMining(playerId);
    server.Firemaking.resetFires(playerId);
    }
    	///Declare Firemaking Things
    	public int Log, XPtoAdd, fMaking, makingTimer = 0;
    	public boolean isFiremaking, gotTinder1, gotTinder2 = false;
    	
    public int junk = 0;
    	public void fire1(int x, int y, int typeID, int orientation, int tileObjectType){ //Credits -fedexer-
    		for (Player p : server.playerHandler.players){
    			if(p != null){
    				client person = (client)p;
    			if((person.playerName != null || person.playerName != "null")){
    				if(person.distanceToPoint(x, y) <= 60){
    					person.createNewTileObject(x, y, typeID, orientation, tileObjectType);
    				}
    			}
    		}
    	}
    	}
    Save & Close.

    Open server.java and declare this:

    Code:
    public static Firemaking Firemaking = null;
    Then under:

    Code:
    npcHandler = new NPCHandler();
    Add:
    Code:
    Firemaking = new Firemaking();
    Under:
    Code:
    npcHandler.process();
    Add:
    Code:
    					for (int i = 0; i < Firemaking.maxFires; i++) {
    			if (Firemaking.fires[i] != null) {
    			Firemaking.fires[i].Process();
    			}
    		}
    If you do not already have it add this into client.java:

    Code:
    			public void createNewTileObject(int x, int y, int typeID, int orientation, int tileObjectType)
    	{
    		outStream.createFrame(85);
                    outStream.writeByteC(y - (mapRegionY * 8)); 
                    outStream.writeByteC(x - (mapRegionX * 8)); 
    
    		outStream.createFrame(151);
    		//outStream.writeByteA(((x&7) << 4) + (y&7));
                    outStream.writeByteA(0);
    		outStream.writeWordBigEndian(typeID);
    		outStream.writeByteS((tileObjectType<<2) +(orientation&3));
    	}
    Add the attached 2 files to your server files and you are all done

    Rep++ Is appreciated but not required Please post This is 100% firemaking by the way The only thing it doesn't have is walking backwards once lit and turning into ashes But you can sort that
    I'm back
     

  2. #2  
    Dark Fox
    Guest
    U said download 2 attachments...thers only 1.
     

  3. #3  
    Samurai
    Guest
    Another wonderfull tut by you james Thanks + REP!
     

  4. #4  
    Bread Crumbs
    Guest
    Quote Originally Posted by James View Post
    Rep++ Is appreciated but not required Please post This is 100% firemaking by the way The only thing it doesn't have is walking backwards once lit and turning into ashes But you can sort that

    Basically it just spawns fire objects?
     

  5. #5  
    ~Legend Rene
    Guest
    If its global fires then its good , most fires can only be seen by you.
     

  6. #6  
    Fallen Azn SinZ
    Guest
    Nice work James. With the walking backwards after lighting the fire, the character always turns south, then walks one step south. So I guess the facing South bit is easy, but what about the walking south automatically. And I guess the ashes you just add a 'misc.random' timer. Well thats what I think.
     

  7. #7  
    guest
    Guest
    Quote Originally Posted by Dark Fox View Post
    U said download 2 attachments...thers only 1.
    Unzip the file..
     

  8. #8  
    ~Legend Rene
    Guest
    Make a walkto method and a getface method to get the face direction when lighting a fire.
     

  9. #9  
    Banned

    Join Date
    May 2007
    Posts
    2,690
    Thanks given
    115
    Thanks received
    45
    Rep Power
    0
    does the fire disapear after some time?
     

  10. #10  
    Registered Member
    Bring Me The Horizon's Avatar
    Join Date
    May 2007
    Age
    26
    Posts
    1,370
    Thanks given
    2
    Thanks received
    4
    Rep Power
    335
    Good job. Rep++.;>
     

Page 1 of 6 123 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •