Couple of features I have tried to add to the Konfuze engine, but I must be using the wrong methods since they didn't quite work properly after a few attempts.
- Hunger/Thirst. - Mail system.
For hunger, my initial method was to add 2 timers to the client, one for hunger, one for thirst. Each minute, these timers would send a message to the server, and reduce the players hunger/thirst bars by 1. When reaching 50% it would tell the player that they were either hungry, thirsty, or both. When the bars reached 0, they would die. The only way to put them back up was to use a food item type, or a drink item type. However, the method I used didn't seem to work properly.
For the mail system, I had the server create an ini file each time a character was made. So, if this file existed, data could be written into it. If you sent a message to the player, it would send the data to the server, look for the file name (Which was the character name), and save the message into an empty block. For some reason, when trying to send the data, the client closed without any notification of errors which I couldn't figure out.
Anyway, if anybody is interested in helping me to add these 2 features (I also have some more things I'd like to add too), please contact me.
|