Thread: player updating help

Results 1 to 5 of 5
  1. #1 player updating help 
    destiny+
    Guest
    well i am trying to get player updating but when i loginto my server i tun into a npc
    if u could help that would be great
    if u need any other class's or w/e just post
    clientsided code for render
    Code:
    public void method467(Class142_Sub15 class142_sub15, int i) {
    	anInt3799++;
    	class142_sub15.anInt3454 = 0;
    	int i_48_ = class142_sub15.method1561(-16505);
    	int[] is = new int[12];
    	boolean bool = (i_48_ & 0x4 ^ 0xffffffff) != -1;
    	int i_49_ = -1;
    	int i_50_ = i_48_ & 0x1;
    	int i_51_ = super.method453(0);
    	this.method451(-19753, 1 + ((i_48_ & 0x3e) >> -1618764061));
    	aByte3778 = (byte) (0x3 & i_48_ >> 1610799494);
    	anInt2856 += 64 * (-i_51_ + method453(0));
    	anInt2949 += (method453(0) + -i_51_) * 64;
    	anInt3785 = class142_sub15.method1530((byte) 26);
    	anInt3771 = class142_sub15.method1530((byte) 26);
    	anInt3787 = 0;
    	for (int i_52_ = 0; i_52_ < 12; i_52_++) {
    	    int i_53_ = class142_sub15.method1561(-16505);
    	    if ((i_53_ ^ 0xffffffff) == -1)
    		is[i_52_] = 0;
    	    else {
    		int i_54_ = class142_sub15.method1561(-16505);
    		int i_55_ = (i_53_ << -1735458488) + i_54_;
    		if (i_52_ == 0 && (i_55_ ^ 0xffffffff) == -65536) {
    		    i_49_ = class142_sub15.method1526(-41);
    		    anInt3787 = class142_sub15.method1561(-16505);
    		    break;
    		}
    		if (i_55_ >= 32768) {
    		    i_55_ = Class142_Sub1.anIntArray3207[i_55_ + -32768];
    		    is[i_52_]
    			= Class142_Sub8_Sub37.method1471(1073741824, i_55_);
    		    int i_56_
    			= Class39_Sub3_Sub2.method469(i_55_, 27838).anInt2154;
    		    if ((i_56_ ^ 0xffffffff) != -1)
    			anInt3787 = i_56_;
    		} else
    		    is[i_52_] = Class142_Sub8_Sub37.method1471(-256 + i_55_,
    							       -2147483648);
    	    }
    	}
    	if (i < -109) {
    	    int[] is_57_ = new int[5];
    	    for (int i_58_ = 0; (i_58_ ^ 0xffffffff) > -6; i_58_++) {
    		int i_59_ = class142_sub15.method1561(-16505);
    		if (i_59_ < 0 || (Class105.aShortArrayArray1730[i_58_].length
    				  ^ 0xffffffff) >= (i_59_ ^ 0xffffffff))
    		    i_59_ = 0;
    		is_57_[i_58_] = i_59_;
    	    }
    	    anInt2919 = class142_sub15.method1526(-45);
    	    long l = class142_sub15.method1566(22726);
    	    aString3798 = Class142_Sub8_Sub21.method1398(49, l);
    	    anInt3797 = class142_sub15.method1561(-16505);
    	    if (bool) {
    		anInt3790 = class142_sub15.method1526(-128);
    		anInt3777 = -1;
    		anInt3800 = anInt3797;
    	    } else {
    		anInt3790 = 0;
    		anInt3800 = class142_sub15.method1561(-16505);
    		anInt3777 = class142_sub15.method1561(-16505);
    		if (anInt3777 == 255)
    		    anInt3777 = -1;
    	    }
    	    int i_60_ = anInt3775;
    	    anInt3775 = class142_sub15.method1561(-16505);
    	    if ((anInt3775 ^ 0xffffffff) == -1)
    		Class56.method661(this, 1);
    	    else {
    		int i_61_ = anInt3772;
    		int i_62_ = anInt3801;
    		int i_63_ = anInt3769;
    		int i_64_ = anInt3776;
    		int i_65_ = anInt3793;
    		anInt3772 = class142_sub15.method1526(-35);
    		anInt3801 = class142_sub15.method1526(-24);
    		anInt3793 = class142_sub15.method1526(-63);
    		anInt3769 = class142_sub15.method1526(-118);
    		anInt3776 = class142_sub15.method1561(-16505);
    		if (anInt3775 != i_60_
    		    || (i_61_ ^ 0xffffffff) != (anInt3772 ^ 0xffffffff)
    		    || (i_62_ ^ 0xffffffff) != (anInt3801 ^ 0xffffffff)
    		    || anInt3793 != i_65_
    		    || (anInt3769 ^ 0xffffffff) != (i_63_ ^ 0xffffffff)
    		    || i_64_ != anInt3776)
    		    Class142_Sub27_Sub13.method1883(-1, this);
    	    }
    	    if (aClass69_3792 == null)
    		aClass69_3792 = new Class69();
    	    int i_66_ = aClass69_3792.anInt1105;
    	    aClass69_3792.method747((i_50_ ^ 0xffffffff) == -2, is_57_, 16384,
    				    anInt2919, i_49_, is);
    	    if (i_66_ != i_49_) {
    		anInt2856 = 128 * anIntArray2957[0] + method453(0) * 64;
    		anInt2949 = 128 * anIntArray2882[0] + method453(0) * 64;
    	    }
    	    if (aClass4_Sub3_2886 != null)
    		aClass4_Sub3_2886.method114();
    	}
        }
    serversided code
    Code:
           public void appendPlayerAppearance(Player p, Stream str) {
            if (p == null || str == null) {
                return;
            }
            Stream playerProps = new Stream(256, 256);
            if(p.gender == 0)
            playerProps.writeByte(p.gender);
             else if(p.gender == 1)
            playerProps.writeByte(p.gender & 0x1);
            playerProps.writeByte(0);
    	playerProps.writeByte(p.mobStatus);
            playerProps.writeByte(p.pkIcon);
            playerProps.writeByte(p.prayerIcon);
            
            for (int i = 0; i < 4; i++) {
                if (p.equipment[i] > 0) {
                    playerProps.writeWord(32768 + getRealId(p.equipment[i]));
                } else {
                    playerProps.writeByte(0);
                }
            }
    
                    playerProps.writeWord(0x100 + p.look[2]); //Torso
                    playerProps.writeByte(0);//shield
                    playerProps.writeWord(0x100 + p.look[3]); //pArms
                    playerProps.writeWord(0x100 + p.look[5]); //pLegs
                    playerProps.writeWord(0x100 + p.look[0]); //pHead
                    playerProps.writeWord(0x100 + p.look[4]); //pHands
                    playerProps.writeWord(0x100 + p.look[6]); //pFeet
    		playerProps.writeWord(0x100 + p.look[1]); //pBeard
    				
            for (int j = 0; j < 5; j++) {
                playerProps.writeByte(p.color[j]);
            }
    		
            playerProps.writeWord(620);
            playerProps.writeQWord(Misc.stringToLong(p.username));
            calculateCombat(p);
            playerProps.writeByte(p.combatLevel);
            //playerProps.writeWord(0);
    	playerProps.writeByte(0);
    	playerProps.writeByte(0);
            str.writeByteC(playerProps.outOffset);
            str.writeBytesA(playerProps.outBuffer, playerProps.outOffset, 0);
    	playerProps.writeByte(0);
            playerProps = null;
        }
    Reply With Quote  
     

  2. #2  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,784
    Discord
    View profile
    Rep Power
    5000
    What is 'mobStatus' ?

    Reply With Quote  
     

  3. #3  
    destiny+
    Guest
    i dunno it was in it when richard tryed to edit it then he gave up
    Reply With Quote  
     

  4. #4  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,784
    Discord
    View profile
    Rep Power
    5000
    playerProps.writeWord(620);
    What is the 620?

    EDIT : Nevermind, i know what that is.

    Reply With Quote  
     

  5. #5  
    destiny+
    Guest
    playerProps.writeWord(620); // index for all emotes <<richard put it there
    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
  •