Thread: [NEW]Adding npc and player gfx block[NEW]

Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1 [NEW]Adding npc and player gfx block[NEW] 
    Registered Member
    XxXFoRbIdDeNXxX's Avatar
    Join Date
    Aug 2006
    Posts
    104
    Thanks given
    0
    Thanks received
    0
    Rep Power
    190
    Purpose: To add gfx voids that will make the npc and player do the gfx in the direction they are facing not just south.

    Difficulty: 3/10!

    Server base: Any.

    Classes modified: Player & NPC

    Step 1: Open player.java and find..

    Code:
    appendPlayerUpdateBlock(stream str)
    and see if you have
    Code:
    if(mask100update) updateMask |= 0x100;
    Which most sources will have. if you do skip to step 3.

    if not add


    Code:
    appendPlayerUpdateBlock(stream str)
    and see if you have
    Code:
    if(mask100update) updateMask |= 0x100;
    On top of
    Code:
    if(animationRequest != -1) updateMask |= 8;
    and then find

    Code:
    if(animationRequest != -1) appendAnimationRequest(str);
    and then above it add this

    Code:
    if(mask100update)   appendMask100Update(str);
    Step 2: Add these anywhere in your player.java

    Code:
    public int mask100var1 = 0;
            public int mask100var2 = 0;
            protected boolean mask100update = false;
            public void appendMask100Update(stream str) {
                    str.writeWordBigEndian(mask100var1);
                    str.writeDWord(mask100var2);
            }
    then find
    Code:
    clearUpdateFlags()
    and add this in it

    Code:
    mask100update = false;
    Step 3:

    add these voids in your player.java

    Code:
    public void gfx100(int gfx)
    {
    mask100var1 = gfx;
    mask100var2 = 6553600;
    mask100update = true;
    updateRequired = true;
    }
    public void gfx0(int gfx)
    {
    mask100var1 = gfx;
    mask100var2 = 65536;
    mask100update = true;
    updateRequired = true;
    }
    Now these voids can be used to call gfxs at the hiegt of 0 or the heght of 100.

    Step 4: open NPC.java (Hardest part of the TUT begins now, Recommended to make backup of npc)

    then find

    Code:
    if(animUpdateRequired) updateMask |= 0x10;
    and beneath it add

    Code:
    if(mask80update) updateMask |= 0x80;
    Then find
    Code:
    if (animUpdateRequired) appendAnimUpdate(str);
    add this beneath it
    Code:
    if(mask80update)   appendMask80Update(str);
    Step 5: Add these anywhere in NPC.

    Code:
    public void gfx100(int gfx)
    		{
    		mask80var1 = gfx;
            mask80var2 = 6553600;
            mask80update = true;
    		updateRequired = true;
    		}
    		public void gfx0(int gfx)
    		{
    		mask80var1 = gfx;
            mask80var2 = 65536;
            mask80update = true;
    		updateRequired = true;
    		}
    
    public int mask80var1 = 0;
            public int mask80var2 = 0;
    public boolean mask80update = false;
    public void appendMask80Update(stream str) {
    				str.writeWord(mask80var1);
                    str.writeDWord(mask80var2);
    				System.out.println("GFX: " +mask80var1+"HEIGHT: "+mask80var2);
            }
    Then Find
    Code:
    clearUpdateFlags()
    and add this in it
    Code:
    mask80update = false;


    DONE, Now what you have done is added two very important npcs and player update block which allows you to use your gfx on both npc and player properly. Most of your stillgfx calls should be replaced by these to have perfect gfxs. And I will not explain how to call the gfxs for npcs, you will have to figure that out by your self.Enjoy this and tell me if any bugs come up.

    Credits for player gfx to Xero Cheez and lil to me for expaining
    Credits for NPC gfx 100% to me I figured it all out by myself.

    By the way these update blocks were hidden till date for 90% of the people on this site. Please don't be greedy and don't keep your finding to your self. Working together is the only way to get RuneScape Private Servers close to perfect.

    Anyways have fun with this. I found this very important in server building hope you do as well.
    Last edited by XxXFoRbIdDeNXxX; 10-01-2007 at 05:28 AM. Reason: Forgot to add sumthing
     

  2. #2  
    Registered Member
    wizzyt21's Avatar
    Join Date
    Aug 2007
    Posts
    1,167
    Thanks given
    49
    Thanks received
    12
    Rep Power
    156
    Omg Thanks! Now I Can Finish Off Vampire Slayer Test For Server! This Calls For Re***++!
    ~really~needed~this~
    YOU JUST GOT KNOCKED THE F*CK UP.
     

  3. #3  
    Registered Member
    XxXFoRbIdDeNXxX's Avatar
    Join Date
    Aug 2006
    Posts
    104
    Thanks given
    0
    Thanks received
    0
    Rep Power
    190
    np, Just post any bugs you find.
     

  4. #4  
    Registered Member Blazefire's Avatar
    Join Date
    Jul 2006
    Age
    31
    Posts
    216
    Thanks given
    0
    Thanks received
    0
    Rep Power
    16
    Thanks! i repped you on mopar. now on here
    BlazeScape - The Server That Sounds Great -- Literally http://www.rune-server.org/showthrea...005#post194005
     

  5. #5  
    Registered Member
    XxXFoRbIdDeNXxX's Avatar
    Join Date
    Aug 2006
    Posts
    104
    Thanks given
    0
    Thanks received
    0
    Rep Power
    190
    Thanks Blaze fire. I hope others find it useful.
     

  6. #6  
    I Sell 07 Gold PM Me

    Join Date
    Jan 2007
    Age
    24
    Posts
    1,522
    Thanks given
    48
    Thanks received
    79
    Rep Power
    280
    NPC.java:68: cannot find symbol
    symbol : variable mask80update
    location: class NPC
    if(mask80update) updateMask |= 0x80;
    ^
    NPC.java:89: cannot find symbol
    symbol : variable mask80update
    location: class NPC
    if(mask80update) appendMask80Update(str);
    ^
    NPC.java:89: cannot find symbol
    symbol : method appendMask80Update(stream)
    location: class NPC
    if(mask80update) appendMask80Update(str);
    ^
    NPC.java:100: cannot find symbol
    symbol : variable mask80update
    location: class NPC
    mask80update = true;
    ^
    NPC.java:107: cannot find symbol
    symbol : variable mask80update
    location: class NPC
    mask80update = true;
    ^
    NPC.java:115: cannot find symbol
    symbol : variable mask80update
    location: class NPC
    mask80update = false;
    ^
    Note: stream.java uses or overrides a deprecated API.
    Note: Recompile with -Xlinteprecation for details.
    6 errors
    Press any key to continue . . .

    Help.
    Remember buying your first rune set with rune chain at W1 Varrock?
    Remember the excitement you got being Members for the first time?

    Want to re-live the good old days of RuneScape 2006 at its fullest?


    Then try:
    Spoiler for 2006 Old Days:


    Comes in many flavors.
     

  7. #7  
    mstier s
    Guest
    post the appendmask80 void?
     

  8. #8  
    I Sell 07 Gold PM Me

    Join Date
    Jan 2007
    Age
    24
    Posts
    1,522
    Thanks given
    48
    Thanks received
    79
    Rep Power
    280
    public void appendMask80Update(stream str) {
    str.writeWordBigEndian(mask80var1);
    str.writeDWord(mask80var2);
    }

    I guess.

    And add this one too.

    public boolean mask80update = false;
    Last edited by Aconitic; 09-30-2007 at 09:05 PM. Reason: Double posting is not allowed!
    Remember buying your first rune set with rune chain at W1 Varrock?
    Remember the excitement you got being Members for the first time?

    Want to re-live the good old days of RuneScape 2006 at its fullest?


    Then try:
    Spoiler for 2006 Old Days:


    Comes in many flavors.
     

  9. #9  
    project-rs owner
    Join Date
    Sep 2006
    Age
    32
    Posts
    914
    Thanks given
    4
    Thanks received
    4
    Rep Power
    49
    nice forb but the npc one crashes
     

  10. #10  
    mstier s
    Guest
    Thanks alexx
     

Page 1 of 3 123 LastLast

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
  •