Thread: Clean PI with Tweaked Combat and System

Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42
  1. #1 Clean PI with Tweaked Combat and System 
    Ain't Messin' Around - Gary Clark Jr.

    Wolfs Darker's Avatar
    Join Date
    Jul 2012
    Posts
    1,530
    Thanks given
    598
    Thanks received
    464
    Rep Power
    252
    Well im kinda tired of this leechers, every time i go to a download or advertising section, it is the same leeched bullshit, PI with the original features and 'pretty' stuff added, so im releasing this to see if people actually give a fuck about the code itself, this is not good like a hyperion or runesource, but is better than this little leechs, code wisely, so lets go for features

    -Entity Interaction,
    -Entity based combat ( the combat itself isn't 100%, but it is not hard to turn it 100%),
    -Update flags system,
    -Fast Loading (like 1-3 seconds),
    -Netty ( credits to whoever added it),

    idk what else i did, i only worked on it for few days, ill be finishing the combat soon to make a PK server , so for sure i didn't release my accuracy and max hit formulas on this, but well the credits itself is for who ever created the base i used, i only added few things that ppl cba to do or don't even care, im tired of the way PI handle the combat ( int playerIndex, int npcIndex ), it causes nullpointers so easy, plus you gotta do the same thing twice, so ye, if you using as base of anything or just ripping, don't forget to thank n repp

    Link: Source Link

    Media:







    Edit: this is probably my first release, so take it easy

    Spoiler for Fixes:


    replace this code on your Player.java:

    Code:
    public Player(Channel s, int _playerId) {        this(_playerId);
            this.session = s;
            synchronized (this) {
                outStream = new StreamBuffer(new byte[Config.BUFFER_SIZE]);
                outStream.currentOffset = 0;
    
    
                inStream = new StreamBuffer(new byte[Config.BUFFER_SIZE]);
                inStream.currentOffset = 0;
                buffer = new byte[Config.BUFFER_SIZE];
            }
        }
    and this one:

    Code:
    public void appendPlayerUpdateBlock(StreamBuffer str) {		if (!updateRequired && !chatTextUpdateRequired)
    			return;
    		int updateMask = 0;
    		final UpdateFlag flag = getUpdateFlag();
    		if (flag.flagged(Flag.GRAPHIC) && getGraphic() != null)
    			updateMask |= 0x100;
    		if (flag.flagged(Flag.ANIMATION) && getAnimation() != null)
    			updateMask |= 8;
    		if (flag.flagged(Flag.FORCED_CHAT))
    			updateMask |= 4;
    		if (chatTextUpdateRequired)
    			updateMask |= 0x80;
    		if (flag.flagged(Flag.APPEARANCE))
    			updateMask |= 0x10;
    		if (flag.flagged(Flag.FACE_POSITION))
    			updateMask |= 1;
    		if (FocusPointX != -1)
    			updateMask |= 2;
    		if (flag.flagged(Flag.SINGLE_HIT))
    			updateMask |= 0x20;
    		if (flag.flagged(Flag.DOUBLE_HIT))
    			updateMask |= 0x200;
    		if (updateMask >= 0x100) {
    			updateMask |= 0x40;
    			str.writeByte(updateMask & 0xFF);
    			str.writeByte(updateMask >> 8);
    		} else
    			str.writeByte(updateMask);
    		if (flag.flagged(Flag.GRAPHIC) && getGraphic() != null)
    			appendGraphicUpdate(str);
    		if (flag.flagged(Flag.ANIMATION) && getAnimation() != null)
    			appendAnimationRequest(str);
    		if (flag.flagged(Flag.FORCED_CHAT))
    			appendForcedChat(str);
    		if (chatTextUpdateRequired)
    			appendPlayerChatText(str);
    		if (flag.flagged(Flag.FACE_POSITION))
    			appendFaceUpdate(str);
    		if (flag.flagged(Flag.APPEARANCE))
    			appendPlayerAppearance(str);
    		if (FocusPointX != -1)
    			appendSetFocusDestination(str);
    		if (flag.flagged(Flag.SINGLE_HIT))
    			appendHitUpdate(str);
    		if (flag.flagged(Flag.DOUBLE_HIT))
    			appendHitUpdate2(str);
    	}
    Attached image
    Reply With Quote  
     


  2. #2  
    Registered Member
    Join Date
    Jun 2012
    Posts
    136
    Thanks given
    63
    Thanks received
    8
    Rep Power
    24
    loooooveeeeee you thanks so much!

    what client did you use ?

    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member

    Join Date
    Sep 2010
    Posts
    1,248
    Thanks given
    536
    Thanks received
    179
    Rep Power
    106
    Does your client work well with this?
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Ain't Messin' Around - Gary Clark Jr.

    Wolfs Darker's Avatar
    Join Date
    Jul 2012
    Posts
    1,530
    Thanks given
    598
    Thanks received
    464
    Rep Power
    252
    Quote Originally Posted by Kurdz View Post
    Does your client work well with this?
    Quote Originally Posted by xezrsps View Post
    loooooveeeeee you thanks so much!

    what client did you use ?
    Yes, i used Pegasus 317 loading 474
    Attached image
    Reply With Quote  
     

  7. Thankful user:


  8. #5  
    Spread Love

    Dhruv's Avatar
    Join Date
    Feb 2012
    Age
    28
    Posts
    1,011
    Thanks given
    157
    Thanks received
    167
    Rep Power
    215
    Nice work, saved me time from doing it Might use for a project soon

    EDIT: Repped++
    Reply With Quote  
     

  9. Thankful user:


  10. #6  
    Donator
    Firewall's Avatar
    Join Date
    Aug 2013
    Posts
    16
    Thanks given
    0
    Thanks received
    3
    Rep Power
    11
    Great clean base to start with. Nice release.
    The pain you feel today is the strength you feel tomorrow.
    Reply With Quote  
     

  11. Thankful user:


  12. #7  
    Registered Member
    Join Date
    Jul 2013
    Posts
    16
    Thanks given
    0
    Thanks received
    1
    Rep Power
    16
    Nice work man.
    Reply With Quote  
     

  13. Thankful user:


  14. #8  
    Banned
    Join Date
    Apr 2013
    Posts
    283
    Thanks given
    64
    Thanks received
    72
    Rep Power
    0
    very nice release, repped
    Reply With Quote  
     

  15. Thankful user:


  16. #9  
    Donator

    Join Date
    Jan 2009
    Posts
    468
    Thanks given
    144
    Thanks received
    41
    Rep Power
    65
    characters show half invisible, only thing that shows is there head.
    Reply With Quote  
     

  17. Thankful user:


  18. #10  
    Ain't Messin' Around - Gary Clark Jr.

    Wolfs Darker's Avatar
    Join Date
    Jul 2012
    Posts
    1,530
    Thanks given
    598
    Thanks received
    464
    Rep Power
    252
    Quote Originally Posted by Kumon View Post
    characters show half invisible, only thing that shows is there head.
    Oh ye i forget to do something when i removed Client.java , ill post on thread the fix
    Attached image
    Reply With Quote  
     

Page 1 of 5 123 ... LastLast

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. Replies: 12
    Last Post: 08-10-2013, 04:47 PM
  2. [PI] with 633 Characteres and Items
    By Roshi in forum Requests
    Replies: 6
    Last Post: 11-11-2012, 05:50 PM
  3. Replies: 2
    Last Post: 08-03-2012, 01:45 AM
  4. 508 hoster (with speed test) (and system)
    By Producer in forum Hosting
    Replies: 8
    Last Post: 04-23-2009, 05:43 AM
  5. [474] Advanced NPC & Player Combat and system!
    By wizzyt21 in forum Tutorials
    Replies: 10
    Last Post: 11-29-2008, 10:01 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •