Thread: Matrix 718 Shop Compile Errors?

Results 1 to 4 of 4
  1. #1 Matrix 718 Shop Compile Errors? 
    Banned

    Join Date
    Jan 2012
    Age
    22
    Posts
    2,705
    Thanks given
    907
    Thanks received
    628
    Rep Power
    0
    Wtf Ive been trying to configure for ages...

    Spoiler for Errors...:
    Compling Please wait...
    src\com\rs\net\decoders\handlers\ButtonHandler.jav a:923: error: method sendInfo
    in class Shop cannot be applied to given types;
    shop.sendInfo(player, slotId, isBuying);

    ^
    required: Player,int,Item[]
    found: Player,int,boolean
    reason: actual argument boolean cannot be converted to Item[] by method invoca
    tion conversion
    src\com\rs\net\decoders\handlers\ButtonHandler.jav a:940: error: cannot find symb
    ol
    shop.buy(player, slot, shop.getAmount())
    ;
    ^
    symbol: method getAmount()
    location: variable shop of type Shop
    src\com\rs\net\decoders\handlers\ButtonHandler.jav a:942: error: cannot find symb
    ol
    shop.sell(player, slot, shop.getAmount()
    );
    ^
    symbol: method getAmount()
    location: variable shop of type Shop
    src\com\rs\net\decoders\handlers\ButtonHandler.jav a:947: error: cannot find symb
    ol
    shop.setAmount(player, shop.getAmount() + 5);
    ^
    symbol: method getAmount()
    location: variable shop of type Shop
    src\com\rs\net\decoders\handlers\ButtonHandler.jav a:949: error: cannot find symb
    ol
    shop.setAmount(player, shop.getAmount() + 1);
    ^
    symbol: method getAmount()
    location: variable shop of type Shop
    src\com\rs\net\decoders\handlers\ButtonHandler.jav a:951: error: cannot find symb
    ol
    if (shop.getAmount() > 1)
    ^
    symbol: method getAmount()
    location: variable shop of type Shop
    src\com\rs\net\decoders\handlers\ButtonHandler.jav a:952: error: cannot find symb
    ol
    shop.setAmount(player, shop.getAmount()
    - 1);
    ^
    symbol: method getAmount()
    location: variable shop of type Shop
    src\com\rs\net\decoders\handlers\ButtonHandler.jav a:954: error: cannot find symb
    ol
    if (shop.getAmount() > 1)
    ^
    symbol: method getAmount()
    location: variable shop of type Shop
    src\com\rs\net\decoders\handlers\ButtonHandler.jav a:955: error: cannot find symb
    ol
    shop.setAmount(player, shop.getAmount()
    - 5);
    ^
    symbol: method getAmount()
    location: variable shop of type Shop
    src\com\rs\net\decoders\handlers\ButtonHandler.jav a:957: error: cannot find symb
    ol
    shop.setAmount(player, 1);
    ^
    symbol: method setAmount(Player,int)
    location: variable shop of type Shop
    src\com\rs\net\decoders\handlers\ButtonHandler.jav a:961: error: cannot find symb
    ol
    shop.setAmount(player, isBuying ? shop.getMainSt
    ock()[slot].getAmount() : player.getInventory().getItems().getItems()[slot].getA
    mount());
    ^
    symbol: method setAmount(Player,int)
    location: variable shop of type Shop
    src\com\rs\net\decoders\handlers\ButtonHandler.jav a:965: error: cannot find symb
    ol
    shop.setAmount(player, 1);
    ^
    symbol: method setAmount(Player,int)
    location: variable shop of type Shop
    src\com\rs\net\decoders\handlers\ButtonHandler.jav a:968: error: cannot find symb
    ol
    shop.setAmount(player, 1);
    ^
    symbol: method setAmount(Player,int)
    location: variable shop of type Shop
    13 errors
    Compile Complete!
    Press any key to continue . . .
    Reply With Quote  
     

  2. #2  
    The stupid noob


    Join Date
    May 2011
    Age
    26
    Posts
    2,227
    Thanks given
    2,446
    Thanks received
    1,100
    Rep Power
    852
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Working on a 592 project c:
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Developer

    Holy Symbol's Avatar
    Join Date
    Dec 2011
    Age
    23
    Posts
    1,762
    Thanks given
    1,047
    Thanks received
    232
    Rep Power
    232
    Quote Originally Posted by RuneScape View Post
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    This is the correct answer.
    Spoiler for big sig:


    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    The Emperor of the Sands

    Azir's Avatar
    Join Date
    Nov 2008
    Posts
    2,468
    Thanks given
    8
    Thanks received
    487
    Rep Power
    117
    Quote Originally Posted by King J Scape View Post
    Code:
    		} else if (interfaceId == 1265) {
    			Shop shop = (Shop) player.getTemporaryAttributtes().get("Shop");
    			if (shop == null)
    				return;
    			Integer slot = (Integer) player.getTemporaryAttributtes().get("ShopSelectedSlot");
    			boolean isBuying = player.getTemporaryAttributtes().get("shop_buying") != null;
    			if (componentId == 20) {
    				player.getTemporaryAttributtes().put("ShopSelectedSlot", slotId);
    				if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET)
    					shop.sendInfo(player, slotId, isBuying);
    				else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET)
    					shop.buy(player, slotId, 1);
    				else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET)
    					shop.buy(player, slotId, 5);
    				else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET)
    					shop.buy(player, slotId, 10);
    				else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET)
    					shop.buy(player, slotId, 50);
    				else if (packetId == WorldPacketsDecoder.ACTION_BUTTON9_PACKET)
    					shop.buy(player, slotId, 500);
    				else if (packetId == WorldPacketsDecoder.ACTION_BUTTON8_PACKET)
    					shop.sendExamine(player, slotId);
    			}
    	
    		} else if (interfaceId == 1266) {
    			if (componentId == 0) {
    
    				if (packetId == WorldPacketsDecoder.ACTION_BUTTON9_PACKET)
    					player.getInventory().sendExamine(slotId);
    				else {
    					Shop shop = (Shop) player.getTemporaryAttributtes().get(
    							"Shop");
    					if (shop == null)
    						return;
    					if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET)
    						shop.sendValue(player, slotId);
    					else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET)
    						shop.sell(player, slotId, 1);
    					else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET)
    						shop.sell(player, slotId, 5);
    					else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET)
    						shop.sell(player, slotId, 10);
    					else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET)
    						shop.sell(player, slotId, 50);
    				}
    			}
    may fix it i had the same problem..
    this may work for you.


    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. [718/Matrix]Itemdb.biz Search Command[718/Matrix]
    By benjamin94 in forum Snippets
    Replies: 12
    Last Post: 08-11-2012, 12:10 PM
  2. [MATRIX 718] need help fixing run errors
    By 90 tank dds in forum Help
    Replies: 6
    Last Post: 08-02-2012, 11:03 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
  •