1° Vá em Butterfly > HabboHotel > Misc > ChatCommandHandler.cs e procure por:
- Código:
internal void giveCrystals()
- Código:
internal void giveCrystals() { GameClient clientByUsername = null; Room currentRoom = this.Session.GetHabbo().CurrentRoom; clientByUsername = ButterflyEnvironment.GetGame().GetClientManager().GetClientByUsername(this.Params[1]); if (clientByUsername != null) { int num; if (int.TryParse(this.Params[2], out num)) { clientByUsername.GetHabbo().Crystals += num; clientByUsername.GetHabbo().GiveUserCrystals(int.Parse(this.Params[2])); clientByUsername.GetHabbo().UpdateDiamondsBalance(); clientByUsername.SendNotif(this.Session.GetHabbo().Username + LanguageLocale.GetValue("crystal.awardmessage1") + num.ToString() + LanguageLocale.GetValue("crystal.awardmessage2")); this.Session.SendNotif(LanguageLocale.GetValue("crystal.updateok")); } else { this.Session.SendNotif(LanguageLocale.GetValue("input.intonly")); } } else { this.Session.SendNotif(LanguageLocale.GetValue("input.usernotfound")); } }
- Código:
internal void UpdateActivityPointsBalance(int NotifAmount)
- Código:
internal void UpdateDiamondsBalance() { this.mClient.GetMessageHandler().GetResponse().Init(Outgoing.ActivityPoints); this.mClient.GetMessageHandler().GetResponse().AppendInt32(1); this.mClient.GetMessageHandler().GetResponse().AppendInt32(105); this.mClient.GetMessageHandler().GetResponse().AppendInt32(this.Crystals); this.mClient.GetMessageHandler().SendResponse(); }
- Código:
crystal.awardmessage1= has awarded you crystal.awardmessage2= crystals!crystal.updateok=Crystal balance updated successfully.
- Código:
giveCrystals=59