Thread: WOW!?, what's this..?

Results 1 to 9 of 9
  1. #1 WOW!?, what's this..? 
    Registered Member Tyga's Avatar
    Join Date
    Jan 2012
    Posts
    46
    Thanks given
    27
    Thanks received
    5
    Rep Power
    0
    Sorry about that title, it was just to get your attention.

    ummmm, i understand this error, but it's confusing.
    could anyone help me on this?.
    Error:Screenshot by Lightshot

    Code:
    Code:
    case 48214:
    					for (int j = 0; j < c.playerEquipment.length; j++) {
    			}
    			int itemsToAdd[] = { 15442, 20072, 5698, 6570, 4736, 4751, 4749, 11732};
    				for (int i = 0; i < itemsToAdd.length; i++) {
    				c.getItems().addItem(itemsToAdd[i], 1);
    			}
    			int[] equip = { 12681, 2412, 6585, 6914, 4712, 6889, -1, 4714, -1, 7462, 6920, -1, 6737, -1 };
    			for (int i = 0; i < equip.length; i++) {
    				c.playerEquipment[i] = equip[i];
    				c.playerEquipmentN[i] = 1;
    				c.getItems().setEquipment(equip[i], 1, i);
    			}
    				c.getItems().addItem(15272, 7);
    				c.getItems().addItem(565, 4000);
    				c.getItems().addItem(3024, 3);
    				c.getItems().addItem(6685, 2);
    				c.getItems().addItem(2436, 1);
    				c.getItems().addItem(3040, 1);
    				c.getItems().addItem(2440, 1);
    				c.getItems().addItem(555, 12000);
    				c.getItems().addItem(560, 8008);
    				c.playerMagicBook = 1;
    				c.getItems().resetItems(3214);
    				c.getItems().resetBonus();
    				c.getItems().getBonus();
    				c.getItems().writeBonus();
    				c.updateRequired = true;
    				c.update();
    							
    			c.getPA().removeAllWindows();
    			break;
    			case 48217:
    			for (int j = 0; j < c.playerEquipment.length; j++) {
    			}
    			int[] equip = { 12681, 10499, 6585, 9185, 4736, 1187, -1, 4738, -1, 7462, 11732, -1, 6733, -1 };
    			for (int i = 0; i < equip.length; i++) {
    				c.playerEquipment[i] = equip[i];
    				c.playerEquipmentN[i] = 1;
    				c.getItems().setEquipment(equip[i], 1, i);
    			}
    				c.getItems().addItem(15272, 7);
    				c.getItems().addItem(3024, 3);
    				c.getItems().addItem(6685, 2);
    				c.getItems().addItem(2436, 1);
    				c.getItems().addItem(3040, 1);
    				c.getItems().addItem(2440, 1);
    				c.getItems().addItem(9244,1000);
    				c.playerMagicBook = 2;
    				c.getItems().resetItems(3214);
    				c.getItems().resetBonus();
    				c.getItems().getBonus();
    				c.getItems().writeBonus();
    				c.updateRequired = true;
    				c.update();
    				c.sendMessage("@red@You have choosen the @blu@Range@red@ set, Enjoy!");
    				c.getPA().removeAllWindows();
    			break;
    			
    			case 48220:
    				for (int j = 0; j < c.playerEquipment.length; j++) {
    			}
    			int itemsToAdd[] = {5698};
    				for (int i = 0; i < itemsToAdd.length; i++) {
    				c.getItems().addItem(itemsToAdd[i], 1);
    			}
    			int[] equip = { 12681, 6570, 6585, 4151, 4720, 20072, -1, 4722, -1, 7462, 11732, -1, 6737, -1 };
    			for (int i = 0; i < equip.length; i++) {
    				c.playerEquipment[i] = equip[i];
    				c.playerEquipmentN[i] = 1;
    				c.getItems().setEquipment(equip[i], 1, i);
    			}
    				c.getItems().addItem(15272, 15);
    				c.getItems().addItem(560, 2000);
    				c.getItems().addItem(3024, 3);
    				c.getItems().addItem(6685, 2);
    				c.getItems().addItem(2436, 1);
    				c.getItems().addItem(2440, 1);
    				c.getItems().addItem(557, 10000);
    				c.getItems().addItem(9075, 8000);
    				c.playerMagicBook = 2;
    				c.getItems().resetItems(3214);
    				c.getItems().resetBonus();
    				c.getItems().getBonus();
    				c.getItems().writeBonus();
    				c.updateRequired = true;
    				c.update();
    				
    			c.getPA().removeAllWindows();
    				c.sendMessage("@red@You have choosen the @blu@Melee@red@ set, Enjoy!");
    				break;
    			case 12135:

    “You can tell more about a person by what they say about others than you can by what others say about them.”
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jun 2012
    Posts
    16
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    its already in use by the looks of things
    Reply With Quote  
     

  3. #3  
    Registered Member Tyga's Avatar
    Join Date
    Jan 2012
    Posts
    46
    Thanks given
    27
    Thanks received
    5
    Rep Power
    0
    Quote Originally Posted by Prometheus_ View Post
    its already in use by the looks of things
    yea, i know.. but you see in each case there are different item id's.. if it's already defined, and i remove it from both other cases, it's not gonna equip the items in those that were removed.. i'm confused af..

    “You can tell more about a person by what they say about others than you can by what others say about them.”
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Feb 2010
    Age
    30
    Posts
    553
    Thanks given
    144
    Thanks received
    2,147,483,647
    Rep Power
    0
    Try n remove the number it's telling you to in the error Mite work :/
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jan 2011
    Posts
    993
    Thanks given
    319
    Thanks received
    228
    Rep Power
    0
    Now that you got my attention, I'll close the tab and go back to normal.
    Reply With Quote  
     

  6. #6  
    Registered Member Tyga's Avatar
    Join Date
    Jan 2012
    Posts
    46
    Thanks given
    27
    Thanks received
    5
    Rep Power
    0
    it's not the number.. it clearly says
    Code:
    Variable _____ is already defined in method processPacket(Client,int,int)

    “You can tell more about a person by what they say about others than you can by what others say about them.”
    Reply With Quote  
     

  7. #7  
    Registered Member Tyga's Avatar
    Join Date
    Jan 2012
    Posts
    46
    Thanks given
    27
    Thanks received
    5
    Rep Power
    0
    Quote Originally Posted by Ex™ View Post
    Now that you got my attention, I'll close the tab and go back to normal.
    wait..., hold on you're alllllllllllmost funny..
    but thanks for the bump mate.

    “You can tell more about a person by what they say about others than you can by what others say about them.”
    Reply With Quote  
     

  8. #8  
    Registered Member Kovu's Avatar
    Join Date
    May 2011
    Posts
    80
    Thanks given
    11
    Thanks received
    14
    Rep Power
    23
    define it as something else other than what you currently are if you can't remove it from the other functions.
    Reply With Quote  
     

  9. #9  
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,434
    Thanks given
    715
    Thanks received
    1,435
    Rep Power
    1202
    Just change the names. You can't name things the same, regardless of if they're in the same case. As long as they're in the same method, you can't use the same names more than once.
    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. [WoW] Lvl 85 Hunter [/WoW]
    By EndlessZombies in forum Price Check
    Replies: 2
    Last Post: 01-14-2012, 08:36 AM
  2. Replies: 42
    Last Post: 12-07-2010, 01:43 AM
  3. Bow Chika Wow Wow Skin
    By Guthan in forum Graphics
    Replies: 17
    Last Post: 02-07-2008, 07:24 PM
  4. [Wow] Pics of my Client [/Wow]
    By -Divinity in forum RS2 Client
    Replies: 9
    Last Post: 05-21-2007, 08:27 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
  •