Ae pessoal to postando aki meu primeiro release espero que gostem
1 - Abra o NewestCOServer
2 - Procure pelo NPCDialog.cs
3 - Abra o NPC Dialog.cs
4 - Insira esse codigo
5 - Agora vá em C:\OldCODB e abra o arquivo NPC.txt
6 - Adicione isto lá em baixo
Pronto!!Agora você tem um NPC para trocar a classe dos chars!
1 - Abra o NewestCOServer
2 - Procure pelo NPCDialog.cs
3 - Abra o NPC Dialog.cs
4 - Insira esse codigo
- Código:
#region Change Class
case 13549:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello, I can change your class for just 15,000,000 CPs"));
GC.AddSend(Packets.NPCLink("Cool", 1));
GC.AddSend(Packets.NPCLink("No, thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
if (GC.MyChar.CPs >= 15000000)
{
GC.AddSend(Packets.NPCSay("Which class would you like to be?"));
GC.AddSend(Packets.NPCLink("Trojan", 2));
GC.AddSend(Packets.NPCLink("Warrior", 3));
GC.AddSend(Packets.NPCLink("Taoist", 4));
GC.AddSend(Packets.NPCLink("Archer", 5));
GC.AddSend(Packets.NPCLink("Ninja", 6));
GC.AddSend(Packets.NPCLink("Bye", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("As I said you will need 15,000,000 CPs"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
#region Trojan
else if (Control == 2)
{
if (GC.MyChar.Job == 10 || GC.MyChar.Job == 11 || GC.MyChar.Job == 12 || GC.MyChar.Job == 13 || GC.MyChar.Job == 14 || GC.MyChar.Job == 15)
{
GC.AddSend(Packets.NPCSay("Sorry, but you are already Trojan"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
if (GC.MyChar.Level >= 130)
{
GC.MyChar.CPs -= 15000000;
GC.MyChar.Job = 15;
GC.AddSend(Packets.NPCSay("Congratulations you are Trojan now"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You have to be Level 130"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
#endregion
#region Warrior
else if (Control == 3)
{
if (GC.MyChar.Job == 20 || GC.MyChar.Job == 21 || GC.MyChar.Job == 22 || GC.MyChar.Job == 23 || GC.MyChar.Job == 24 || GC.MyChar.Job == 25)
{
GC.AddSend(Packets.NPCSay("Sorry, but you are already Warrior"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
if (GC.MyChar.Level >= 130)
{
GC.MyChar.CPs -= 15000000;
GC.MyChar.Job = 25;
GC.AddSend(Packets.NPCSay("Congratulations you are Warrior now"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You have to be Level 130"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
#endregion
#region Taoist
else if (Control == 4)
{
GC.AddSend(Packets.NPCSay("Which Taoist would you like to be?"));
GC.AddSend(Packets.NPCLink("Fire.", 7));
GC.AddSend(Packets.NPCLink("Water.", 8));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
#region Fire
else if (Control == 7)
{
if (GC.MyChar.Job == 100 || GC.MyChar.Job == 101 || GC.MyChar.Job == 142 || GC.MyChar.Job == 143 || GC.MyChar.Job == 144 || GC.MyChar.Job == 145)
{
GC.AddSend(Packets.NPCSay("Sorry, but you are already FireTaoist"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
if (GC.MyChar.Level >= 130)
{
GC.MyChar.CPs -= 15000000;
GC.MyChar.Job = 145;
GC.AddSend(Packets.NPCSay("Congratulations you are FireTaoist now"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You have to be Level 130"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
#endregion
#region Water
else if (Control == 8)
{
if (GC.MyChar.Job == 100 || GC.MyChar.Job == 101 || GC.MyChar.Job == 132 || GC.MyChar.Job == 133 || GC.MyChar.Job == 134 || GC.MyChar.Job == 135)
{
GC.AddSend(Packets.NPCSay("Sorry, but you are already WaterTaoist"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
if (GC.MyChar.Level >= 130)
{
GC.MyChar.CPs -= 15000000;
GC.MyChar.Job = 135;
GC.AddSend(Packets.NPCSay("Congratulations you are WaterTaoist now"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You have to be Level 130"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
#endregion
#endregion
#region Archer
else if (Control == 5)
{
if (GC.MyChar.Job == 40 || GC.MyChar.Job == 41 || GC.MyChar.Job == 42 || GC.MyChar.Job == 43 || GC.MyChar.Job == 44 || GC.MyChar.Job == 45)
{
GC.AddSend(Packets.NPCSay("Sorry, but you are already Archer"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
if (GC.MyChar.Level >= 130)
{
GC.MyChar.CPs -= 15000000;
GC.MyChar.Job = 45;
GC.AddSend(Packets.NPCSay("Congratulations you are Archer now"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You have to be Level 130"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
#endregion
#region Ninja
else if (Control == 6)
{
if (GC.MyChar.Job == 50 || GC.MyChar.Job == 51 || GC.MyChar.Job == 52 || GC.MyChar.Job == 53 || GC.MyChar.Job == 54 || GC.MyChar.Job == 55)
{
GC.AddSend(Packets.NPCSay("Sorry, but you are already Ninja"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
if (GC.MyChar.Level >= 130)
{
GC.MyChar.CPs -= 15000000;
GC.MyChar.Job = 55;
GC.AddSend(Packets.NPCSay("Congratulations you are Ninja now"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You have to be Level 130"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
#endregion
break;
}
#endregion
5 - Agora vá em C:\OldCODB e abra o arquivo NPC.txt
6 - Adicione isto lá em baixo
- Código:
13549 4560 2 67 1002 439 367
Pronto!!Agora você tem um NPC para trocar a classe dos chars!