Thread: Client sided object loading with arrays.

Results 1 to 4 of 4
  1. #1 Client sided object loading with arrays. 
    Registered Member
    Eternal Darknes's Avatar
    Join Date
    Jul 2007
    Age
    27
    Posts
    384
    Thanks given
    0
    Thanks received
    0
    Rep Power
    95
    Umm here it is...

    Code:
    public int[][] objInfo = {1,1,1,0,10,1},
    							 {2,2,1,0,10,1};
    	public void loadObjs(){
    	for(int k12 = 0; k12 < anIntArray1234.length; k12++)
    	int mid = anIntArray1235[k12];
    
    		for(int i = 0; i < x.length; i++){
    			int mapRegionX = (objinfo[i][0] >> 3) - 6;
    			int mapRegionY = (objinfo[i][1] >> 3) - 6;
    			int convertcoordx = (objinfo[i][0] - (mapRegionX * 8));
    			int convertcoordy = (objinfo[i][1] - (mapRegionY * 8));
    			int l10 = convertcoordx + (0 >> 4 & 7);
    			int i13 = convertcoordy + (0 & 7);
    			
    			if(mid == objinfo[i][5]){
    				method130(404, -1, objinfo[i][1], objinfo[i][3], 2, i13, objinfo[i][4], 0,l10, 0);
    			}
    		}
    	}
    call it some where in here...
    Code:
    if(packetIn == 73)
    				{
    					int k16 = 0;
    					for(int i21 = (anInt1069 - 6) / 8; i21 <= (anInt1069 + 6) / 8; i21++)
    					{
    						for(int k23 = (anInt1070 - 6) / 8; k23 <= (anInt1070 + 6) / 8; k23++)
    						k16++;
    
    					}
    
    					aByteArrayArray1183 = new byte[k16][];
    					aByteArrayArray1247 = new byte[k16][];
    					anIntArray1234 = new int[k16];
    					anIntArray1235 = new int[k16];
    					anIntArray1236 = new int[k16];
    					k16 = 0;
    					for(int l23 = (anInt1069 - 6) / 8; l23 <= (anInt1069 + 6) / 8; l23++)
    					{
    						for(int j26 = (anInt1070 - 6) / 8; j26 <= (anInt1070 + 6) / 8; j26++)
    						{
    							anIntArray1234[k16] = (l23 << 8) + j26;
    							if(aBoolean1141 && (j26 == 49 || j26 == 149 || j26 == 147 || l23 == 50 || l23 == 49 && j26 == 47))
    							{
    								anIntArray1235[k16] = -1;
    								anIntArray1236[k16] = -1;
    								k16++;
    							} else
    							{
    								int k28 = anIntArray1235[k16] = aClass42_Sub1_1068.method562(0, 0, j26, l23);
    								if(k28 != -1)
    								aClass42_Sub1_1068.method558(3, k28);
    								int j30 = anIntArray1236[k16] = aClass42_Sub1_1068.method562(1, 0, j26, l23);
    								if(j30 != -1)
    								aClass42_Sub1_1068.method558(3, j30);
    								k16++;
    							}
    						}
    
    					}
    
    				}

    Tell me if it works, thanks. if It doesn't I will fix it.
    [Only registered and activated users can see links. ]

    Not allowed
    Reply With Quote  
     

  2. #2  
    Registered Member
    Homie Pimpson's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    982
    Thanks given
    280
    Thanks received
    124
    Rep Power
    175
    Cool, thanks I can't understand it tho.
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Jun 2007
    Age
    26
    Posts
    3,007
    Thanks given
    52
    Thanks received
    98
    Rep Power
    3208
    Should be in snippets, good job anyway.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Eternal Darknes's Avatar
    Join Date
    Jul 2007
    Age
    27
    Posts
    384
    Thanks given
    0
    Thanks received
    0
    Rep Power
    95
    1,2,3,4,5,6
    1 = x
    2 = y
    3 = ID
    4 = face
    5 = 0 for tilted like in rangers guild 10 for reg
    6 = map ID
    Umm you need to make a command to get the map ID or make it write out every time it loads.
    [Only registered and activated users can see links. ]

    Not allowed
    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
  •