Hi, i'm use PlusEMU and RevCMS I want show on welcome message a username
Screenshot by Lightshot
Sorry for my bad english :P i'm Italian
Inviato dal mio iPhone 6s Plus utilizzando Tapatalk
Printable View
Hi, i'm use PlusEMU and RevCMS I want show on welcome message a username
Screenshot by Lightshot
Sorry for my bad english :P i'm Italian
Inviato dal mio iPhone 6s Plus utilizzando Tapatalk
Try something like the code below. But why it's relevant that you're using RevCms? By you're question I'm very sure you can only setup a retro hotel by instructions. So I don't think you can use Visual Studio tools properly and build with it but succes!
Code:string message = "welcome message %username%";
var realMessage = message.Replace("%username%", session.GetHabbo().Username);
return realMessage;
Go: HabboHotel/GameClients/GameClient.cs and Search: welcome_message
Replace this:
For this:Code:if (!string.IsNullOrWhiteSpace(PlusEnvironment.GetDBConfig().DBData["welcome_message"]))
SendMessage(new MOTDNotificationComposer(PlusEnvironment.GetDBConfig().DBData["welcome_message"]));
Code:if (!string.IsNullOrWhiteSpace(PlusEnvironment.GetDBConfig().DBData["welcome_message"]))
SendMessage(new MOTDNotificationComposer(PlusEnvironment.GetDBConfig().DBData["welcome_message"].Replace("%username%", GetHabbo().Username)));