Jogos Brasil

Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

2 participantes

    NPC Monte Traine Funcionando Perfeitamente

    alef007
    alef007
    Principiante
    Principiante


    Mensagens : 96
    Data de inscrição : 30/09/2009
    Especialidade : TQ-Binaryes

    NPC   Monte Traine Funcionando Perfeitamente Empty NPC Monte Traine Funcionando Perfeitamente

    Mensagem  alef007 Sex Dez 04, 2009 10:16 am

    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 bounce

    CLIK AQUI PARA VER COMO FICOU https://i.servimg.com/u/f95/14/45/17/86/24901610.jpg
    Emilio
    Emilio
    Noob
    Noob


    Mensagens : 65
    Data de inscrição : 07/11/2009

    NPC   Monte Traine Funcionando Perfeitamente Empty Re: NPC Monte Traine Funcionando Perfeitamente

    Mensagem  Emilio Sáb Dez 05, 2009 6:38 am

    #mover topic

      Data/hora atual: Ter Nov 26, 2024 9:41 pm