- Código:
#region Top Halo NPC
case 452678:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Voce quer comprar algum Top?Custa Apenas 20k de Cps (CADA)."));
GC.AddSend(Packets.NPCLink("Trojan", 1));
GC.AddSend(Packets.NPCLink("Ninja", 2));
GC.AddSend(Packets.NPCLink("Warrior", 3));
GC.AddSend(Packets.NPCLink("Archer", 4));
GC.AddSend(Packets.NPCLink("Water", 5));
GC.AddSend(Packets.NPCLink("Fire", 6));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
if (GC.MyChar.CPs >= 20000)
{
GC.MyChar.CPs -= 20000;
GC.MyChar.StatEff.Add(StatusEffectEn.TopTrojan);
GC.Message(2005, GC.MyChar.Name + "Voce es Top Trojan");
}
}
if (Control == 2)
{
if (GC.MyChar.CPs >= 20000)
{
GC.MyChar.CPs -= 20000;
GC.MyChar.StatEff.Add(StatusEffectEn.TopNinja);
try
{
StreamWriter sw = new StreamWriter("C:\\OldCODB/Tops/TopLeader.txt");
sw.WriteLine("" + GC.MyChar.EntityID + "#17179869184");
sw.Close();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
}
if (Control == 3)
{
if (GC.MyChar.CPs >= 20000)
{
GC.MyChar.CPs -= 20000;
GC.MyChar.StatEff.Add(StatusEffectEn.TopWarrior);
GC.Message(2005, GC.MyChar.Name + "Voce es Top Warrior");
}
}
if (Control == 4)
{
if (GC.MyChar.CPs >= 20000)
{
GC.MyChar.CPs -= 20000;
GC.MyChar.StatEff.Add(StatusEffectEn.TopArcher);
GC.Message(2005, GC.MyChar.Name + "Voce es Top Archer");
}
}
if (Control == 5)
{
if (GC.MyChar.CPs >= 20000)
{
GC.MyChar.CPs -= 20000;
GC.MyChar.StatEff.Add(StatusEffectEn.TopWaterTaoist);
GC.Message(2005, GC.MyChar.Name + "Voce es Top Water");
}
}
if (Control == 6)
{
if (GC.MyChar.CPs >= 20000)
{
GC.MyChar.CPs -= 20000;
GC.MyChar.StatEff.Add(StatusEffectEn.TopFireTaoist);
GC.Message(2005, GC.MyChar.Name + "Voce es Top Fire");
}
}
break;
}
#endregion
Agr poem o Npc no source
- Código:
452678 7680 2 0 1002 422 375
Thanks Pls!