[TUT 503] Graphics

Junior Spellweaver
Joined
Aug 12, 2006
Messages
115
Reaction score
2
Open up PlayerUpdate class and add This

Code:
        if(p.gfxUpdateRequired)
        {
            updateMask |= 0x100;
        }

Under

Code:
        if(p.animUpdateRequired)
        {
            updateMask |= 0x8;
        }

Then add this

Code:
        if(p.gfxUpdateRequired)
        {
            ub.appendGraphicsRequest(p, str);
        }

Under

Code:
        if(p.animUpdateRequired)
        {
            ub.appendAnimationRequest(p, str);
        }

Save it open up PlayerUpdateBlock class.

Add this

Code:
    public void appendGraphicsRequest(Player p, Stream str)
    {
        if(p == null || str == null)
        {
            return;
        }
        str.writeWordBigEndian(p.gfxRequest);
        str.writeDWord(p.gfxDelay);
    }

Save it. Open up Player class and add this.

Code:
    public void requestGFX(int gfxId, int gfxD)
    {
        gfxRequest = gfxId;
        gfxDelay = gfxD;
        gfxUpdateRequired = true;
        updateRequired = true;
    }

THIS TUTORIAL HAS NOT BEEN MADE BY ME !
IT IS MADE BY Linux FROM RUNE-SERVER

This is player graphic like skillcapes and that.
 
Back