Thread: [delta]firemaking

Results 1 to 9 of 9
  1. #1 [delta]firemaking 
    Registered Member Andrew's Avatar
    Join Date
    Nov 2008
    Posts
    2,890
    Thanks given
    612
    Thanks received
    207
    Rep Power
    551
    Well wheni use my logg on tinderbox here is the error in the cmd

    Code:
    Exception encountered while parsing incoming packets from Andrew.
    java.lang.NullPointerException
    at FireMaking.startFire(FireMaking.java:28)
    at Client.parseIncomingPackets(Client.java:8411)
    at Client.packetProcess(Client.java:7436)
    at PlayerHandler.process(PlayerHandler.java:180)
    at Process.run(Process.java:14)
    at java.lang.Thread.run(Thread.java:619)
    code in the case 53

    Code:
    if (itemUsed == 590 && useWith == 1511 || itemUsed == 1511
    && useWith == 590) {
    Server.FireMaking.startFire(fireX, fireY, ItemID, playerID, 1);
    }
    Reply With Quote  
     

  2. #2  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    java.lang.NullPointerException
    at FireMaking.startFire(FireMaking.java:28)

    Post 28....
    Reply With Quote  
     

  3. #3  
    Registered Member Andrew's Avatar
    Join Date
    Nov 2008
    Posts
    2,890
    Thanks given
    612
    Thanks received
    207
    Rep Power
    551
    sorry ill just post the whole class

    Code:
    public class FireMaking {
    		
    		public int logXP(){
    			switch(fireID){
    				case 1511:
    					return 100;
    			}
    				return 100;
    		}
    		
    		public int fireLength(){
    			switch(fireID){
    				case 1511:
    					return 100;
    			}
    				return 20;
    		}
    		public int requiredLevel(){
    			switch(fireID){
    				case 1511:
    					return 1;
    			}
    				return 1;
    		}		
    				
    		public void startFire(int fireX, int fireY, int ItemID, int a, int req){
    			Client c = (Client) PlayerHandler.players[a];
    			if(c.playerLevel[11] < requiredLevel()){
    				c.sM("You need a FireMaking level of at least "+req);
    				c.sM("To light these logs");
    			} else {
    				if(c.powerTimer > 0){
    					fireID = ItemID;
    					c.fireTimer();
    					c.fireTimer = 2;
    					fireXX = fireX;
    					fireYY = fireY;
    				} else {
    					if(c.fireTimer == 0){
    						c.setAnimation(733);
    						fireID = ItemID;
    						c.fireTimer();
    						c.fireTimer = 5;
    						fireXX = fireX;
    						fireYY = fireY;
    					}
    				}
    			}
    		}	
    		public void stageTwo(int a){
    			Client c = (Client) PlayerHandler.players[a];
    			c.walkTo(-1,0);
    			c.addSkillXP(logXP(), 11);
    			fireX[ourFire] = fireXX;
    			fireY[ourFire] = fireYY;
    			fireTime[ourFire] = fireLength();
    			c.makeGlobalObject(fireXX, fireYY, 2732, 0, 10);
    			ourFire++;
    			c.deleteItem(fireID, 1);
    			c.powerTimer = 5;
    			c.powerFire();
    			c.faceNPC(32768);
    			if(ourFire >=  28)
    				ourFire = 0;
    		}
    		
    		public int fireXX, fireYY, fireID;
    		public int[] fireX = new int[29];
    		public int[] fireY = new int[29];
    		public int[] fireTime = new int[29];
    		public int ourFire = 0;
    	}
    the code in the red is line 28
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jan 2010
    Posts
    3,664
    Thanks given
    533
    Thanks received
    918
    Rep Power
    0
    This code is disgusting. You're also wrong, those people you "personally hate" though personally never met, resigned and were not demoted numb skull.

    This firemaking is a gateway to hell, go set a fire near an object and keep going you'll be able to move right through them, deleting the object while you're at it.

    Firemaking requires clipping to be done properly and safely.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    c.playerLevel[11]

    c is null.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    Austin's still a mod. lol.
    Reply With Quote  
     

  7. #7  
    Registered Member Andrew's Avatar
    Join Date
    Nov 2008
    Posts
    2,890
    Thanks given
    612
    Thanks received
    207
    Rep Power
    551
    first cata its a base and that was from when they resigned and they had to get their rank removed so their for they were demoted yes austin is mod but im to lazy to remove my sig lol

    and maggot how would i fix that then?
    Reply With Quote  
     

  8. #8  
    Registered Member Andrew's Avatar
    Join Date
    Nov 2008
    Posts
    2,890
    Thanks given
    612
    Thanks received
    207
    Rep Power
    551
    Bump
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Oct 2010
    Posts
    248
    Thanks given
    2
    Thanks received
    1
    Rep Power
    0
    This is my firmaking in client.java
    Code:
    			if ((itemUsed == 233) && (useWith == 237)) {
    				deleteItem(237, getItemSlot(237), 1);
    				addItem(235, 1);
    			} else if ((itemUsed == 590) && (useWith == 1511)) {
    				if (playerLevel[11] >= 0) {
    					deleteItem(1511, getItemSlot(1511), 1);
    					 makeGlobalObject(absX,absY, 2732, 0, 10);
    					addSkillXP(180, 11);
    sM("You attempt to light the logs.");
    sM("The fire catches and the logs begin to burn.");
    resetWC();
    				} else {
    					sM("You need a firemaking of 0 to burn normal logs.");
    				}
    			} else if ((itemUsed == 590) && (useWith == 1521)) {
    				if (playerLevel[11] >= 15) {
    					deleteItem(1521, getItemSlot(1521), 1);
    makeGlobalObject(absX,absY, 2732, 0, 10);
    					addSkillXP(250, 11);
    sM("You attempt to light the logs.");
    sM("The fire catches and the logs begin to burn.");
    resetWC();
    				} else {
    					sM("You need a firemaking level of 15 to burn oak logs.");
    				}
    			}
    
    			else if ((itemUsed == 590) && (useWith == 1519)) {
    				if (playerLevel[11] >= 30) {
    					deleteItem(1519, getItemSlot(1519), 1);
    					makeGlobalObject(absX,absY, 2732, 0, 10);
    					addSkillXP(340, 11);
    sM("You attempt to light the logs.");
    sM("The fire catches and the logs begin to burn.");
    resetWC();
    				} else {
    					sM("You need a firemaking of 30 to burn willow logs.");
    				}
    			} else if ((itemUsed == 590) && (useWith == 1517)) {
    				if (playerLevel[11] >= 45) {
    					deleteItem(1517, getItemSlot(1517), 1);
    makeGlobalObject(absX,absY, 2732, 0, 10);
    					addSkillXP(600, 11);
    sM("You attempt to light the logs.");
    sM("The fire catches and the logs begin to burn.");
    resetWC();
    				} else {
    					sM("You need a firemaking level of 45 to burn maple logs.");
    				}
    			}
    
    			else if ((itemUsed == 590) && (useWith == 1515)) {
    				if (playerLevel[11] >= 60) {
    					deleteItem(1515, getItemSlot(1515), 1);
    makeGlobalObject(absX,absY, 2732, 0, 10);
    					addSkillXP(780, 11);
    sM("You attempt to light the logs.");
    sM("The fire catches and the logs begin to burn.");
    resetWC();
    				} else {
    					sM("You need a firemaking of 60 to burn yew logs.");
    				}
    			} else if ((itemUsed == 590) && (useWith == 1513)) {
    				if (playerLevel[11] >= 75) {
    					deleteItem(1513, getItemSlot(1513), 1);
    makeGlobalObject(absX,absY, 2732, 0, 10);
    					addSkillXP(1200, 11);
    sM("You attempt to light the logs.");
    sM("The fire catches and the logs begin to burn.");
    resetWC();
    				} else {
    					sM("You need a firemaking level of 75 to burn magic logs.");
    				}
    			}
    
    			else if ((itemUsed == 1511) && (useWith == 590)) {
    				if (playerLevel[11] >= 0) {
    					deleteItem(1511, getItemSlot(1511), 1);
    makeGlobalObject(absX,absY, 2732, 0, 10);
    					addSkillXP(180, 11);
    sM("You attempt to light the logs.");
    sM("The fire catches and the logs begin to burn.");
    resetWC();
    				} else {
    					sM("You need a firemaking of 0 to burn normal logs.");
    				}
    			} else if ((itemUsed == 1521) && (useWith == 590)) {
    				if (playerLevel[11] >= 15) {
    					deleteItem(1521, getItemSlot(1521), 1);
    makeGlobalObject(absX,absY, 2732, 0, 10);
    					addSkillXP(250, 11);
    sM("You attempt to light the logs.");
    sM("The fire catches and the logs begin to burn.");
    resetWC();
    				} else {
    					sM("You need a firemaking level of 15 to burn oak logs.");
    				}
    			}
    
    			else if ((itemUsed == 1519) && (useWith == 590)) {
    				if (playerLevel[11] >= 30) {
    					deleteItem(1519, getItemSlot(1519), 1);
    makeGlobalObject(absX,absY, 2732, 0, 10);
    					addSkillXP(340, 11);
    sM("You attempt to light the logs.");
    sM("The fire catches and the logs begin to burn.");
    resetWC();
    				} else {
    					sM("You need a firemaking of 30 to burn willow logs.");
    				}
    			} else if ((itemUsed == 1517) && (useWith == 590)) {
    				if (playerLevel[11] >= 45) {
    					deleteItem(1517, getItemSlot(1517), 1);
    makeGlobalObject(absX,absY, 2732, 0, 10);
    					addSkillXP(600, 11);
    sM("You attempt to light the logs.");
    sM("The fire catches and the logs begin to burn.");
    resetWC();
    				} else {
    					sM("You need a firemaking level of 45 to burn maple logs.");
    				}
    			}
    
    			else if ((itemUsed == 1515) && (useWith == 590)) {
    				if (playerLevel[11] >= 60) {
    					deleteItem(1515, getItemSlot(1515), 1);
    makeGlobalObject(absX,absY, 2732, 0, 10);
    					addSkillXP(780, 11);
    sM("You attempt to light the logs.");
    sM("The fire catches and the logs begin to burn.");
    resetWC();
    				} else {
    					sM("You need a firemaking of 60 to burn yew logs.");
    				}
    			} else if ((itemUsed == 1513) && (useWith == 590)) {
    				if (playerLevel[11] >= 75) {
    					deleteItem(1513, getItemSlot(1513), 1);
    makeGlobalObject(absX,absY, 2732, 0, 10);
    					addSkillXP(1200, 11);
    sM("You attempt to light the logs.");
    sM("The fire catches and the logs begin to burn.");
    resetWC();
    				} else {
    					sM("You need a firemaking level of 75 to burn magic logs.");
    				}
    			}
    No problem if this helps, If it dont dont worry .
    Reply With Quote  
     


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: 33
    Last Post: 04-21-2011, 01:32 AM
  2. Riotscape aka delta - Firemaking?
    By Iamgod in forum Help
    Replies: 4
    Last Post: 08-29-2010, 05:45 AM
  3. Replies: 10
    Last Post: 02-05-2010, 04:59 PM
  4. Firemaking, yes/no.
    By Kastro in forum Voting
    Replies: 6
    Last Post: 01-17-2010, 02:04 PM
  5. firemaking
    By Romania Clan in forum Help
    Replies: 10
    Last Post: 10-07-2009, 09:24 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •