Thread: [bs] Barrows breaking.

Results 1 to 4 of 4
  1. #1 [bs] Barrows breaking. 
    Registered Member

    Join Date
    Sep 2007
    Posts
    585
    Thanks given
    8
    Thanks received
    7
    Rep Power
    98
    well, i've tryed to add barrows breaking with no succes at all

    i use these codes

    Code:
    public int[][] barrowsWeapon = {{4860,4708},{4710,4866},{4712,4872},{4714,4878},{4716,4884},
    	{4720,4896},{4718,4890},{4720,4896},{4722,4902},{4732,4932},{4734,4938},{4736,4944},{4738,4950},
    	{4724,4908},{4726,4914},{4728,4920},{4730,4926},{4745,4956},{4747,4926},{4749,4968},{4751,4994},
    	{4753,4980},{4755,4986},{4757,4992},{4759,4998}};
    Code:
    public void barrowsBreaking() {
    	for(int i2 = 0; i2 < playerEquipment.length; i2++) {
    		for(int i = 0; i < barrowsWeapon.length; i++) {
    			if(playerEquipment[i2] == barrowsWeapon[i][0]) {
    				addItem(barrowsWeapon[0][2], 1);
    			}
    		}
    	}
    }
    also edited Public void DropItem

    Code:
    		public void DropItem() {
    		int ItemId = inStream.readUnsignedWordA();
    		int Unknown = inStream.readUnsignedByte() + inStream.readUnsignedByte();
    		int Slot = inStream.readUnsignedWordA();
    		if (!isUntradable(ItemId)) {
    			if (playerItems[Slot]-1 == ItemId) {
    				for(int i = 0; i < barrowsWeapon.length; i++) {
    					if(ItemId == barrowsWeapon[i][0]) {
    						Server.s.itemHandler.PlayerDropItem(barrowsWeapon[i][1], playerItemsN[Slot], absX, absY, Slot, playerId);
    					}
    				}
    				Server.s.itemHandler.PlayerDropItem(ItemId, playerItemsN[Slot], absX, absY, Slot, playerId);
    			}
    			RemoveAllWindows();
    		} else {
    			DestroyItem = ItemId;
    			changeText126(getItemName(DestroyItem), 14184);
    			frame34(DestroyItem, 14171);
    			CurrentFrame = 14170;
    			sendFrame164(14170);
    		}
    	}
    I dont know what i am doing wrong cuz when i drop em they won't break
    any1 could help me?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2008
    Age
    27
    Posts
    538
    Thanks given
    117
    Thanks received
    42
    Rep Power
    12
    Try dieng with them look if something happens then because i think this is the code from the tutorial or the snippet section
    Reply With Quote  
     

  3. #3  
    Registered Member
    Nando's Avatar
    Join Date
    Feb 2009
    Age
    26
    Posts
    3,518
    Thanks given
    2,437
    Thanks received
    1,107
    Rep Power
    5000
    Code:
    addItem(barrowsWeapon[0][2], 1);
    should be
    Code:
    addItem(barrowsWeapon[0][1], 1);


    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Sep 2007
    Posts
    585
    Thanks given
    8
    Thanks received
    7
    Rep Power
    98
    @Sohail, When i die it does nothing either.

    Quote Originally Posted by Tupac View Post
    Code:
    addItem(barrowsWeapon[0][2], 1);
    should be
    Code:
    addItem(barrowsWeapon[0][1], 1);
    That didn't work. I keep dropping them or dying they won't break

    Any other idea's?
    Last edited by lemby pk; 08-17-2010 at 04:09 PM. Reason: Qoute added
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •