[RELEASE] NPC Monte Traine Funcionando Perfeitamente
Página 1 de 1
[RELEASE] NPC Monte Traine Funcionando Perfeitamente
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:
Código:
#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 bounce
CLIK AQUI PARA VER COMO FICOU [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
Ok primeiro o NPC
Ir para PacketHandling / NPCDIalogs.cs
E adicionar este NPC
Code:
Código:
#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 bounce
CLIK AQUI PARA VER COMO FICOU [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
- Código:
- Código:
Tópicos semelhantes
» [Release] Npc que da Top DL, GL e PK
» [Release] Merchant Npc
» [Release] LvL maximo 200
» [Release] Colocar 100% de Exp
» [Release] Colocar 100% de Exp
» [Release] Merchant Npc
» [Release] LvL maximo 200
» [Release] Colocar 100% de Exp
» [Release] Colocar 100% de Exp
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos