Thread: Inferno adze woodcutting emote

Results 1 to 4 of 4
  1. #1 Inferno adze woodcutting emote 
    Registered Member
    Join Date
    Nov 2011
    Posts
    102
    Thanks given
    2
    Thanks received
    3
    Rep Power
    11
    Code:
    	public void startWoodcutting(int logType, int levelReq, int exp) {
    		if (goodAxe() > 0) {
    			c.turnPlayerTo(c.objectX, c.objectY);
    			if (c.playerLevel[c.playerWoodcutting] >= levelReq) {
    				this.logType = logType;
    				this.exp = exp;
    				this.levelReq = levelReq;
    				this.axeType = goodAxe();
    				c.wcTimer = getWcTimer();
    				if(c.playerEquipment[c.playerWeapon] == 13661) {
    					c.startAnimation(10251);
    				} else {
    				c.getPA().resetVariables();
    				c.startAnimation(65535);
    				c.sendMessage("You need a woodcutting level of " + levelReq + " to cut this tree.");
    			}		
    		} else {
    			c.startAnimation(65535);
    			c.sendMessage("You need an axe to cut this tree.");
    			c.getPA().resetVariables();
    		}
    	}

    the error is this

    Code:
    src\server\model\players\skills\Woodcutting.java:50: error: illegal start of exp
    ression
            public void resetWoodcut() {
            ^
    src\server\model\players\skills\Woodcutting.java:50: error: illegal start of exp
    ression
            public void resetWoodcut() {
                   ^
    src\server\model\players\skills\Woodcutting.java:50: error: ';' expected
            public void resetWoodcut() {
                                    ^
    src\server\model\players\skills\Woodcutting.java:58: error: illegal start of exp
    ression
            public void cutWood() {
            ^
    src\server\model\players\skills\Woodcutting.java:58: error: illegal start of exp
    ression
            public void cutWood() {
                   ^
    src\server\model\players\skills\Woodcutting.java:58: error: ';' expected
            public void cutWood() {
                               ^
    src\server\model\players\skills\Woodcutting.java:70: error: illegal start of exp
    ression
            public int goodAxe() {
            ^
    src\server\model\players\skills\Woodcutting.java:70: error: ';' expected
            public int goodAxe() {
                              ^
    src\server\model\players\skills\Woodcutting.java:88: error: illegal start of exp
    ression
            public int getWcTimer() {
            ^
    src\server\model\players\skills\Woodcutting.java:88: error: ';' expected
            public int getWcTimer() {
                                 ^
    src\server\model\players\skills\Woodcutting.java:93: error: reached end of file
    while parsing
    }
     ^
    11 errors
    Press any key to continue . . .
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Sep 2011
    Posts
    2,730
    Thanks given
    1,150
    Thanks received
    907
    Rep Power
    668
    Code:
    public void startWoodcutting(int logType, int levelReq, int exp) {
    		if (goodAxe() > 0) {
    			c.turnPlayerTo(c.objectX, c.objectY);
    			if (c.playerLevel[c.playerWoodcutting] >= levelReq) {
    				this.logType = logType;
    				this.exp = exp;
    				this.levelReq = levelReq;
    				this.axeType = goodAxe();
    				c.wcTimer = getWcTimer();
    				if(c.playerEquipment[c.playerWeapon] == 13661) {
    					c.startAnimation(10251);
    				} else {
    				c.getPA().resetVariables();
    				c.startAnimation(65535);
    				c.sendMessage("You need a woodcutting level of " + levelReq + " to cut this tree.");
    			}		
    		} else {
    			c.startAnimation(65535);
    			c.sendMessage("You need an axe to cut this tree.");
    			c.getPA().resetVariables();
    		}
    	}
    }
    You missed a bracket at the end.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2011
    Posts
    220
    Thanks given
    3
    Thanks received
    13
    Rep Power
    2
    He didn't miss it at the end...
    Code:
    	public void startWoodcutting(int logType, int levelReq, int exp) {
    		if (goodAxe() > 0) {
    			c.turnPlayerTo(c.objectX, c.objectY);
    			if (c.playerLevel[c.playerWoodcutting] >= levelReq) {
    				this.logType = logType;
    				this.exp = exp;
    				this.levelReq = levelReq;
    				this.axeType = goodAxe();
    				c.wcTimer = getWcTimer();
    				if(c.playerEquipment[c.playerWeapon] == 13661) {
    					c.startAnimation(10251);
    				}
    			} else {
    				c.getPA().resetVariables();
    				c.startAnimation(65535);
    				c.sendMessage("You need a woodcutting level of " + levelReq + " to cut this tree.");
    			}		
    		} else {
    			c.startAnimation(65535);
    			c.sendMessage("You need an axe to cut this tree.");
    			c.getPA().resetVariables();
    		}
    	}
    Edit: "Your" code is confusing and it's hard to understand what the purpose of it is, but I think this is it.
    Reply With Quote  
     

  4. #4  
    Donator

    Anthony's Avatar
    Join Date
    Dec 2007
    Age
    29
    Posts
    1,344
    Thanks given
    198
    Thanks received
    129
    Rep Power
    355
    I know with my coding I have a section that pulls in all the ID's that are axes. I don't know if yours is the same or not but it worth the check.
    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. inferno adze emote id
    By Buckshot in forum Requests
    Replies: 4
    Last Post: 12-16-2010, 02:12 AM
  2. Inferno Adze emote Id?
    By Extea in forum Requests
    Replies: 5
    Last Post: 02-20-2010, 06:19 PM
  3. Inferno Adze WC/Mining emote?
    By Underoath in forum Requests
    Replies: 2
    Last Post: 10-25-2009, 01:37 AM
  4. Inferno Adze Emote?
    By Underoath in forum Requests
    Replies: 0
    Last Post: 08-09-2009, 06:50 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
  •