Thread: [RuneSource] Fixing Players Appearing to Teleport on Region Changes

Results 1 to 2 of 2
  1. #1 [RuneSource] Fixing Players Appearing to Teleport on Region Changes 
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,434
    Thanks given
    715
    Thanks received
    1,435
    Rep Power
    1202
    Replace your sendMapRegion packet with this:
    Code:
    public void sendMapRegion() {
    		player.getCurrentRegion().setAs(player.getPosition());
    		StreamBuffer.OutBuffer out = StreamBuffer.newOutBuffer(5);
    		out.writeHeader(client.getEncryptor(), 73);
    		out.writeShort(player.getPosition().getRegionX() + 6, StreamBuffer.ValueType.A);
    		out.writeShort(player.getPosition().getRegionY() + 6);
    		client.send(out.getBuffer());
    	}
    Set the needsPlacement boolean to true on login and when teleporting. Also make sure that in player updating nothing is editing the needsPlacement boolean, it should be reset to false only in the reset() void in the player class.
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Feb 2013
    Posts
    194
    Thanks given
    100
    Thanks received
    8
    Rep Power
    19
    thanks
    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

Similar Threads

  1. Replies: 24
    Last Post: 02-21-2010, 08:53 PM
  2. Replies: 3
    Last Post: 08-07-2009, 10:45 PM
  3. Replies: 2
    Last Post: 06-25-2009, 12:31 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •