Thread: 100% firemaking

Results 1 to 10 of 10
  1. #1 100% firemaking 
    Registered Member
    killamess's Avatar
    Join Date
    Dec 2007
    Age
    30
    Posts
    1,508
    Thanks given
    51
    Thanks received
    284
    Rep Power
    1956
    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

    [Only registered and activated users can see links. ]
     

  2. #2  
    `Mahfuz
    Guest
    NO NO NO!!!

    You dont put that thing is process()!

    It creates lagg!
    And it's not even needed
    Every 50MS it will delete a fire!!

    SO NO ADDING IN PROCESS!
    Other than that.
    Nice tutorial.
     

  3. #3  
    Registered Member
    killamess's Avatar
    Join Date
    Dec 2007
    Age
    30
    Posts
    1,508
    Thanks given
    51
    Thanks received
    284
    Rep Power
    1956
    the process isnt used for deleting the fire its for deleting the logs and so it has a delay before the logs are on fire....

    [Only registered and activated users can see links. ]
     

  4. #4  
    Donator


    Join Date
    Mar 2008
    Posts
    1,945
    Thanks given
    118
    Thanks received
    201
    Rep Power
    2104
    ummmm this isnt a 100% still can no clip

    but other than that i would have recommended the use of event manager and in your source i would recommend not the use of 100k buffer

    thats a good crasher btw
     

  5. #5  
    Registered Member
    killamess's Avatar
    Join Date
    Dec 2007
    Age
    30
    Posts
    1,508
    Thanks given
    51
    Thanks received
    284
    Rep Power
    1956
    Quote Originally Posted by lmctruck30 View Post
    ummmm this isnt a 100% still can no clip

    but other than that i would have recommended the use of event manager and in your source i would recommend not the use of 100k buffer

    thats a good crasher btw
    whats a good crasher...

    [Only registered and activated users can see links. ]
     

  6. #6  
    Registered Member
    Join Date
    Jun 2007
    Posts
    72
    Thanks given
    0
    Thanks received
    0
    Rep Power
    9
    thanks for , I'm using it on Devo 7.8 and it works fine other than WalkTo doesn't work, and the fires don't burn out
     

  7. #7  
    Registered Member

    Join Date
    Jan 2008
    Posts
    1,338
    Thanks given
    243
    Thanks received
    85
    Rep Power
    250
    it walk backward? ._.
    [Only registered and activated users can see links. ]
     

  8. #8  
    Well, aren't you clever!

    Concious's Avatar
    Join Date
    Feb 2008
    Posts
    1,697
    Thanks given
    27
    Thanks received
    60
    Rep Power
    195
    Yeah, good overall but you need to supply the removeGroundItem, and ReplaceServerObject methods or you will get errors..
     

  9. #9  
    Registered Member

    Join Date
    Jun 2008
    Posts
    734
    Thanks given
    8
    Thanks received
    14
    Rep Power
    148
    A small suggestion for you(only little bit smaller codes):
    Code:
    == true
    Isnt needed

    So instead of:
    Code:
    (Tinderbox == true))
    You can do:
    Code:
    (Tinderbox))
    S Quare Quxx: Raul > paladin end of the story
     

  10. #10  
    Registered Member
    Harvey's Avatar
    Join Date
    Mar 2007
    Posts
    965
    Thanks given
    0
    Thanks received
    55
    Rep Power
    296
    1. Invalid title (this is not 100%)
    2. No explanations
    3. Incorrect format.

    They are not voids, they are methods.

    CLOSED!
    Thanks,

    Harvey
     


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
  •