Jump to content
  • 0

Broadcasting Heading & On Enterworld Heading


Afou To Patisa

Question

Hi everyone, i got 2 questions. I just need advice or sugestion no much help. 

 

1. When people login the heading is wrong. Let's say the heading has a value of 35000 and player log out. Value is stored on database at "heading" i checked it.

    When player login the heading is not the same as in database. I added a System.out.println(activeChar.getHeading); and it return the value from the database, so the value hasnt change at all.

    What's wrong is the broadcast. Other's watch you normally, but you watch your character in wrong direction (heading). So i guess is UserInfo.java

 

2. Same as previous the difference is that i made a code that changes the player heading. Example: activeChar.setHeading(0); then i type activeChar.broadcastUserInfo();   

    The player not see himself change direction but other's watch him change just fine. So i guess again UserInfo.java. 

 

Something is wrong with it.. I checked broadcastUserInfo() and is same as aCis. First it sendPacket to this (userinfo) and then broadcasttoAll (charInfo).

 

Any advice?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...