Thread: 2 error's adding agility

Results 1 to 8 of 8
  1. #1 2 error's adding agility 
    Registered Member
    Join Date
    Oct 2009
    Posts
    133
    Thanks given
    10
    Thanks received
    11
    Rep Power
    24
    erm

    Code:
    src\server\model\players\Client.java:1246: cannot find symbol
    symbol  : variable agility
    location: class server.model.players.Client
                    return agility;
                           ^
    src\server\model\players\ActionHandler.java:156: duplicate case label
                    case 2286:
                    ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    Press any key to continue . . .
    I'm using this guide
    http://www.rune-server.org/runescape...y-tickets.html

    i understand the dublicate case problem, but have no idea how to fix it because i don't know which to delete


    here's where they are in the actionhandler.java

    Code:
    		case 2286:
    		if (System.currentTimeMillis() - c.foodDelay < 2000) {
    		return;
    		}
    			c.stopMovement();
    			c.startAnimation(828);
    			c.getAgil().AgilityNet(c, "Net", 1, 2483, 3425, 0, 2483, 3427, 828, 60);
    			c.getAgil().AgilityNet(c, "Net", 1, 2484, 3425, 0, 2484, 3427, 828, 60);
    			c.getAgil().AgilityNet(c, "Net", 1, 2485, 3425, 0, 2485, 3427, 828, 60);
    			c.getAgil().AgilityNet(c, "Net", 1, 2486, 3425, 0, 2486, 3427, 828, 60);
    			c.getAgil().AgilityNet(c, "Net", 1, 2487, 3425, 0, 2487, 3427, 828, 60);
    			c.getAgil().AgilityNet(c, "Net", 1, 2488, 3425, 0, 2488, 3427, 828, 60);
    			c.ag6 = 1;
    			c.getAgil().bonus = true;
    			c.foodDelay = System.currentTimeMillis();
    			break;
    		case 154:
    		if (System.currentTimeMillis() - c.foodDelay < 2000) {
    		return;
    		}
    			c.stopMovement();
    			c.getPA().fmwalkto(0, 1);
    			c.startAnimation(749);
    			c.getAgil().AgilityPipe(c, "Pipe", 1, 2484, 3430, 0, +7, 2996, 10, 60);
    			c.foodDelay = System.currentTimeMillis();
    			break;
    		case 4058:
    		if (System.currentTimeMillis() - c.foodDelay < 2000) {
    		return;
    		}
    			c.stopMovement();
    			c.getPA().fmwalkto(0, 1);
    			c.startAnimation(749);
    			c.getAgil().AgilityPipe(c, "Pipe", 1, 2487, 3430, 0, +7, 2996, 10, 60);
    			c.foodDelay = System.currentTimeMillis();
    			break;		
    		case 1765:
    			c.getPA().movePlayer(2271, 4680, 0);
    		break;
    		/*case 9391://tzhaar viewing orb
                    c.setSidebarInterface(10, 3209);
                    c.outStream.createFrame(106); // Writes the frame 106 out.
                    c.outStream.writeByteC(10); // Tells client to switch to the magic interface
                    break;*/
    
    			case 26288:
    			case 26287:
    			case 26286:
    			case 26289:
    			
    				if(c.gwdelay > 1) {
    				c.sendMessage("You can only do this once every 5 minute!");
    				return;
    				}	
    		if(c.playerLevel[5] < c.getPA().getLevelForXP(c.playerXP[5])) {
    				c.startAnimation(645);
    				c.playerLevel[5] = c.getPA().getLevelForXP(c.playerXP[5]);
    				c.sendMessage("You recharge your prayer points.");
    				c.getPA().refreshSkill(5);
    				c.gwdelay = 600;
    			} else {
    				c.sendMessage("You already have full prayer points.");
    			}
     
    			break;
    		
    		case 1:
    		c.sendMessage("You found a butterfly Net!");
    		c.getItems().addItem(10010, 1);
    		break;
    		case 9398://deposit
    	c.getPA().sendFrame126("The Bank of Fabledscape - Deposit Box", 7421);
    	c.getPA().sendFrame248(4465, 197);//197 just because you can't see it =\
    	c.getItems().resetItems(7423);
    break;
    				
    		case 2286:
    		c.getPA().movePlayer(2595, 4778, 0);
    		c.getItems().addItem(995, 2000);
    		c.getPA().addSkillXP(125*c.playerLevel[16], c.playerAgility);
    		c.getPA().refreshSkill(c.playerAgility);
    		break;
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2009
    Posts
    133
    Thanks given
    10
    Thanks received
    11
    Rep Power
    24
    fixed the " case 2286:" error, now i just need the top error fixed

    Code:
    src\server\model\players\Client.java:1246: cannot find symbol
    symbol  : variable agility
    location: class server.model.players.Client
                    return agility;
    Reply With Quote  
     

  3. #3  
    ~! Legit ~!

    Join Date
    Nov 2010
    Posts
    1,973
    Thanks given
    183
    Thanks received
    211
    Rep Power
    237
    try this:
    Code:
    import server.model.players.skills.Agility;
    [email protected]
    Spoiler for My Vouches:
    Quote Originally Posted by mattsforeal View Post
    I paid $5 went first, he fixed my problem and it worked. 100% legit would do it again.
    Quote Originally Posted by Mythic View Post
    Vouch for him, very smooth and fast trade, purchased his last 4m. Have fun with your new membership
    Quote Originally Posted by Harlan View Post
    Vouch, trustworthy guy.
    Quote Originally Posted by iPhisher™ View Post
    Vouch for Super-Man, he is a very legit and trustable guy.
    Reply With Quote  
     

  4. #4  
    My TFLOP is better than yours
    Sonic chao's Avatar
    Join Date
    Aug 2011
    Posts
    298
    Thanks given
    51
    Thanks received
    13
    Rep Power
    24
    Have you added the agility method?
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2009
    Posts
    133
    Thanks given
    10
    Thanks received
    11
    Rep Power
    24
    error still occurs. I have no idea where all of the old agility code is from the Hybrid pvp source. i just really didn't like it it was one obstacle.


    Problem fixed- thanks for the help guys

    problem-
    " public Agility getAgil() {
    return agility;
    }"
    was spose to be
    " public Agility getAgil() {
    return ag;
    }"

    ("return agility", was spose to be "return ag")
    Reply With Quote  
     

  6. #6  
    Generation-X

    Bilsma's Avatar
    Join Date
    Feb 2011
    Posts
    691
    Thanks given
    657
    Thanks received
    45
    Rep Power
    82
    A mod close this thread please
    Reply With Quote  
     

  7. #7  
    Registered Member ld est ld's Avatar
    Join Date
    Jul 2011
    Age
    29
    Posts
    103
    Thanks given
    4
    Thanks received
    0
    Rep Power
    1
    Try ANTARIO's AGILITY COURSE, WITH RIGHT ANIMS!

    Heres, the LINK!


    AGILITY

    I Don't Know is Mopar aloud here!
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Jul 2011
    Age
    30
    Posts
    745
    Thanks given
    2,207
    Thanks received
    451
    Rep Power
    0
    src\server\model\players\Client.java:1246
    Go to client.java and see what's happening on you 1246th line?
    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. [508+] Adding Agility using EventManager
    By Dark Regen in forum Tutorials
    Replies: 34
    Last Post: 01-02-2011, 02:45 AM
  2. need help with those error's
    By heroeswar in forum Help
    Replies: 0
    Last Post: 10-23-2010, 03:43 PM
  3. Error's you get.
    By AlexMason in forum Help
    Replies: 2
    Last Post: 06-07-2009, 06:13 PM
  4. 2 error's
    By Mario in forum Help
    Replies: 3
    Last Post: 04-10-2009, 05:19 AM
  5. Error's
    By JohnK in forum Help
    Replies: 2
    Last Post: 03-08-2009, 03:59 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
  •