Thread: Moving items in bank Spazz

Results 1 to 5 of 5
  1. #1 Moving items in bank Spazz 
    There's only 1Day2Die
    1Day2Die's Avatar
    Join Date
    Oct 2012
    Posts
    467
    Thanks given
    22
    Thanks received
    33
    Rep Power
    8
    Bassicly, when i try to move items within the banktab, they get moved to locations i did not want. AS banks are essential, i really need a fix for that



    Attached image

    Quote Originally Posted by Charlie' View Post
    ^ to the assholes (...) above that hate on people when they don't know something, remember little kids you once didn't know shit so get off your high horse.
    Reply With Quote  
     

  2. #2  
    Owner of Dawntained

    Mgt Madness's Avatar
    Join Date
    Oct 2011
    Age
    28
    Posts
    3,380
    Thanks given
    1,429
    Thanks received
    958
    Rep Power
    2168
    I also created this bug while changing some variables client sided. Check the mainGameProcessor method in the client class.
    Attached image
    Reply With Quote  
     

  3. #3  
    There's only 1Day2Die
    1Day2Die's Avatar
    Join Date
    Oct 2012
    Posts
    467
    Thanks given
    22
    Thanks received
    33
    Rep Power
    8
    Code:
    	private void mainGameProcessor()
    	{
    		if(anInt1104 > 1)
    			anInt1104--;
    		if(anInt1011 > 0)
    			anInt1011--;
    		if (anInt1500 != 0 || anInt1044 != 0 || anInt1129 != 0) {
    			if (anInt1501 < 100) {
    				anInt1501++;
    				if (anInt1501 == 100) {
    					if (anInt1500 != 0) {
    						inputTaken = true;
    					}
    					if (anInt1044 != 0) {
    					}
    				}
    			}
    		} else if (anInt1501 > 0) {
    			anInt1501--;
    		}
    		for(int j = 0; j < 5; j++)
    			if(!parsePacket())
    				break;
    		if(!loggedIn)
    			return;
    		synchronized(mouseDetection.syncObject) {
    			if(flagged) {
    				if(super.clickMode3 != 0 || mouseDetection.coordsIndex >= 40) {
    					stream.createFrame(45);
    					stream.writeWordBigEndian(0);
    					int j2 = stream.currentOffset;
    					int j3 = 0;
    					for(int j4 = 0; j4 < mouseDetection.coordsIndex; j4++) {
    						if(j2 - stream.currentOffset >= 240)
    							break;
    						j3++;
    						int l4 = mouseDetection.coordsY[j4];
    						if(l4 < 0)
    							l4 = 0;
    						else
    							if(l4 > 502)
    								l4 = 502;
    						int k5 = mouseDetection.coordsX[j4];
    						if(k5 < 0)
    							k5 = 0;
    						else
    							if(k5 > 764)
    								k5 = 764;
    						int i6 = l4 * 765 + k5;
    						if(mouseDetection.coordsY[j4] == -1 && mouseDetection.coordsX[j4] == -1)
    						{
    							k5 = -1;
    							l4 = -1;
    							i6 = 0x7ffff;
    						}
    						if(k5 == anInt1237 && l4 == anInt1238)
    						{
    							if(anInt1022 < 2047)
    								anInt1022++;
    						} else
    						{
    							int j6 = k5 - anInt1237;
    							anInt1237 = k5;
    							int k6 = l4 - anInt1238;
    							anInt1238 = l4;
    							if(anInt1022 < 8 && j6 >= -32 && j6 <= 31 && k6 >= -32 && k6 <= 31)
    							{
    								j6 += 32;
    								k6 += 32;
    								stream.writeWord((anInt1022 << 12) + (j6 << 6) + k6);
    								anInt1022 = 0;
    							} else
    								if(anInt1022 < 8)
    								{
    									stream.writeDWordBigEndian(0x800000 + (anInt1022 << 19) + i6);
    									anInt1022 = 0;
    								} else
    								{
    									stream.writeDWord(0xc0000000 + (anInt1022 << 19) + i6);
    									anInt1022 = 0;
    								}
    						}
    					}
    
    					stream.writeBytes(stream.currentOffset - j2);
    					if(j3 >= mouseDetection.coordsIndex)
    					{
    						mouseDetection.coordsIndex = 0;
    					} else
    					{
    						mouseDetection.coordsIndex -= j3;
    						for(int i5 = 0; i5 < mouseDetection.coordsIndex; i5++)
    						{
    							mouseDetection.coordsX[i5] = mouseDetection.coordsX[i5 + j3];
    							mouseDetection.coordsY[i5] = mouseDetection.coordsY[i5 + j3];
    						}
    
    					}
    				}
    			} else
    			{
    				mouseDetection.coordsIndex = 0;
    			}
    		}
    		if(super.clickMode3 != 0)
    		{
    			long l = (super.aLong29 - aLong1220) / 50L;
    			if(l > 4095L)
    				l = 4095L;
    			aLong1220 = super.aLong29;
    			int k2 = super.saveClickY;
    			if(k2 < 0)
    				k2 = 0;
    			else
    				if(k2 > 502)
    					k2 = 502;
    			int k3 = super.saveClickX;
    			if(k3 < 0)
    				k3 = 0;
    			else
    				if(k3 > 764)
    					k3 = 764;
    			int k4 = k2 * 765 + k3;
    			int j5 = 0;
    			if(super.clickMode3 == 2)
    				j5 = 1;
    			int l5 = (int)l;
    			stream.createFrame(241);
    			stream.writeDWord((l5 << 20) + (j5 << 19) + k4);
    		}
    		if(anInt1016 > 0)
    			anInt1016--;
    		if(super.keyArray[1] == 1 || super.keyArray[2] == 1 || super.keyArray[3] == 1 || super.keyArray[4] == 1)
    			aBoolean1017 = true;
    		if(aBoolean1017 && anInt1016 <= 0)
    		{
    			anInt1016 = 20;
    			aBoolean1017 = false;
    			stream.createFrame(86);
    			stream.writeWord(anInt1184);
    			stream.method432(minimapInt1);
    		}
    		if(super.awtFocus && !aBoolean954)
    		{
    			aBoolean954 = true;
    			stream.createFrame(3);
    			stream.writeWordBigEndian(1);
    		}
    		if(!super.awtFocus && aBoolean954)
    		{
    			aBoolean954 = false;
    			stream.createFrame(3);
    			stream.writeWordBigEndian(0);
    		}
    		loadingStages();
    		method115();
    		method90();
    		anInt1009++;
    		if(anInt1009 > 750)
    			dropClient();
    		method114();
    		method95();
    		method38();
    
    		anInt945++;
    		if(crossType != 0)
    		{
    			crossIndex += 20;
    			if(crossIndex >= 400)
    				crossType = 0;
    		}
    		if(atInventoryInterfaceType != 0)
    		{
    			atInventoryLoopCycle++;
    			if(atInventoryLoopCycle >= 15)
    			{
    				if(atInventoryInterfaceType == 2) {
    				}
    				if(atInventoryInterfaceType == 3)
    					inputTaken = true;
    				atInventoryInterfaceType = 0;
    			}
    		}
    		if(activeInterfaceType != 0)
    		{
    			anInt989++;
    			if(super.mouseX > anInt1087 + 5 || super.mouseX < anInt1087 - 5 || super.mouseY > anInt1088 + 5 || super.mouseY < anInt1088 - 5)
    				aBoolean1242 = true;
    			if(super.clickMode2 == 0)
    			{
    				if(activeInterfaceType == 2) {
    				}
    				if(activeInterfaceType == 3)
    					inputTaken = true;
    				activeInterfaceType = 0;
    				if(aBoolean1242 && anInt989 >= 10)
    				{
    					lastActiveInvInterface = -1;
    				
    					processRightClick();
    					if(anInt1084 == 5382 && super.mouseY >= 40 && super.mouseY <= 77){//check if bank interface
    						if (super.mouseX >= 28 && super.mouseX <= 74){// tab 1
    												System.out.println("here 1"+anInt1084);
    							stream.createFrame(214);
    							stream.method433(5);//5 = maintab
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 75 && super.mouseX <= 121){// tab 1
    							stream.createFrame(214);
    							stream.method433(13);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 122 && super.mouseX <= 168){// tab 2
    							stream.createFrame(214);
    							stream.method433(26);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 169 && super.mouseX <= 215){// tab 3
    							stream.createFrame(214);
    							stream.method433(39);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 216 && super.mouseX <= 262){// tab 4
    							stream.createFrame(214);
    							stream.method433(52);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 263 && super.mouseX <= 309){// tab 5
    							stream.createFrame(214);
    							stream.method433(65);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 310 && super.mouseX <= 356){// tab 6
    							stream.createFrame(214);
    							stream.method433(78);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 357 && super.mouseX <= 403){// tab 7
    							stream.createFrame(214);
    							stream.method433(91);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 404 && super.mouseX <= 450){// tab 8
    							stream.createFrame(214);
    							stream.method433(104);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    					}
    					if (anInt1084 == 5382) {
    						RSInterface class9 = RSInterface.interfaceCache[anInt1084];
    						int j1 = 0;
    						if(anInt913 == 1 && class9.contentType == 206)
    							j1 = 1;
    						if(class9.inventory[mouseInvInterfaceIndex] <= 0)
    							j1 = 0;
    						stream.createFrame(214);
    						stream.method433(anInt1084);
    						stream.method424(j1);
    						stream.method433(anInt1085);
    						stream.method431(mouseInvInterfaceIndex);
    					} else if(lastActiveInvInterface == anInt1084 && mouseInvInterfaceIndex != anInt1085)
    					{
    						RSInterface class9 = RSInterface.interfaceCache[anInt1084];
    						int j1 = 0;
    						if(anInt913 == 1 && class9.contentType == 206)
    							j1 = 1;
    						if(class9.inventory[mouseInvInterfaceIndex] <= 0)
    							j1 = 0;
    						if(class9.deletesTargetSlot)
    						{
    							int l2 = anInt1085;
    							int l3 = mouseInvInterfaceIndex;
    							class9.inventory[l3] = class9.inventory[l2];
    							class9.inventoryValue[l3] = class9.inventoryValue[l2];
    							class9.inventory[l2] = -1;
    							class9.inventoryValue[l2] = 0;
    						} else
    							if(j1 == 1)
    							{
    								int i3 = anInt1085;
    								for(int i4 = mouseInvInterfaceIndex; i3 != i4;)
    									if(i3 > i4)
    									{
    										class9.swapInventoryItems(i3, i3 - 1);
    										i3--;
    									} else
    										if(i3 < i4)
    										{
    											class9.swapInventoryItems(i3, i3 + 1);
    											i3++;
    										}
    
    							} else
    							{
    								class9.swapInventoryItems(anInt1085, mouseInvInterfaceIndex);
    							}
    						stream.createFrame(214);
    						stream.method433(anInt1084);
    						stream.method424(j1);
    						stream.method433(anInt1085);
    						stream.method431(mouseInvInterfaceIndex);
    					}
    				} else
    					if((anInt1253 == 1 || menuHasAddFriend(menuActionRow - 1)) && menuActionRow > 2)
    						determineMenuSize();
    					else
    						if(menuActionRow > 0)
    							doAction(menuActionRow - 1);
    				atInventoryLoopCycle = 10;
    				super.clickMode3 = 0;
    			}
    		}
    		if(WorldController.anInt470 != -1)
    		{
    			int k = WorldController.anInt470;
    			int k1 = WorldController.anInt471;
    			boolean flag = doWalkTo(0, 0, 0, 0, myPlayer.smallY[0], 0, 0, k1, myPlayer.smallX[0], true, k);
    			WorldController.anInt470 = -1;
    			if(flag)
    			{
    				crossX = super.saveClickX;
    				crossY = super.saveClickY;
    				crossType = 1;
    				crossIndex = 0;
    			}
    		}
    		if(super.clickMode3 == 1 && aString844 != null)
    		{
    			aString844 = null;
    			inputTaken = true;
    			super.clickMode3 = 0;
    		}
    		if (!processMenuClick()) {
    			processMainScreenClick();
    			processTabClick();
    			processChatModeClick();
    		}
    		if(super.clickMode2 == 1 || super.clickMode3 == 1)
    			anInt1213++;
    		if (anInt1500 != 0 || anInt1044 != 0 || anInt1129 != 0) {
    			if (anInt1501 < 100) {
    				anInt1501++;
    				if (anInt1501 == 100) {
    					if (anInt1500 != 0) {
    						inputTaken = true;
    					}
    					if (anInt1044 != 0) {
    					}
    				}
    			}
    		} else if (anInt1501 > 0) {
    			anInt1501--;
    		}
    		if(loadingStage == 2)
    			method108();
    		if(loadingStage == 2 && aBoolean1160)
    			calcCameraPos();
    		for(int i1 = 0; i1 < 5; i1++)
    			anIntArray1030[i1]++;
    
    		method73();
    		super.idleTime++;
    		if(super.idleTime > 4500)
    		{
    			anInt1011 = 250;
    			super.idleTime -= 500;
    			stream.createFrame(202);
    		}
    		anInt1010++;
    		if(anInt1010 > 50)
    			stream.createFrame(0);
    		try
    		{
    			if(socketStream != null && stream.currentOffset > 0)
    			{
    				socketStream.queueBytes(stream.currentOffset, stream.buffer);
    				stream.currentOffset = 0;
    				anInt1010 = 0;
    			}
    		} catch(IOException _ex) {
    			dropClient();
    		} catch(Exception exception) {
    			resetLogout();
    		}
    	}
    Quote Originally Posted by Mgt Mad
    ness;4910058
    I also created this bug while changing some variables client sided. Check the mainGameProcessor method in the client class.

    Literally....what?! Help?

    - - - Updated - - -

    After some research i found out it has todo with moveitem.java.

    Here is it. Help pls

    Code:
    package server.model.players.packets;
    
    import server.model.players.Client;
    import server.model.players.PacketType;
    
    /**
     * Move Items
     **/
    public class MoveItems implements PacketType {
    
    	@Override
    	public void processPacket(Client c, int packetType, int packetSize) {
    		int somejunk = c.getInStream().readUnsignedWordA(); //junk
    		int itemFrom =  c.getInStream().readUnsignedWordA();// slot1
    		int itemTo = (c.getInStream().readUnsignedWordA() -128);// slot2
    		if(somejunk == 34176)
    			c.getItems().toTab(0, itemFrom);
    		else if(somejunk == 36224)
    			c.getItems().toTab(1, itemFrom);
    		else if(somejunk == 39552)
    			c.getItems().toTab(2, itemFrom);
    		else if(somejunk == 42880)
    			c.getItems().toTab(3, itemFrom);
    		else if(somejunk == 46208)
    			c.getItems().toTab(4, itemFrom);
    		else if(somejunk == 49536)
    			c.getItems().toTab(5, itemFrom);
    		else if(somejunk == 52864)
    			c.getItems().toTab(6, itemFrom);
    		else if(somejunk == 56192)
    			c.getItems().toTab(7, itemFrom);
    		else if(somejunk == 59520)
    			c.getItems().toTab(8, itemFrom);
    		else if (somejunk != 32668) {
    			c.getItems().moveItems(itemFrom, itemTo, somejunk);
    		}
    
    		if(c.inTrade) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.tradeStatus == 1) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.duelStatus == 1) {
    			c.getTradeAndDuel().declineDuel(true);
    			return;
    		}
    	}
    }
    - - - Updated - - -

    Update:

    Apparently moving items within the first row works flawless but as soon as it comes to cross rows its spazzing!


    Also moving items form other rows in the first row works. But not the other way around
    Attached image

    Quote Originally Posted by Charlie' View Post
    ^ to the assholes (...) above that hate on people when they don't know something, remember little kids you once didn't know shit so get off your high horse.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    May 2012
    Posts
    445
    Thanks given
    31
    Thanks received
    19
    Rep Power
    48
    Quote Originally Posted by 1Day2Die View Post
    Code:
    	private void mainGameProcessor()
    	{
    		if(anInt1104 > 1)
    			anInt1104--;
    		if(anInt1011 > 0)
    			anInt1011--;
    		if (anInt1500 != 0 || anInt1044 != 0 || anInt1129 != 0) {
    			if (anInt1501 < 100) {
    				anInt1501++;
    				if (anInt1501 == 100) {
    					if (anInt1500 != 0) {
    						inputTaken = true;
    					}
    					if (anInt1044 != 0) {
    					}
    				}
    			}
    		} else if (anInt1501 > 0) {
    			anInt1501--;
    		}
    		for(int j = 0; j < 5; j++)
    			if(!parsePacket())
    				break;
    		if(!loggedIn)
    			return;
    		synchronized(mouseDetection.syncObject) {
    			if(flagged) {
    				if(super.clickMode3 != 0 || mouseDetection.coordsIndex >= 40) {
    					stream.createFrame(45);
    					stream.writeWordBigEndian(0);
    					int j2 = stream.currentOffset;
    					int j3 = 0;
    					for(int j4 = 0; j4 < mouseDetection.coordsIndex; j4++) {
    						if(j2 - stream.currentOffset >= 240)
    							break;
    						j3++;
    						int l4 = mouseDetection.coordsY[j4];
    						if(l4 < 0)
    							l4 = 0;
    						else
    							if(l4 > 502)
    								l4 = 502;
    						int k5 = mouseDetection.coordsX[j4];
    						if(k5 < 0)
    							k5 = 0;
    						else
    							if(k5 > 764)
    								k5 = 764;
    						int i6 = l4 * 765 + k5;
    						if(mouseDetection.coordsY[j4] == -1 && mouseDetection.coordsX[j4] == -1)
    						{
    							k5 = -1;
    							l4 = -1;
    							i6 = 0x7ffff;
    						}
    						if(k5 == anInt1237 && l4 == anInt1238)
    						{
    							if(anInt1022 < 2047)
    								anInt1022++;
    						} else
    						{
    							int j6 = k5 - anInt1237;
    							anInt1237 = k5;
    							int k6 = l4 - anInt1238;
    							anInt1238 = l4;
    							if(anInt1022 < 8 && j6 >= -32 && j6 <= 31 && k6 >= -32 && k6 <= 31)
    							{
    								j6 += 32;
    								k6 += 32;
    								stream.writeWord((anInt1022 << 12) + (j6 << 6) + k6);
    								anInt1022 = 0;
    							} else
    								if(anInt1022 < 8)
    								{
    									stream.writeDWordBigEndian(0x800000 + (anInt1022 << 19) + i6);
    									anInt1022 = 0;
    								} else
    								{
    									stream.writeDWord(0xc0000000 + (anInt1022 << 19) + i6);
    									anInt1022 = 0;
    								}
    						}
    					}
    
    					stream.writeBytes(stream.currentOffset - j2);
    					if(j3 >= mouseDetection.coordsIndex)
    					{
    						mouseDetection.coordsIndex = 0;
    					} else
    					{
    						mouseDetection.coordsIndex -= j3;
    						for(int i5 = 0; i5 < mouseDetection.coordsIndex; i5++)
    						{
    							mouseDetection.coordsX[i5] = mouseDetection.coordsX[i5 + j3];
    							mouseDetection.coordsY[i5] = mouseDetection.coordsY[i5 + j3];
    						}
    
    					}
    				}
    			} else
    			{
    				mouseDetection.coordsIndex = 0;
    			}
    		}
    		if(super.clickMode3 != 0)
    		{
    			long l = (super.aLong29 - aLong1220) / 50L;
    			if(l > 4095L)
    				l = 4095L;
    			aLong1220 = super.aLong29;
    			int k2 = super.saveClickY;
    			if(k2 < 0)
    				k2 = 0;
    			else
    				if(k2 > 502)
    					k2 = 502;
    			int k3 = super.saveClickX;
    			if(k3 < 0)
    				k3 = 0;
    			else
    				if(k3 > 764)
    					k3 = 764;
    			int k4 = k2 * 765 + k3;
    			int j5 = 0;
    			if(super.clickMode3 == 2)
    				j5 = 1;
    			int l5 = (int)l;
    			stream.createFrame(241);
    			stream.writeDWord((l5 << 20) + (j5 << 19) + k4);
    		}
    		if(anInt1016 > 0)
    			anInt1016--;
    		if(super.keyArray[1] == 1 || super.keyArray[2] == 1 || super.keyArray[3] == 1 || super.keyArray[4] == 1)
    			aBoolean1017 = true;
    		if(aBoolean1017 && anInt1016 <= 0)
    		{
    			anInt1016 = 20;
    			aBoolean1017 = false;
    			stream.createFrame(86);
    			stream.writeWord(anInt1184);
    			stream.method432(minimapInt1);
    		}
    		if(super.awtFocus && !aBoolean954)
    		{
    			aBoolean954 = true;
    			stream.createFrame(3);
    			stream.writeWordBigEndian(1);
    		}
    		if(!super.awtFocus && aBoolean954)
    		{
    			aBoolean954 = false;
    			stream.createFrame(3);
    			stream.writeWordBigEndian(0);
    		}
    		loadingStages();
    		method115();
    		method90();
    		anInt1009++;
    		if(anInt1009 > 750)
    			dropClient();
    		method114();
    		method95();
    		method38();
    
    		anInt945++;
    		if(crossType != 0)
    		{
    			crossIndex += 20;
    			if(crossIndex >= 400)
    				crossType = 0;
    		}
    		if(atInventoryInterfaceType != 0)
    		{
    			atInventoryLoopCycle++;
    			if(atInventoryLoopCycle >= 15)
    			{
    				if(atInventoryInterfaceType == 2) {
    				}
    				if(atInventoryInterfaceType == 3)
    					inputTaken = true;
    				atInventoryInterfaceType = 0;
    			}
    		}
    		if(activeInterfaceType != 0)
    		{
    			anInt989++;
    			if(super.mouseX > anInt1087 + 5 || super.mouseX < anInt1087 - 5 || super.mouseY > anInt1088 + 5 || super.mouseY < anInt1088 - 5)
    				aBoolean1242 = true;
    			if(super.clickMode2 == 0)
    			{
    				if(activeInterfaceType == 2) {
    				}
    				if(activeInterfaceType == 3)
    					inputTaken = true;
    				activeInterfaceType = 0;
    				if(aBoolean1242 && anInt989 >= 10)
    				{
    					lastActiveInvInterface = -1;
    				
    					processRightClick();
    					if(anInt1084 == 5382 && super.mouseY >= 40 && super.mouseY <= 77){//check if bank interface
    						if (super.mouseX >= 28 && super.mouseX <= 74){// tab 1
    												System.out.println("here 1"+anInt1084);
    							stream.createFrame(214);
    							stream.method433(5);//5 = maintab
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 75 && super.mouseX <= 121){// tab 1
    							stream.createFrame(214);
    							stream.method433(13);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 122 && super.mouseX <= 168){// tab 2
    							stream.createFrame(214);
    							stream.method433(26);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 169 && super.mouseX <= 215){// tab 3
    							stream.createFrame(214);
    							stream.method433(39);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 216 && super.mouseX <= 262){// tab 4
    							stream.createFrame(214);
    							stream.method433(52);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 263 && super.mouseX <= 309){// tab 5
    							stream.createFrame(214);
    							stream.method433(65);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 310 && super.mouseX <= 356){// tab 6
    							stream.createFrame(214);
    							stream.method433(78);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 357 && super.mouseX <= 403){// tab 7
    							stream.createFrame(214);
    							stream.method433(91);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    						if (super.mouseX >= 404 && super.mouseX <= 450){// tab 8
    							stream.createFrame(214);
    							stream.method433(104);//tab # x 13 (originally movewindow)
    							stream.method424(0);
    							stream.method433(anInt1085);//Selected item slot
    							stream.method431(mouseInvInterfaceIndex);//unused
    
    						}
    					}
    					if (anInt1084 == 5382) {
    						RSInterface class9 = RSInterface.interfaceCache[anInt1084];
    						int j1 = 0;
    						if(anInt913 == 1 && class9.contentType == 206)
    							j1 = 1;
    						if(class9.inventory[mouseInvInterfaceIndex] <= 0)
    							j1 = 0;
    						stream.createFrame(214);
    						stream.method433(anInt1084);
    						stream.method424(j1);
    						stream.method433(anInt1085);
    						stream.method431(mouseInvInterfaceIndex);
    					} else if(lastActiveInvInterface == anInt1084 && mouseInvInterfaceIndex != anInt1085)
    					{
    						RSInterface class9 = RSInterface.interfaceCache[anInt1084];
    						int j1 = 0;
    						if(anInt913 == 1 && class9.contentType == 206)
    							j1 = 1;
    						if(class9.inventory[mouseInvInterfaceIndex] <= 0)
    							j1 = 0;
    						if(class9.deletesTargetSlot)
    						{
    							int l2 = anInt1085;
    							int l3 = mouseInvInterfaceIndex;
    							class9.inventory[l3] = class9.inventory[l2];
    							class9.inventoryValue[l3] = class9.inventoryValue[l2];
    							class9.inventory[l2] = -1;
    							class9.inventoryValue[l2] = 0;
    						} else
    							if(j1 == 1)
    							{
    								int i3 = anInt1085;
    								for(int i4 = mouseInvInterfaceIndex; i3 != i4;)
    									if(i3 > i4)
    									{
    										class9.swapInventoryItems(i3, i3 - 1);
    										i3--;
    									} else
    										if(i3 < i4)
    										{
    											class9.swapInventoryItems(i3, i3 + 1);
    											i3++;
    										}
    
    							} else
    							{
    								class9.swapInventoryItems(anInt1085, mouseInvInterfaceIndex);
    							}
    						stream.createFrame(214);
    						stream.method433(anInt1084);
    						stream.method424(j1);
    						stream.method433(anInt1085);
    						stream.method431(mouseInvInterfaceIndex);
    					}
    				} else
    					if((anInt1253 == 1 || menuHasAddFriend(menuActionRow - 1)) && menuActionRow > 2)
    						determineMenuSize();
    					else
    						if(menuActionRow > 0)
    							doAction(menuActionRow - 1);
    				atInventoryLoopCycle = 10;
    				super.clickMode3 = 0;
    			}
    		}
    		if(WorldController.anInt470 != -1)
    		{
    			int k = WorldController.anInt470;
    			int k1 = WorldController.anInt471;
    			boolean flag = doWalkTo(0, 0, 0, 0, myPlayer.smallY[0], 0, 0, k1, myPlayer.smallX[0], true, k);
    			WorldController.anInt470 = -1;
    			if(flag)
    			{
    				crossX = super.saveClickX;
    				crossY = super.saveClickY;
    				crossType = 1;
    				crossIndex = 0;
    			}
    		}
    		if(super.clickMode3 == 1 && aString844 != null)
    		{
    			aString844 = null;
    			inputTaken = true;
    			super.clickMode3 = 0;
    		}
    		if (!processMenuClick()) {
    			processMainScreenClick();
    			processTabClick();
    			processChatModeClick();
    		}
    		if(super.clickMode2 == 1 || super.clickMode3 == 1)
    			anInt1213++;
    		if (anInt1500 != 0 || anInt1044 != 0 || anInt1129 != 0) {
    			if (anInt1501 < 100) {
    				anInt1501++;
    				if (anInt1501 == 100) {
    					if (anInt1500 != 0) {
    						inputTaken = true;
    					}
    					if (anInt1044 != 0) {
    					}
    				}
    			}
    		} else if (anInt1501 > 0) {
    			anInt1501--;
    		}
    		if(loadingStage == 2)
    			method108();
    		if(loadingStage == 2 && aBoolean1160)
    			calcCameraPos();
    		for(int i1 = 0; i1 < 5; i1++)
    			anIntArray1030[i1]++;
    
    		method73();
    		super.idleTime++;
    		if(super.idleTime > 4500)
    		{
    			anInt1011 = 250;
    			super.idleTime -= 500;
    			stream.createFrame(202);
    		}
    		anInt1010++;
    		if(anInt1010 > 50)
    			stream.createFrame(0);
    		try
    		{
    			if(socketStream != null && stream.currentOffset > 0)
    			{
    				socketStream.queueBytes(stream.currentOffset, stream.buffer);
    				stream.currentOffset = 0;
    				anInt1010 = 0;
    			}
    		} catch(IOException _ex) {
    			dropClient();
    		} catch(Exception exception) {
    			resetLogout();
    		}
    	}


    Literally....what?! Help?

    - - - Updated - - -

    After some research i found out it has todo with moveitem.java.

    Here is it. Help pls

    Code:
    package server.model.players.packets;
    
    import server.model.players.Client;
    import server.model.players.PacketType;
    
    /**
     * Move Items
     **/
    public class MoveItems implements PacketType {
    
    	@Override
    	public void processPacket(Client c, int packetType, int packetSize) {
    		int somejunk = c.getInStream().readUnsignedWordA(); //junk
    		int itemFrom =  c.getInStream().readUnsignedWordA();// slot1
    		int itemTo = (c.getInStream().readUnsignedWordA() -128);// slot2
    		if(somejunk == 34176)
    			c.getItems().toTab(0, itemFrom);
    		else if(somejunk == 36224)
    			c.getItems().toTab(1, itemFrom);
    		else if(somejunk == 39552)
    			c.getItems().toTab(2, itemFrom);
    		else if(somejunk == 42880)
    			c.getItems().toTab(3, itemFrom);
    		else if(somejunk == 46208)
    			c.getItems().toTab(4, itemFrom);
    		else if(somejunk == 49536)
    			c.getItems().toTab(5, itemFrom);
    		else if(somejunk == 52864)
    			c.getItems().toTab(6, itemFrom);
    		else if(somejunk == 56192)
    			c.getItems().toTab(7, itemFrom);
    		else if(somejunk == 59520)
    			c.getItems().toTab(8, itemFrom);
    		else if (somejunk != 32668) {
    			c.getItems().moveItems(itemFrom, itemTo, somejunk);
    		}
    
    		if(c.inTrade) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.tradeStatus == 1) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.duelStatus == 1) {
    			c.getTradeAndDuel().declineDuel(true);
    			return;
    		}
    	}
    }
    - - - Updated - - -

    Update:

    Apparently moving items within the first row works flawless but as soon as it comes to cross rows its spazzing!


    Also moving items form other rows in the first row works. But not the other way around
    Try that:
    Code:
    package server.model.players.packets;
    
    import server.model.players.Client;
    import server.model.players.PacketType;
    
    /**
     * Move Items
     **/
    public class MoveItems implements PacketType {
    
    	@Override
    	public void processPacket(Client c, int packetType, int packetSize) {
    		int somejunk = c.getInStream().readUnsignedWordA(); //junk
    		int itemFrom =  c.getInStream().readUnsignedWordA();// slot1
    		int itemTo = (c.getInStream().readUnsignedWordA() -128);// slot2
    		if(somejunk == 34176)
    			c.getItems().toTab(0, itemFrom);
    		else if(somejunk == 36224)
    			c.getItems().toTab(1, itemFrom);
    		else if(somejunk == 39552)
    			c.getItems().toTab(2, itemFrom);
    		else if(somejunk == 42880)
    			c.getItems().toTab(3, itemFrom);
    		else if(somejunk == 46208)
    			c.getItems().toTab(4, itemFrom);
    		else if(somejunk == 49536)
    			c.getItems().toTab(5, itemFrom);
    		else if(somejunk == 52864)
    			c.getItems().toTab(6, itemFrom);
    		else if(somejunk == 56192)
    			c.getItems().toTab(7, itemFrom);
    		else if(somejunk == 59520)
    			c.getItems().toTab(8, itemFrom);
    		else {
    			c.getItems().moveItems(itemFrom, itemTo, somejunk);
                    }
    
    		if(c.inTrade) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.tradeStatus == 1) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.duelStatus == 1) {
    			c.getTradeAndDuel().declineDuel(true);
    			return;
    		}
    	}
    }
    Reply With Quote  
     

  5. #5  
    There's only 1Day2Die
    1Day2Die's Avatar
    Join Date
    Oct 2012
    Posts
    467
    Thanks given
    22
    Thanks received
    33
    Rep Power
    8
    Quote Originally Posted by No1killme View Post
    Try that:
    Code:
    package server.model.players.packets;
    
    import server.model.players.Client;
    import server.model.players.PacketType;
    
    /**
     * Move Items
     **/
    public class MoveItems implements PacketType {
    
    	@Override
    	public void processPacket(Client c, int packetType, int packetSize) {
    		int somejunk = c.getInStream().readUnsignedWordA(); //junk
    		int itemFrom =  c.getInStream().readUnsignedWordA();// slot1
    		int itemTo = (c.getInStream().readUnsignedWordA() -128);// slot2
    		if(somejunk == 34176)
    			c.getItems().toTab(0, itemFrom);
    		else if(somejunk == 36224)
    			c.getItems().toTab(1, itemFrom);
    		else if(somejunk == 39552)
    			c.getItems().toTab(2, itemFrom);
    		else if(somejunk == 42880)
    			c.getItems().toTab(3, itemFrom);
    		else if(somejunk == 46208)
    			c.getItems().toTab(4, itemFrom);
    		else if(somejunk == 49536)
    			c.getItems().toTab(5, itemFrom);
    		else if(somejunk == 52864)
    			c.getItems().toTab(6, itemFrom);
    		else if(somejunk == 56192)
    			c.getItems().toTab(7, itemFrom);
    		else if(somejunk == 59520)
    			c.getItems().toTab(8, itemFrom);
    		else {
    			c.getItems().moveItems(itemFrom, itemTo, somejunk);
                    }
    
    		if(c.inTrade) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.tradeStatus == 1) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.duelStatus == 1) {
    			c.getTradeAndDuel().declineDuel(true);
    			return;
    		}
    	}
    }
    Nope :L
    Attached image

    Quote Originally Posted by Charlie' View Post
    ^ to the assholes (...) above that hate on people when they don't know something, remember little kids you once didn't know shit so get off your high horse.
    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. Moving Items in the Inventory
    By Defiled-X in forum Help
    Replies: 3
    Last Post: 04-20-2011, 11:04 PM
  2. Replies: 4
    Last Post: 10-03-2010, 12:54 AM
  3. Bank - Items in bank [Interface add on]
    By Dexter Morgan in forum Snippets
    Replies: 21
    Last Post: 11-17-2009, 06:35 PM
  4. max items in bank
    By wildjjbug in forum Help
    Replies: 2
    Last Post: 11-25-2008, 02:33 AM
  5. Has item in bank
    By Stanyer in forum Tutorials
    Replies: 14
    Last Post: 04-13-2008, 11:15 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
  •