Fórum iBlue
Colocar o comando :givecrystal Buddy_Group

Bem Vindos ao iBlue GAMES!

Registre-se para obter acesso especial em todo conteúdo presente no Fórum!
Tenha um bom uso do nosso fórum, e seja ativo!





Fórum iBlue
Colocar o comando :givecrystal Buddy_Group

Bem Vindos ao iBlue GAMES!

Registre-se para obter acesso especial em todo conteúdo presente no Fórum!
Tenha um bom uso do nosso fórum, e seja ativo!





Somos ÚNICOS, somos o SEU fórum


Você não está conectado. Conecte-se ou registre-se

Ver o tópico anterior Ver o tópico seguinte Ir para baixo  Mensagem [Página 1 de 1]

Loltc

1Colocar o comando :givecrystal Empty Colocar o comando :givecrystal Dom 15 Set 2013 - 6:43

Loltc
Membro Lendário
1° Vá em Butterfly > HabboHotel > Misc > ChatCommandHandler.cs e procure por:
Código:
internal void giveCrystals()
2° Substitua as linhas abaixo de 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"));            }        }
3° agora vá em Butterfly > Habbo Hotel > Users > Habbo.cs e procure por:
Código:
internal void UpdateActivityPointsBalance(int NotifAmount)
4° E acima disso coloque:
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();        }
5° Agora vá em bin > Debug > System > locale.ini e coloque isso:
Código:
crystal.awardmessage1=  has awarded you crystal.awardmessage2= crystals!crystal.updateok=Crystal balance updated successfully.
6° Agora na mesma pasta System abra o arquivo commands.ini e adicione isso:
Código:
giveCrystals=59

Ver o tópico anterior Ver o tópico seguinte Ir para o topo  Mensagem [Página 1 de 1]

Permissões neste sub-fórum
Não podes responder a tópicos