Ok guys i codificado Monte Trainer e ele funciona perfeitamente = D logo mal começa o NPC que os cavalos Compõe
Ok primeiro o NPC
Ir para PacketHandling / NPCDIalogs.cs
E adicionar este NPC
Code:
#region Mount Trainer
case 983:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Im the best Mount Trainer in the Empire. You can learn the Mount Skills from me.It cost 50,000 silver for the Riding Skill, 100,000 silver for the Spook Skill , and 1,000,000 silver for War Cry Skill, Is there something needed."));
GC.AddSend(Packets.NPCLink("Learn Riding (50000 silver)", 4));
GC.AddSend(Packets.NPCLink("Learn Spook (100000 silver)", 5));
GC.AddSend(Packets.NPCLink("Learn War Cry (1000000)", 6));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (GC.MyChar.Inventory.Count < 40)
{
if (Control == 4)
{
if (GC.MyChar.Silvers >= 10000)
{
GC.MyChar.Silvers -= 10000;
GC.MyChar.RWSkill(new Game.Skill() { ID = 7001, Lvl = 0, Exp = 0 });
GC.AddSend(Packets.NPCSay("You have learned Riding Skill"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 5)
{
if (GC.MyChar.Silvers >= 100000)
{
GC.MyChar.Silvers -= 100000;
GC.MyChar.RWSkill(new Game.Skill() { ID = 7002, Lvl = 0, Exp = 0 });
GC.AddSend(Packets.NPCSay("You have learned Spook Skill"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 6)
{
if (GC.MyChar.Silvers >= 1000000)
{
GC.MyChar.Silvers -= 1000000;
GC.MyChar.RWSkill(new Game.Skill() { ID = 7003, Lvl = 0, Exp = 0 });
GC.AddSend(Packets.NPCSay("You have learned Warcry Skill"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
else
{
GC.AddSend(Packets.NPCSay("Im sorry you have learned these skills"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
}
#endregion
Salve isso la no final de tudo e vamos pra segunda Parte essa parte é feito agora vá para C: \ OldCODB \ NPCs.txt
E adicione este código 983 6320 2 4 1002 387 386
GOSTOU APERTE THANKS
CLIK AQUI PARA VER COMO FICOU https://i.servimg.com/u/f95/14/45/17/86/24901610.jpg
Ok primeiro o NPC
Ir para PacketHandling / NPCDIalogs.cs
E adicionar este NPC
Code:
#region Mount Trainer
case 983:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Im the best Mount Trainer in the Empire. You can learn the Mount Skills from me.It cost 50,000 silver for the Riding Skill, 100,000 silver for the Spook Skill , and 1,000,000 silver for War Cry Skill, Is there something needed."));
GC.AddSend(Packets.NPCLink("Learn Riding (50000 silver)", 4));
GC.AddSend(Packets.NPCLink("Learn Spook (100000 silver)", 5));
GC.AddSend(Packets.NPCLink("Learn War Cry (1000000)", 6));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (GC.MyChar.Inventory.Count < 40)
{
if (Control == 4)
{
if (GC.MyChar.Silvers >= 10000)
{
GC.MyChar.Silvers -= 10000;
GC.MyChar.RWSkill(new Game.Skill() { ID = 7001, Lvl = 0, Exp = 0 });
GC.AddSend(Packets.NPCSay("You have learned Riding Skill"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 5)
{
if (GC.MyChar.Silvers >= 100000)
{
GC.MyChar.Silvers -= 100000;
GC.MyChar.RWSkill(new Game.Skill() { ID = 7002, Lvl = 0, Exp = 0 });
GC.AddSend(Packets.NPCSay("You have learned Spook Skill"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 6)
{
if (GC.MyChar.Silvers >= 1000000)
{
GC.MyChar.Silvers -= 1000000;
GC.MyChar.RWSkill(new Game.Skill() { ID = 7003, Lvl = 0, Exp = 0 });
GC.AddSend(Packets.NPCSay("You have learned Warcry Skill"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
else
{
GC.AddSend(Packets.NPCSay("Im sorry you have learned these skills"));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
}
#endregion
Salve isso la no final de tudo e vamos pra segunda Parte essa parte é feito agora vá para C: \ OldCODB \ NPCs.txt
E adicione este código 983 6320 2 4 1002 387 386
GOSTOU APERTE THANKS
CLIK AQUI PARA VER COMO FICOU https://i.servimg.com/u/f95/14/45/17/86/24901610.jpg