Bem vindo ao Project Brasil Smile
Registre se e venha tirar suas dúvidas
e ajudar os menos experiente com seu conhecimento e astucia Smile

Participe do fórum, é rápido e fácil

Bem vindo ao Project Brasil Smile
Registre se e venha tirar suas dúvidas
e ajudar os menos experiente com seu conhecimento e astucia Smile
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

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

[Release] Npc para source 5630

Ir para baixo  Mensagem [Página 1 de 1]

1 [Release] Npc para source 5630 Empty [Release] Npc para source 5630 Ter Out 09, 2012 10:57 pm

tailanbr

tailanbr
VIP
VIP

Gente , esse npc ele serve para quem está usando source 5630 , para que
os players possam ir para um lugar onde terão que colocar sua senha ,
lembrando que as source 5630 precisam da senha para que possam ficar
funcionando normalmente , espero ajudar

#region Procente by JuniorOliveira
case 2061442:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello , for login in server you need put you password correct !.");
dialog.Option("Sure , next.", 2);
dialog.Option("no Thanks.", 255);
dialog.Send();
break;
}
case 17:
{
dialog.Text("To change your name will cost you 25000?");
dialog.Option("I want to change the name.", 18);
dialog.Option("Let me think.", 255);
dialog.Send();
break;
}
case 18:
{
if (client.Entity.ConquerPoints >= 25000)
{
if (client.Account.Password != "")
{
if (!client.Entity.Name.Contains("["))
{
dialog.Text("Please enter your new name.");
dialog.Input("here:", 19, 16);
dialog.Option("let me think.", 255);
dialog.Send();
}
else
{
dialog.Text("You can not change the name to have k [VIP] in its name");
dialog.Option("Ok.", 255);
dialog.Send();
}
}
}
else
{
dialog.Text("You do not have 25k cps can not change your name?");
dialog.Option("Ok.", 255);
dialog.Send();
break;
}
break;
}
case 19:
{
if (client.Account.Password != "")
{
if (npcRequest.Input.Length <= 16)
{
if (client.Entity.Name != npcRequest.Input)
{
client.Entity.Name = npcRequest.Input;
client.ArenaStatistic.Name = npcRequest.Input;
client.NobilityInformation.Name = npcRequest.Input;
client.Disconnect();
foreach (Client.GameState clientes in Kernel.GamePool.Values)
{

clientes.Send(new
Network.GamePackets.Message("" + client.Entity.Name + " after much
thought the name was changed to " + npcRequest.Input + " ",
Message.Talk));
}
}
else
{
dialog.Text("Can not get the same name.");
dialog.Option("Ok let me think.", 255);
}
}
}
else
{
dialog.Text("You did not put any password.");
dialog.Option("Ok.", 255);
}
dialog.Send();
break;
}
#region Change password
case 2:
{
if (client.Account.Password != "")
{
dialog.Text("Please insert the current password again.");
dialog.Input("here:", 6, 14);
dialog.Option("let me think.", 255);
}
else
{
dialog.Text("You have no password.");
dialog.Option("Ok.", 255);
}
dialog.Send();
break;
}
case 6:
{
if (client.Account.Password != "")
{
if (npcRequest.Input.Length <= 14)
{
if (client.Account.Password == npcRequest.Input)
{
dialog.Text("Please insert the current password again.");
dialog.Input("Here:", 7, 14);
dialog.Option("let me think.", 255);
}
else
{
dialog.Text("Incorrect password you want to try again?");
dialog.Input("Here:", 6, 14);
dialog.Option("I.", 255);
}
}
else
{
dialog.Text("Invalidate password, insert it again.");
dialog.Input("here:", 6, 14);
dialog.Option("Ok.", 255);
}
}
else
{
dialog.Text("You did not put any cotrase?a.");
dialog.Option("Ok.", 255);
}
dialog.Send();
break;
}
case 7:
{
if (client.Account.Password != "")
{
if (npcRequest.Input.Length <= 14)
{
client.TempPassword = npcRequest.Input;
dialog.Text("Please insert the current password again.");
dialog.Input("here:", 8, 14);
dialog.Option("Let me think.", 255);
}
else
{
dialog.Text("Overrides password, try again.");
dialog.Input("here:", 7, 14);
dialog.Option("Ok.", 255);
}
}
else
{
dialog.Text("You did not put any password.");
dialog.Option("Ok.", 255);
}
dialog.Send();
break;
}
case 8:
{
if (client.Account.Password != "")
{
if (npcRequest.Input.Length <= 14)
{
if (client.TempPassword == npcRequest.Input)
{
client.Entity.Teleport(1002, 431, 378);
dialog.Text("You password is correct , thanks you . Goodl uck in game !");
dialog.Option("thanks.", 255);
}
else
{
dialog.Text("Password you do not believe set it back.");
dialog.Input("here:", 8, 14);
dialog.Option("Ok let me think.", 255);
}
}
else
{
dialog.Text("Wrong password, try again.");
dialog.Input("here:", 8, 14);
dialog.Option("Ok.", 255);
}
}
else
{
dialog.Text("You did not put any password.");
dialog.Option("Ok.", 255);
}
dialog.Send();
break;
}
#endregion

}
break;
}
#endregion


creditos brasil team

creditos forum brasil team

2 [Release] Npc para source 5630 Empty Re: [Release] Npc para source 5630 Ter Out 09, 2012 11:04 pm

Convidad

Anonymous
Convidado

tailanbr escreveu:Gente , esse npc ele serve para quem está usando source 5630 , para que
os players possam ir para um lugar onde terão que colocar sua senha ,
lembrando que as source 5630 precisam da senha para que possam ficar
funcionando normalmente , espero ajudar

#region Procente by JuniorOliveira
case 2061442:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello , for login in server you need put you password correct !.");
dialog.Option("Sure , next.", 2);
dialog.Option("no Thanks.", 255);
dialog.Send();
break;
}
case 17:
{
dialog.Text("To change your name will cost you 25000?");
dialog.Option("I want to change the name.", 18);
dialog.Option("Let me think.", 255);
dialog.Send();
break;
}
case 18:
{
if (client.Entity.ConquerPoints >= 25000)
{
if (client.Account.Password != "")
{
if (!client.Entity.Name.Contains("["))
{
dialog.Text("Please enter your new name.");
dialog.Input("here:", 19, 16);
dialog.Option("let me think.", 255);
dialog.Send();
}
else
{
dialog.Text("You can not change the name to have k [VIP] in its name");
dialog.Option("Ok.", 255);
dialog.Send();
}
}
}
else
{
dialog.Text("You do not have 25k cps can not change your name?");
dialog.Option("Ok.", 255);
dialog.Send();
break;
}
break;
}
case 19:
{
if (client.Account.Password != "")
{
if (npcRequest.Input.Length <= 16)
{
if (client.Entity.Name != npcRequest.Input)
{
client.Entity.Name = npcRequest.Input;
client.ArenaStatistic.Name = npcRequest.Input;
client.NobilityInformation.Name = npcRequest.Input;
client.Disconnect();
foreach (Client.GameState clientes in Kernel.GamePool.Values)
{

clientes.Send(new
Network.GamePackets.Message("" + client.Entity.Name + " after much
thought the name was changed to " + npcRequest.Input + " ",
Message.Talk));
}
}
else
{
dialog.Text("Can not get the same name.");
dialog.Option("Ok let me think.", 255);
}
}
}
else
{
dialog.Text("You did not put any password.");
dialog.Option("Ok.", 255);
}
dialog.Send();
break;
}
#region Change password
case 2:
{
if (client.Account.Password != "")
{
dialog.Text("Please insert the current password again.");
dialog.Input("here:", 6, 14);
dialog.Option("let me think.", 255);
}
else
{
dialog.Text("You have no password.");
dialog.Option("Ok.", 255);
}
dialog.Send();
break;
}
case 6:
{
if (client.Account.Password != "")
{
if (npcRequest.Input.Length <= 14)
{
if (client.Account.Password == npcRequest.Input)
{
dialog.Text("Please insert the current password again.");
dialog.Input("Here:", 7, 14);
dialog.Option("let me think.", 255);
}
else
{
dialog.Text("Incorrect password you want to try again?");
dialog.Input("Here:", 6, 14);
dialog.Option("I.", 255);
}
}
else
{
dialog.Text("Invalidate password, insert it again.");
dialog.Input("here:", 6, 14);
dialog.Option("Ok.", 255);
}
}
else
{
dialog.Text("You did not put any cotrase?a.");
dialog.Option("Ok.", 255);
}
dialog.Send();
break;
}
case 7:
{
if (client.Account.Password != "")
{
if (npcRequest.Input.Length <= 14)
{
client.TempPassword = npcRequest.Input;
dialog.Text("Please insert the current password again.");
dialog.Input("here:", 8, 14);
dialog.Option("Let me think.", 255);
}
else
{
dialog.Text("Overrides password, try again.");
dialog.Input("here:", 7, 14);
dialog.Option("Ok.", 255);
}
}
else
{
dialog.Text("You did not put any password.");
dialog.Option("Ok.", 255);
}
dialog.Send();
break;
}
case 8:
{
if (client.Account.Password != "")
{
if (npcRequest.Input.Length <= 14)
{
if (client.TempPassword == npcRequest.Input)
{
client.Entity.Teleport(1002, 431, 378);
dialog.Text("You password is correct , thanks you . Goodl uck in game !");
dialog.Option("thanks.", 255);
}
else
{
dialog.Text("Password you do not believe set it back.");
dialog.Input("here:", 8, 14);
dialog.Option("Ok let me think.", 255);
}
}
else
{
dialog.Text("Wrong password, try again.");
dialog.Input("here:", 8, 14);
dialog.Option("Ok.", 255);
}
}
else
{
dialog.Text("You did not put any password.");
dialog.Option("Ok.", 255);
}
dialog.Send();
break;
}
#endregion

}
break;
}
#endregion


creditos brasil team

creditos forum brasil team

Boa Mano Vou testar isso aki !

Ir para o topo  Mensagem [Página 1 de 1]

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