How to get Fatigue to work on ArcEmu server?
How to get Fatigue to work on ArcEmu server?
You'd need to calculate the value of the ocean floor from and check it against the player's vertical(Z) axis. Then you send the fatigue update bar to the character and let the timer tick down and deal XXX damage every tick(Forgot the seconds on it). Of course then comes the small things that come into account... such as some places don't take fatigue down. You lose fatigue when your dead aswell, etc.
Last edited by Clain; 12-24-2008 at 08:15 PM.
hmm.... alright, but where exactly would you input the value of the ocean floor to the player on his Z axis and the damage done per tick? I know this could not be done in a LUA script, so would you have to add code into the core?
which opcode should be sent when i want client to show fatigue bar?
Last edited by pcrew; 12-25-2008 at 04:18 AM.
Should be under the movement opcode MSG_MOVE_HEARTBEAT--but SMSG_START_MIRROR_TIMER sends the actual timer.
Structure for SMSG_START_MIRROR_TIMER is close to this if not exact.
Of course I'm sure they already have most of this since swimming works.Code:uint type uint max uint max int unk (-1) int unk (0) byte unk (0)
Last edited by Clain; 12-25-2008 at 12:55 PM.
Thanks a lot , gonna try to make fatigue work now