- Joined
- Oct 4, 2008
- Messages
- 1,050
- Reaction score
- 308
Battleball Talking Fix
Hey there, A little while ago I was recoding Holograph Emulator vista4life edition and I noticed that there was a small error with Battleball. It appeared that you could not talk in-game, and when you did, it'd disconnect you from the hotel.
I decided to take this snippet from my recode, and release it to the public so that people can have talking working in Non-TDBP Emulators.
How to do it;
I decided to take this snippet from my recode, and release it to the public so that people can have talking working in Non-TDBP Emulators.
How to do it;
- Open virtualuser.cs and find:
#region Chat
- Replace cases "@t", "@w", and "@x" with this:
Code:case "@t": // Chat - say case "@w": // Chat - shout { string Message = currentPacket.Substring(4); if (_isMuted == false && (Room != null && roomUser != null) || (Room == null && gamePlayer != null)) { userManager.addChatMessage(_Username, _roomID, Message); Message = stringManager.filterSwearwords(Message); if (Message.Substring(0, 1) == ":" && isSpeechCommand(Message.Substring(1))) // Speechcommand invoked! { if (roomUser != null) { if (roomUser.isTyping) { Room.sendData("Ei" + Encoding.encodeVL64(roomUser.roomUID) + "H"); roomUser.isTyping = false; } } else gamePlayer.Game.sendData("FO" + Encoding.encodeVL64(gamePlayer.roomUID) + "I"); } else { if (currentPacket.Substring(1, 1) == "w") // Shout { if (gamePlayer == null) Room.sendShout(roomUser, Message); else gamePlayer.Game.sendData("Ei" + Encoding.encodeVL64(gamePlayer.roomUID) + "H" + Convert.ToChar(1) + "@Z" + Encoding.encodeVL64(gamePlayer.roomUID) + Message + Convert.ToChar(2)); } else { if (gamePlayer == null) Room.sendSaying(roomUser, Message); else gamePlayer.Game.sendData("Ei" + Encoding.encodeVL64(gamePlayer.roomUID) + "H" + Convert.ToChar(1) + "@X" + Encoding.encodeVL64(gamePlayer.roomUID) + Message + Convert.ToChar(2)); } } } break; } case "@x": // Chat - whisper { if (_isMuted == false && Room != null && roomUser != null) { string Receiver = currentPacket.Substring(4).Split(' ')[0]; string Message = currentPacket.Substring(Receiver.Length + 5); userManager.addChatMessage(_Username, _roomID, Message); Message = stringManager.filterSwearwords(Message); Room.sendWhisper(roomUser, Receiver, Message); //Out.WriteChat("Whisper", _Username + "-" + Receiver, Message); } break; }
- Your done! Now debug your emulator and your ready to go!
Last edited: