Thread: Help

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Help 
    Registered Member L3git's Avatar
    Join Date
    Nov 2011
    Posts
    427
    Thanks given
    5
    Thanks received
    9
    Rep Power
    13
    i tired this create puch i found on the help and i get this error


    Code:
    Compiling RS2Server...
    src\org\dementhium\net\packethandlers\ActionButtonHandler.java:2379: class, inte
    rface, or enum expected
    }
    ^
    src\org\dementhium\net\packethandlers\ActionButtonHandler.java:117: getMenuOptio
    nIndex(int) is already defined in org.dementhium.net.packethandlers.ActionButton
    Handler
            private int getMenuOptionIndex(int opcode) {
                        ^
    src\org\dementhium\net\packethandlers\ActionButtonHandler.java:711: cannot find
    symbol
    symbol  : method getBob()
    location: class org.dementhium.model.player.Player
                                    player.getBob().callToPlayer();
                                          ^
    src\org\dementhium\net\packethandlers\ActionButtonHandler.java:714: cannot find
    symbol
    symbol  : method getBob()
    location: class org.dementhium.model.player.Player
                                    player.getBob().dismiss();
                                          ^
    src\org\dementhium\net\packethandlers\ActionButtonHandler.java:722: cannot find
    symbol
    symbol  : method getBob()
    location: class org.dementhium.model.player.Player
                                    player.getBob().removeItem(slot);
                                          ^
    src\org\dementhium\net\packethandlers\ActionButtonHandler.java:725: cannot find
    symbol
    symbol  : method getBob()
    location: class org.dementhium.model.player.Player
                                    player.getBob().take();
                                          ^
    6 errors
    Complete
    Press any key to continue . . .
    and the codes are

    Code:
    case 747:
    			if (buttonId == 7) { //Summoning Pet Interface
    				ActionSender.sendInventoryInterface(player, 662);
    			}
    			break;
    		case 662:
    			switch (buttonId) {
    			case 49:
    				player.getBob().callToPlayer();
    				break;
    			case 51:
    				player.getBob().dismiss();
    			break;
    			}
    				
    			
    		case 671:
    			switch (buttonId) {
    			case 27:
    				player.getBob().removeItem(slot);
    				break;
    			case 29:
    				player.getBob().take();
    				break;
    			}
    			break;
    		case 672: //summon pouches
    			if (buttonId == 18) {
    				//player.getActionSender().CreateScrollOptions();
    			}
    			if (slot == 2) {
    					CreatePouch(player, 1, 7,12158,2859,-1,12047,1);
    			}
    			if (slot == 7) {
    					CreatePouch(player, 4, 8,12158,2138,-1,12043,5);
    			}
    			if (slot == 12) {
    					CreatePouch(player, 10, 8,12158,6291,-1,12059,5);
    			}
    			if (slot == 17) {
    					CreatePouch(player, 13, 9,12158,3363,-1,12019,7);
    			}
    			if (slot == 22) {
    				CreatePouch(player, 16, 7,12158,440,-1,12009,7);
    			} else if (slot == 27) {
    				CreatePouch(player, 17, 1,12158,6319,-1,12778,7);
    			} else if (slot == 32) {
    				CreatePouch(player, 18, 45,12159,1783,-1,12049,7);
    			} else if (slot == 37) {
    				CreatePouch(player, 19, 57,12160,3095,-1,12055,7);
    			} else if (slot == 42) {
    				CreatePouch(player, 22, 64,12160,12168,-1,12808,7);
    			} else if (slot == 47) {
    				CreatePouch(player, 23, 75,12163,2134,-1,12067,12);
    			} else if (slot == 52) {
    				CreatePouch(player, 25, 51,12163,3138,-1,12063,12);
    			} else if (slot == 57) {
    				CreatePouch(player, 28, 47,12159,6032,-1,12091,12);
    			} else if (slot == 62) {	
    				
    					CreatePouch(player, 29, 84,12163,9976,-1,12800,15);
    			} else if (slot == 67) {
    					CreatePouch(player, 31, 81,12160,3325,-1,12053,15);
    			} else if (slot == 72) {
    				
    					CreatePouch(player, 32, 84,12160,12156,-1,12065,15);
    			} else if (slot == 77) {
    				
    					CreatePouch(player, 33, 72,12159,1519, -1,12021,21);
    			} else if (slot == 82) {
    				
    					CreatePouch(player, 34, 74,12159,12164,-1,12818,21);
    			} else if (slot == 87) {
    				
    					CreatePouch(player, 34, 74, 12163,12166,-1, 12780,21);
    			} else if (slot == 92) {
    				
    					CreatePouch(player, 34, 74, 12163, 12167,-1,12798,21);
    			} else if (slot == 97) {
    				CreatePouch(player, 34, 74, 12163,12165,-1,12814,21);
    			} else if (slot == 102) {
    				CreatePouch(player, 40, 11, 12158, 6010,-1,12087,21);
    					
    			} else if (slot == 107) {
    					CreatePouch(player, 41, 78,12159,250, -1,12071,21);
    					
    			} else if (slot == 112) {
    					CreatePouch(player, 42, 104, 12160, 12134, -1, 12051, 23);
    					
    			} else if (slot == 117) {
    					CreatePouch(player, 43, 88, 12159, 12109, -1, 12095, 25);
    					
    			} else if (slot == 122) {
    					CreatePouch(player, 43, 88, 12159, 12111, -1, 12097, 34);
    					
    			} else if (slot == 127) {
    					CreatePouch(player, 43, 88, 12159, 12113, -1, 12099, 34);
    					
    			} else if (slot == 132) {
    					CreatePouch(player, 43, 88, 12159, 12115, -1, 12101, 37);
    					
    			} else if (slot == 137) {
    				CreatePouch(player, 43, 88, 12159, 12117, -1, 12103, 39);
    				//CreatePouch(player, 85, 150,12160,10149,1,12776,3736);
    					
    			} else if (slot == 142) {
    				CreatePouch(player, 43, 88, 12159, 12119, -1, 12105, 42);	
    				//CreatePouch(player, 36, 102,12163,2349,-1,12073,3168);
    					
    			} else if (slot == 147) {
    				CreatePouch(player, 43, 88, 12159, 12121, -1, 12107, 42);		
    				//CreatePouch(player, 46, 125,12163,2351,-1,12075,4048);
    			
    			} else if (slot == 152) {
    					CreatePouch(player, 46, 111,12816,590,-1,12077,48);
    					
    			} else if (slot == 157) {
    				CreatePouch(player, 47,88, 12160, 1635, -1, 12041, 52);
    					
    			} else if (slot == 162) {
    				CreatePouch(player, 49,117, 12161, 2132, -1, 12061, 52);
    					
    			} else if (slot == 167) {
    				CreatePouch(player, 52,12, 12159, 9978, -1, 12007, 52);
    				
    			} else if (slot == 172) {
    				CreatePouch(player, 54,106, 12159, 12161, -1, 12035, 57);
    					
    			} else if (slot == 177) {
    				CreatePouch(player, 55,151, 12163, 1937, -1, 12027, 58);
    					
    			} else if (slot == 182) {
    				CreatePouch(player, 56,109, 12159, 311, -1, 12531, 59);
    					
    			} else if (slot == 187) {
    				CreatePouch(player, 57,153, 12163, 10103, -1, 12812, 67);
    					
    			} else if (slot == 192) {
    				CreatePouch(player, 57,155, 12163, 10095, -1, 12784, 67);
    					
    			} else if (slot == 197) {
    				CreatePouch(player, 57,154, 12163, 10099, -1, 12810, 69);
    			} else if (slot == 202) {		
    				CreatePouch(player, 58,144, 12163, 6667, -1, 12023, 70);
    			} else if (slot == 207) {
    				CreatePouch(player, 61,141, 12160, 9737, -1, 12085, 70);
    			} else if (slot == 212) {
    				CreatePouch(player, 62,119, 12159, 12161, -1, 12037, 73);
    			} else if (slot == 217) {
    				CreatePouch(player, 63,116, 12160, 6287, -1, 12015, 80);
    			} else if (slot == 222) {
    				CreatePouch(player, 64,128, 12160, 8431, -1, 12041, 80);
    			} else if (slot == 227) {
    				CreatePouch(player, 66,11, 12158, 2150, -1, 12079, 80);
    			} else if (slot == 232) {
    				CreatePouch(player, 67,1, 12159, 7939, -1, 12123, 80);
    			} else if (slot == 237) {
    				CreatePouch(player, 68,110, 12159, 383, -1, 12031, 80);
    			} else if (slot == 242) {
    				CreatePouch(player, 69,130, 12159, 1963, -1, 12029, 80);
    			} else if (slot == 247) {
    				CreatePouch(player, 70,79, 12160, 1933, -1, 12820, 89);
    			} else if (slot == 252) {
    				CreatePouch(player, 71,14, 12158, 10117, -1, 12057, 90);
    			} else if (slot == 257) {
    				CreatePouch(player, 72,165, 12160, 14616, -1, 14623, 110);
    			} else if (slot == 262) {
    				CreatePouch(player, 73,195, 12163, 12168, -1, 12792, 110);
    			} else if (slot == 267) {
    				CreatePouch(player, 74,166, 12160, 6979, -1, 12069, 110);
    			} else if (slot == 272) {
    				CreatePouch(player, 75,168, 12160, 2460, -1, 12011, 110);
    			} else if (slot == 277) {
    				CreatePouch(player, 76,141, 12163, 10020, -1, 12782, 210);
    			} else if (slot == 282) {
    				CreatePouch(player, 77,174, 12160, 12163, -1, 12794, 110);
    			} else if (slot == 287) {
    				CreatePouch(player, 78,124, 12159, 5933, -1, 12013, 110);
    			} else if (slot == 292) {
    				CreatePouch(player, 79,198, 12163, 1442, -1, 12802, 250);
    			} else if (slot == 297) {
    				CreatePouch(player, 79,202, 12163, 1440, -1, 12804, 250);
    			} else if (slot == 302) {
    				CreatePouch(player, 79,198, 12163, 1438, -1, 12806, 250);
    			} else if (slot == 307) {
    				CreatePouch(player, 80,128, 12159, 571, -1, 12025, 250);
    			} else if (slot == 312) {
    				CreatePouch(player, 83,1, 12160, 6155, -1, 12017, 350);
    			} else if (slot == 317) {
    				CreatePouch(player, 83,219, 12163, 12168, -1, 12788, 350);
    			} else if (slot == 322) {
    				CreatePouch(player, 85,150, 12160, 10149, -1, 12775, 350);
    			} else if (slot == 327) {
    				CreatePouch(player, 36,102, 12163, 2349, -1, 12073, 150);
    			} else if (slot == 332) {
    				CreatePouch(player, 46,125, 12163, 2351, -1, 12075, 750);
    			} else if (slot == 337) {
    				CreatePouch(player, 56,141, 12163, 2353, -1, 12077, 750);
    			} else if (slot == 342) {
    				CreatePouch(player, 66,152, 12163, 2359, -1, 12045, 750);
    			} else if (slot == 347) {
    				CreatePouch(player, 76,144, 12160, 2361, -1, 12081, 350);
    			} else if (slot == 352) {
    				CreatePouch(player, 86,1, 12163, 2363, -1, 12083, 450);
    			} else if (slot == 357) {
    				CreatePouch(player, 88,140, 12159, 237, -1, 12039, 250);
    			} else if (slot == 362) {
    				CreatePouch(player, 89,222, 12163, 1444, -1, 12786, 450);
    			} else if (slot == 367) {
    				CreatePouch(player, 92,203, 12160, 3226, 2859, 12089, 250);
    			} else if (slot == 372) {
    				CreatePouch(player, 93,113, 12159, 12161, -1, 12796, 250);
    			} else if (slot == 377) {
    				CreatePouch(player, 95,198, 12160, 1115, -1, 12822, 350);
    			} else if (slot == 382) {
    				CreatePouch(player, 96,211, 12160, 10818, -1, 12093, 350);
    	} else if (slot == 387) {
    		CreatePouch(player, 99,178, 12160, 1119, -1, 12790, 950);
    	}
    Code:
    public void CreatePouch(Player p, int lvl, int ShardAmt, int CharmId, int MasterItem, int MasterItem2, int Create, int xp) {
    		int amount = p.getInventory().numberOf(CharmId);
    		int amt = p.getInventory().numberOf(MasterItem);
    		if(p.getSkills().getLevel(23) < lvl) { //check lvl
    		p.sendMessage("Your Summoning level is too low!");
    		return;
    		}
    		ItemDefinition create = ItemDefinition.forId(Create);
    		if(MasterItem2 != -1 && p.getInventory().contains(MasterItem2) == false)  {//check second master item
    			p.sendMessage("You do not have all the materials to make " +create.getName()+ ".");
    		ItemDefinition charm = ItemDefinition.forId(CharmId);
    		ItemDefinition masteritem = ItemDefinition.forId(MasterItem);
    		ItemDefinition masteritem2 = ItemDefinition.forId(MasterItem2);
    		p.sendMessage("This pouch requires 1 " +masteritem.getName()+ ", 1 " +masteritem2.getName()+ ", 1 " +charm.getName()+ " and " +ShardAmt+ " spirit shards.");
    		return;
    		}
    
    		if(p.getInventory().contains(12155) == false || p.getInventory().contains(12183, ShardAmt) == false || p.getInventory().contains(CharmId) == false || p.getInventory().contains(MasterItem) == false)  {//check all otheritems
    		p.sendMessage("You do not have all the materials to make " +create.getName()+ ".");
    		ItemDefinition charm = ItemDefinition.forId(CharmId);
    		
    		ItemDefinition masteritem = ItemDefinition.forId(MasterItem);
    		p.sendMessage("This pouch requires 1 " +masteritem.getName()+ ", 1 " +charm.getName()+ " and " +ShardAmt+ " spirit shards.");
    		return;
    		}
    
    		p.getInventory().deleteItem(12155, 1);
    		p.getInventory().deleteItem(12183, ShardAmt);
    		p.getInventory().deleteItem(CharmId, 1);
    		p.getInventory().deleteItem(MasterItem, 1);
    		if(MasterItem2 != -1) {
    		p.getInventory().deleteItem(MasterItem2, 1);
    		}
    		p.getInventory().addItem(Create, 1);
    		p.getSkills().addExperience(23, xp);
    		p.sendMessage("You have created a " +create.getName()+ ".");
    		}
    	private int getMenuOptionIndex(int opcode) {
    		for (int i = 0; i < BUTTON_PACKET_IDS.length; i++) {
    			if (BUTTON_PACKET_IDS[i] == opcode) {
    				return i;
    			}
    		}
    		return -1;
    	}
    Reply With Quote  
     

  2. #2  
    Registered Member
    timetodothis's Avatar
    Join Date
    Jul 2009
    Posts
    532
    Thanks given
    24
    Thanks received
    55
    Rep Power
    123
    Is there a break after

    Code:
    	} else if (slot == 387) {
    		CreatePouch(player, 99,178, 12160, 1119, -1, 12790, 950);
    	}
    ?
    Reply With Quote  
     

  3. #3  
    Registered Member L3git's Avatar
    Join Date
    Nov 2011
    Posts
    427
    Thanks given
    5
    Thanks received
    9
    Rep Power
    13
    Quote Originally Posted by liam0235 View Post
    The problem is..... You have a small penis
    your so gay budy ffor that il report you.

    and no i dont have a break
    at the end
    Reply With Quote  
     

  4. #4  
    Registered Member L3git's Avatar
    Join Date
    Nov 2011
    Posts
    427
    Thanks given
    5
    Thanks received
    9
    Rep Power
    13
    ok i added break:

    and still get error
    Compiling RS2Server...
    src\org\dementhium\net\packethandlers\ActionButton Handler.java:2380: class, inte
    rface, or enum expected
    }
    ^
    src\org\dementhium\net\packethandlers\ActionButton Handler.java:117: getMenuOptio
    nIndex(int) is already defined in org.dementhium.net.packethandlers.ActionButton
    Handler
    private int getMenuOptionIndex(int opcode) {
    ^
    src\org\dementhium\net\packethandlers\ActionButton Handler.java:711: cannot find
    symbol
    symbol : method getBob()
    location: class org.dementhium.model.player.Player
    player.getBob().callToPlayer();
    ^
    src\org\dementhium\net\packethandlers\ActionButton Handler.java:714: cannot find
    symbol
    symbol : method getBob()
    location: class org.dementhium.model.player.Player
    player.getBob().dismiss();
    ^
    src\org\dementhium\net\packethandlers\ActionButton Handler.java:722: cannot find
    symbol
    symbol : method getBob()
    location: class org.dementhium.model.player.Player
    player.getBob().removeItem(slot);
    ^
    src\org\dementhium\net\packethandlers\ActionButton Handler.java:725: cannot find
    symbol
    symbol : method getBob()
    location: class org.dementhium.model.player.Player
    player.getBob().take();
    ^
    6 errors
    Complete
    Press any key to continue . . .
    Reply With Quote  
     

  5. #5  
    Registered Member L3git's Avatar
    Join Date
    Nov 2011
    Posts
    427
    Thanks given
    5
    Thanks received
    9
    Rep Power
    13
    now i get errors with the getbob.

    Compiling RS2Server...
    src\org\dementhium\net\packethandlers\ActionButton Handler.java:711: cannot find
    symbol
    symbol : method getBob()
    location: class org.dementhium.model.player.Player
    player.getBob().callToPlayer();
    ^
    src\org\dementhium\net\packethandlers\ActionButton Handler.java:714: cannot find
    symbol
    symbol : method getBob()
    location: class org.dementhium.model.player.Player
    player.getBob().dismiss();
    ^
    src\org\dementhium\net\packethandlers\ActionButton Handler.java:722: cannot find
    symbol
    symbol : method getBob()
    location: class org.dementhium.model.player.Player
    player.getBob().removeItem(slot);
    ^
    src\org\dementhium\net\packethandlers\ActionButton Handler.java:725: cannot find
    symbol
    symbol : method getBob()
    location: class org.dementhium.model.player.Player
    player.getBob().take();
    ^
    4 errors
    Complete
    Press any key to continue . . .
    Reply With Quote  
     

  6. #6  
    Member Market Banned Market Banned

    thesharp's Avatar
    Join Date
    Dec 2010
    Age
    29
    Posts
    1,120
    Thanks given
    311
    Thanks received
    140
    Rep Power
    312
    Player doesn't have a method "getBob()"
    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  7. #7  
    Registered Member
    Velocity's Avatar
    Join Date
    Jan 2009
    Age
    25
    Posts
    2,029
    Thanks given
    1,013
    Thanks received
    2,373
    Rep Power
    4112
    Quote Originally Posted by EvenSkull View Post
    your so gay budy ffor that il report you.

    and no i dont have a break
    at the end
    Thank you for making me laugh
    xxxxxxx
    Reply With Quote  
     

  8. #8  
    † Skyotic 639 †
    64Bit's Avatar
    Join Date
    Dec 2011
    Age
    31
    Posts
    624
    Thanks given
    93
    Thanks received
    37
    Rep Power
    4
    ur leeching my thingo but ill tell you how to fix. add the method in actionsender
    IGNORANCE WILL BE IGNORED

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. #9  
    † Skyotic 639 †
    64Bit's Avatar
    Join Date
    Dec 2011
    Age
    31
    Posts
    624
    Thanks given
    93
    Thanks received
    37
    Rep Power
    4
    by this i mean the method getbob
    IGNORANCE WILL BE IGNORED

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. #10  
    Registered Member L3git's Avatar
    Join Date
    Nov 2011
    Posts
    427
    Thanks given
    5
    Thanks received
    9
    Rep Power
    13
    Quote Originally Posted by pendora View Post
    by this i mean the method getbob

    so i add this in actionsender

    Code:
    		case 662:
    			switch (buttonId) {
    			case 49:
    				player.getBob().callToPlayer();
    				break;
    			case 51:
    				player.getBob().dismiss();
    			break;
    			}
    				
    			
    		case 671:
    			switch (buttonId) {
    			case 27:
    				player.getBob().removeItem(slot);
    				break;
    			case 29:
    				player.getBob().take();
    				break;
    			}
    Reply With Quote  
     

Page 1 of 2 12 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
  •