Thread: PI runecrafting errors

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 PI runecrafting errors 
    Registered Member Real Slim's Avatar
    Join Date
    Mar 2013
    Posts
    223
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    Code:
    src\server\model\players\packets\ClickObject.java:6: error: cannot find symbol
    import server.model.players.skills.runecrafting.Runecrafting;
                                                   ^
      symbol:   class Runecrafting
      location: package server.model.players.skills.runecrafting
    src\server\model\players\packets\ClickObject.java:24: error: cannot find symbol
                            Runecrafting.craftRunes(client, client.objectId);
                                                    ^
      symbol:   variable client
      location: class ClickObject
    src\server\model\players\packets\ClickObject.java:24: error: cannot find symbol
                            Runecrafting.craftRunes(client, client.objectId);
                                                            ^
      symbol:   variable client
      location: class ClickObject
    src\server\model\players\packets\ClickObject.java:24: error: cannot find symbol
                            Runecrafting.craftRunes(client, client.objectId);
                            ^
      symbol:   variable Runecrafting
      location: class ClickObject
    src\server\model\players\packets\ItemClick2.java:22: error: cannot find symbol
                            if (itemId == Pouches.pouchData[i][0]) {
                                ^
      symbol:   variable itemId
      location: class ItemClick2
    src\server\model\players\packets\ItemClick2.java:23: error: cannot find symbol
                                    Pouches.checkPouch(c, itemId);
                                                          ^
      symbol:   variable itemId
      location: class ItemClick2
    src\server\model\players\packets\ItemClick3.java:19: error: cannot find symbol
            for (talismanData t : talismanData.values()) {
                                  ^
      symbol:   variable talismanData
      location: class ItemClick3
    src\server\model\players\packets\ItemClick3.java:19: error: cannot find symbol
            for (talismanData t : talismanData.values()) {
                 ^
      symbol:   class talismanData
      location: class ItemClick3
    src\server\model\players\packets\ItemClick3.java:20: error: cannot find symbol
                            if (itemId == t.getTalisman()) {
                                ^
      symbol:   variable itemId
      location: class ItemClick3
    src\server\model\players\packets\ItemClick3.java:21: error: cannot find symbol
                                    TalismanHandler.handleTalisman(c, itemId);
                                                                      ^
      symbol:   variable itemId
      location: class ItemClick3
    src\server\model\players\packets\WearItem.java:23: error: cannot find symbol
                                    if (wearID == Pouches.pouchData[i][0]) {
                                        ^
      symbol:   variable wearID
      location: class WearItem
    src\server\model\players\packets\WearItem.java:24: error: cannot find symbol
                                            Pouches.emptyPouch(c, wearID);
                                                                  ^
      symbol:   variable wearID
      location: class WearItem
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    12 errors
    Press any key to continue . . .
    Followed this http://www.rune-server.org/runescape...n-pouches.html

    Added all imports i guess but i have no idea what i have to do now :/

    Code:
    src\server\model\players\packets\ClickItem.java:17: error: cannot find symbol
                            if (itemId == Pouches.pouchData[i][0]) {
                                ^
      symbol:   variable itemId
      location: class ClickItem
    src\server\model\players\packets\ClickItem.java:18: error: cannot find symbol
                                    Pouches.fillPouch(itemId, c);
                                                      ^
      symbol:   variable itemId
      location: class ClickItem
    src\server\model\players\packets\ClickObject.java:16: error: cannot find symbol
                    Runecrafting.craftRunes(Client, client.objectId);
    
                                            ^
      symbol:   variable Client
      location: class ClickObject
    src\server\model\players\packets\ClickObject.java:16: error: cannot find symbol
                    Runecrafting.craftRunes(Client, client.objectId);
    
                                                    ^
      symbol:   variable client
      location: class ClickObject
    src\server\model\players\packets\ClickObject.java:16: error: cannot find symbol
                    Runecrafting.craftRunes(Client, client.objectId);
    
                    ^
      symbol:   variable Runecrafting
      location: class ClickObject
    src\server\model\players\packets\ItemClick2.java:22: error: cannot find symbol
                            if (itemId == Pouches.pouchData[i][0]) {
                                ^
      symbol:   variable itemId
      location: class ItemClick2
    src\server\model\players\packets\ItemClick2.java:23: error: cannot find symbol
                                    Pouches.checkPouch(itemId);
                                                       ^
      symbol:   variable itemId
      location: class ItemClick2
    src\server\model\players\packets\ItemClick3.java:19: error: cannot find symbol
            for (talismanData t : talismanData.values()) {
                                  ^
      symbol:   variable talismanData
      location: class ItemClick3
    src\server\model\players\packets\ItemClick3.java:19: error: cannot find symbol
            for (talismanData t : talismanData.values()) {
                 ^
      symbol:   class talismanData
      location: class ItemClick3
    src\server\model\players\packets\ItemClick3.java:20: error: cannot find symbol
                            if (itemId == t.getTalisman()) {
                                ^
      symbol:   variable itemId
      location: class ItemClick3
    src\server\model\players\packets\ItemClick3.java:21: error: cannot find symbol
                                    TalismanHandler.handleTalisman(itemId);
                                                                   ^
      symbol:   variable itemId
      location: class ItemClick3
    src\server\model\players\packets\WearItem.java:23: error: cannot find symbol
                                    if (wearId == Pouches.pouchData[i][0]) {
                                        ^
      symbol:   variable wearId
      location: class WearItem
    src\server\model\players\packets\WearItem.java:24: error: cannot find symbol
                                            Pouches.emptyPouch(c, wearId);
                                                                  ^
      symbol:   variable wearId
      location: class WearItem
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    13 errors
    Press any key to continue . . .
    Last edited by Thakiller; 03-05-2015 at 06:11 AM.
    Reply With Quote  
     

  2. #2  
    Registered Member Real Slim's Avatar
    Join Date
    Mar 2013
    Posts
    223
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    bump
    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    Oct 2014
    Posts
    587
    Thanks given
    29
    Thanks received
    76
    Rep Power
    26
    You need to look at other code around yours and then fix the errors. If the compiler doesn't know what 'itemId' is then obviously its called something else in your class.
    Programming service - Fast, Cheap & Quality
    http://www.rune-server.org/black-mar...-services.html

    Project that I am currently working on:
    http://www.rune-server.org/runescape...emon-rsps.html

    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Code:
    import server.model.players.skills.runecrafting.Runecrafting;
                                                   ^
      symbol:   class Runecrafting
      location: package server.model.players.skills.runecrafting
    
    Clearly says to import that......
    Code:
    src\server\model\players\packets\ClickObject.java:24: error: cannot find symbol
                            Runecrafting.craftRunes(client, client.objectId);
    
    Says it does not recognize "client" so change to c, player or w.e your using
    Clearly basic shit, not going to look trough them there probably all easy af anyways
    Reply With Quote  
     

  6. #5  
    Registered Member Real Slim's Avatar
    Join Date
    Mar 2013
    Posts
    223
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    other codes uses itemId too and those codes works idk whats wrong and if i import runecrafting.java it gives me another error...
    Reply With Quote  
     

  7. #6  
    oof


    Join Date
    Aug 2012
    Posts
    3,150
    Thanks given
    2,847
    Thanks received
    857
    Rep Power
    2260
    Make sure your Runecrafting class has the correct packaging
    Reply With Quote  
     

  8. #7  
    Registered Member Real Slim's Avatar
    Join Date
    Mar 2013
    Posts
    223
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Vesia View Post
    Make sure your Runecrafting class has the correct packaging
    Got that fixed now only variables... wearId, itemId but i have no idea what to put there to get it work...
    Reply With Quote  
     

  9. #8  
    oof


    Join Date
    Aug 2012
    Posts
    3,150
    Thanks given
    2,847
    Thanks received
    857
    Rep Power
    2260
    Paste your clickitem class
    Reply With Quote  
     

  10. #9  
    Registered Member Real Slim's Avatar
    Join Date
    Mar 2013
    Posts
    223
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    Code:
    package server.model.players.packets;
    
    import server.model.players.Client;
    import server.model.players.PacketType;
    import server.model.players.skills.Slayer;
    import server.model.players.skills.runecrafting.Pouches;
    import server.model.players.skills.runecrafting.Runecrafting;
    
    
    /**
     * Clicking an item, bury bone, eat food etc
     **/
    public class ClickItem implements PacketType {
    
    	@Override
    	public void processPacket(Client c, int packetType, int packetSize) {
    	for (int i = 0; i < Pouches.pouchData.length; i++) {
    			if (itemId == Pouches.pouchData[i][0]) {
    				Pouches.fillPouch(c, itemId);
    			}
    		}
    		int junk = c.getInStream().readSignedWordBigEndianA();
    		int itemSlot = c.getInStream().readUnsignedWordA();
    		int itemId = c.getInStream().readUnsignedWordBigEndian();
    		if (itemId != c.playerItems[itemSlot] - 1) {
    			return;
    		}
    		if (c.followId > 0 || c.followId2 > 0)
    				c.getPA().resetFollow();	
    				
    		if (itemId >= 5509 && itemId <= 5514) {
    			int pouch = -1;
    			int a = itemId;
    			if (a == 5509)
    				pouch = 0;
    			if (a == 5510)
    				pouch = 1;
    			if (a == 5512)
    				pouch = 2;
    			if (a == 5514)
    				pouch = 3;
    			c.getPA().fillPouch(pouch);
    			return;
    		}
    		if (c.getHerblore().checkGrimy(itemId, 0))
    			c.getHerblore().handleHerbClick(itemId);
    		if (c.getFood().isFood(itemId))
    			c.getFood().eat(itemId,itemSlot);
    		//ScriptManager.callFunc("itemClick_"+itemId, c, itemId, itemSlot);
    		if (c.getPotions().isPotion(itemId))
    			c.getPotions().handlePotion(itemId,itemSlot);
    		if (c.getPrayer().isBone(itemId))
    			c.getPrayer().buryBone(itemId, itemSlot);
    			  if (itemId == 4155) { // Slayer gem
              Slayer.currentTask(c);
    				}
    		if (itemId == 952) {
    			if(c.inArea(3553, 3301, 3561, 3294)) {
    				c.teleTimer = 3;
    				c.newLocation = 1;
    			} else if(c.inArea(3550, 3287, 3557, 3278)) {
    				c.teleTimer = 3;
    				c.newLocation = 2;
    			} else if(c.inArea(3561, 3292, 3568, 3285)) {
    				c.teleTimer = 3;
    				c.newLocation = 3;
    			} else if(c.inArea(3570, 3302, 3579, 3293)) {
    				c.teleTimer = 3;
    				c.newLocation = 4;
    			} else if(c.inArea(3571, 3285, 3582, 3278)) {
    				c.teleTimer = 3;
    				c.newLocation = 5;
    			} else if(c.inArea(3562, 3279, 3569, 3273)) {
    				c.teleTimer = 3;
    				c.newLocation = 6;
    			}
    		}
    	}
    
    }
    Reply With Quote  
     

  11. #10  
    Donator

    Join Date
    Oct 2014
    Posts
    587
    Thanks given
    29
    Thanks received
    76
    Rep Power
    26
    Quote Originally Posted by Real Slim View Post
    -code snip
    C'mon dude.. you should really consider to take a few Java lessons. Your making use of the int itemId before its even declared.

    Also this has been added for a reason:

    Code:
    if (itemId != c.playerItems[itemSlot] - 1) {
    			return;
    		}
    If you add it before that people will be able to click on on items that they dont have.
    Programming service - Fast, Cheap & Quality
    http://www.rune-server.org/black-mar...-services.html

    Project that I am currently working on:
    http://www.rune-server.org/runescape...emon-rsps.html

    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

Similar Threads

  1. [PI] RuneCraft Help 4 errors.
    By runmyrsps in forum Help
    Replies: 2
    Last Post: 12-18-2012, 04:43 AM
  2. (Pi) Client Error
    By FusionFrenzi in forum Help
    Replies: 1
    Last Post: 06-26-2010, 03:11 AM
  3. PI command error
    By Despised Icon in forum Help
    Replies: 2
    Last Post: 06-09-2010, 09:11 PM
  4. Riot/pi clickingInGame error.
    By ICEAuthority in forum Help
    Replies: 2
    Last Post: 05-25-2010, 12:18 PM
  5. Coding runecrafting Error (need help)
    By 420weed420 in forum Help
    Replies: 4
    Last Post: 08-15-2009, 05:28 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
  •