Jogos Brasil

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

2 participantes

    {AJUDA]COmo add um NPC?

    poof
    poof
    Noob
    Noob


    Mensagens : 52
    Data de inscrição : 17/07/2009
    Especialidade : TQ Binarys

    Personagem
    Experiência:
    {AJUDA]COmo add um NPC? Left_bar_bleue50/50{AJUDA]COmo add um NPC? Empty_bar_bleue  (50/50)

    {AJUDA]COmo add um NPC? Empty {AJUDA]COmo add um NPC?

    Mensagem  poof Qua Dez 30, 2009 3:45 am

    Queria Saber como add um NPC?








    #region ClassPKEnvoy
    case 998811:
    {
    if (Control == 0)
    {
    GC.AddSend(Packets.NPCSay("Hey there i hold every Class PK Tournament for Trojans, Warriors, Ninjas, Taoists And Archers, So Tell me your character so i can Sign you Up.at 19:45!"));
    GC.AddSend(Packets.NPCLink("I am a Trojan [Saturday]", 1));
    GC.AddSend(Packets.NPCLink("I am a Warrior [Sunday]", 2));
    GC.AddSend(Packets.NPCLink("I am a Ninja [Monday]", 3));
    GC.AddSend(Packets.NPCLink("I am a WaterTaoist [Tuesday]", 4));
    GC.AddSend(Packets.NPCLink("I am a FireTaoist [Wednesday]", 5));
    GC.AddSend(Packets.NPCLink("I am a Archer [Thursday]", 6));
    GC.AddSend(Packets.NPCLink("Just passing by.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    else if (Control == 1)
    {
    if (DateTime.Now.DayOfWeek == DayOfWeek.Saturday)
    {
    if (GC.MyChar.Job == 15 && (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 45))
    {
    GC.MyChar.Teleport(1730, 34, 19);
    GC.MyChar.Action = 250;
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    else
    {
    GC.AddSend(Packets.NPCSay("If you want Sign Up,you must choose your Right character in the right day and come at 19:45"));
    GC.AddSend(Packets.NPCLink("k sorry", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    else
    {
    GC.AddSend(Packets.NPCSay("This is not the correct day Come later in correct day"));
    GC.AddSend(Packets.NPCLink("sorry...I will come in correct day", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    else if (Control == 2)
    {
    if (DateTime.Now.DayOfWeek == DayOfWeek.Sunday)
    {
    if (GC.MyChar.Job == 25 && (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 45))
    {
    GC.MyChar.Teleport(1731, 34, 19);
    GC.MyChar.Action = 250;
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    else
    {
    GC.AddSend(Packets.NPCSay("If you want Sign Up,you must choose your Right character in the right day and come at 19:45"));
    GC.AddSend(Packets.NPCLink("k sorry", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    else
    {
    GC.AddSend(Packets.NPCSay("This is not the correct day Come later in correct day"));
    GC.AddSend(Packets.NPCLink("sorry...I will come in correct day", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    else if (Control == 3)
    {
    if (DateTime.Now.DayOfWeek == DayOfWeek.Monday)
    {
    if (GC.MyChar.Job == 55 && (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 45))
    {
    GC.MyChar.Teleport(1732, 34, 19);
    GC.MyChar.Action = 250;
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    else
    {
    GC.AddSend(Packets.NPCSay("If you want Sign Up,you must choose your Right character in the right day and come at 19:45"));
    GC.AddSend(Packets.NPCLink("k sorry", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    else
    {
    GC.AddSend(Packets.NPCSay("This is not the correct day Come later in correct day"));
    GC.AddSend(Packets.NPCLink("sorry...I will come in correct day", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    else if (Control == 4)
    {
    if (DateTime.Now.DayOfWeek == DayOfWeek.Tuesday)
    {
    if (GC.MyChar.Job == 135 && (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 45))
    {
    GC.MyChar.Teleport(1733, 34, 19);
    GC.MyChar.Action = 250;
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    else
    {
    GC.AddSend(Packets.NPCSay("If you want Sign Up,you must choose your Right character in the right day and come at 19:45"));
    GC.AddSend(Packets.NPCLink("k sorry", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    else
    {
    GC.AddSend(Packets.NPCSay("This is not the correct day Come later in correct day"));
    GC.AddSend(Packets.NPCLink("sorry...I will come in correct day", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    else if (Control == 5)
    {
    if (DateTime.Now.DayOfWeek == DayOfWeek.Wednesday)
    {
    if (GC.MyChar.Job == 145 && (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 45))
    {
    GC.MyChar.Teleport(1734, 34, 19);
    GC.MyChar.Action = 250;
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    else
    {
    GC.AddSend(Packets.NPCSay("If you want Sign Up,you must choose your Right character in the right day and come at 19:45"));
    GC.AddSend(Packets.NPCLink("k sorry", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    else
    {
    GC.AddSend(Packets.NPCSay("This is not the correct day Come later in correct day"));
    GC.AddSend(Packets.NPCLink("sorry...I will come in correct day", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    else if (Control == 6)
    {
    if (DateTime.Now.DayOfWeek == DayOfWeek.Thursday)
    {
    if (GC.MyChar.Job == 45 && (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 45))
    {
    GC.MyChar.Teleport(1735, 34, 19);
    GC.MyChar.Action = 250;
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    else
    {
    GC.AddSend(Packets.NPCSay("If you want Sign Up,you must choose your Right character in the right day and come at 19:45"));
    GC.AddSend(Packets.NPCLink("k sorry", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    else
    {
    GC.AddSend(Packets.NPCSay("This is not the correct day Come later in correct day"));
    GC.AddSend(Packets.NPCLink("sorry...I will come in correct day", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    break;
    }
    #endregion
    #region Prize For Trojan
    case 7898521:
    {
    if (Control == 0)
    {
    GC.AddSend(Packets.NPCSay("i will claim to you your prize at 20.10"));
    GC.AddSend(Packets.NPCLink("claim it to me", 1));
    GC.AddSend(Packets.NPCLink("Back Me To TC.", 2));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());

    }
    else if (Control == 1)
    {
    if (DateTime.Now.DayOfWeek == DayOfWeek.Saturday)
    {
    if (GC.MyChar.Job == 15 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
    {
    GC.MyChar.StatEff.Add(StatusEffectEn.TopTrojan);
    GC.MyChar.CPs += 3000;
    GC.Message(2005, GC.MyChar.Name + "Has won the TopPkTrojan Congratulations");
    GC.MyChar.Teleport(1002, 429, 378);
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    else
    {
    GC.AddSend(Packets.NPCSay("You can Take it Later at 20:10"));
    GC.AddSend(Packets.NPCLink("sorry", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    }
    else if (Control == 2)
    {
    GC.MyChar.Teleport(1002, 429, 378);
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    break;
    }
    #endregion
    #region Prize For Warrior
    case 7898522:
    {
    if (Control == 0)
    {
    GC.AddSend(Packets.NPCSay("i will claim to you your prize at 20.10"));
    GC.AddSend(Packets.NPCLink("claim it to me", 1));
    GC.AddSend(Packets.NPCLink("Back Me To TC.", 2));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());

    }
    else if (Control == 1)
    {
    if (DateTime.Now.DayOfWeek == DayOfWeek.Sunday)
    {
    if (GC.MyChar.Job == 25 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
    {
    GC.MyChar.StatEff.Add(StatusEffectEn.TopWarrior);
    GC.MyChar.CPs += 3000;
    GC.Message(2005, GC.MyChar.Name + "Has won the TopPkWarrior Congratulations");
    GC.MyChar.Teleport(1002, 429, 378);
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    else
    {
    GC.AddSend(Packets.NPCSay("You can Take it Later at 20:10"));
    GC.AddSend(Packets.NPCLink("sorry", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    }
    else if (Control == 2)
    {
    GC.MyChar.Teleport(1002, 429, 378);
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    break;
    }
    #endregion
    #region Prize For Ninja
    case 7898523:
    {
    if (Control == 0)
    {
    GC.AddSend(Packets.NPCSay("i will claim to you your prize at 20.10"));
    GC.AddSend(Packets.NPCLink("claim it to me", 1));
    GC.AddSend(Packets.NPCLink("Back Me To TC.", 2));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());

    }
    else if (Control == 1)
    {
    if (DateTime.Now.DayOfWeek == DayOfWeek.Monday)
    {
    if (GC.MyChar.Job == 55 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
    {
    GC.MyChar.StatEff.Add(StatusEffectEn.TopNinja);
    GC.MyChar.CPs += 3000;
    GC.Message(2005, GC.MyChar.Name + "Has won the TopPkNinja Congratulations");
    GC.MyChar.Teleport(1002, 429, 378);
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    else
    {
    GC.AddSend(Packets.NPCSay("You can Take it Later at 20:10"));
    GC.AddSend(Packets.NPCLink("sorry", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    }
    else if (Control == 2)
    {
    GC.MyChar.Teleport(1002, 429, 378);
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    break;
    }
    #endregion
    #region Prize For WaterTaoist
    case 7898524:
    {
    if (Control == 0)
    {
    GC.AddSend(Packets.NPCSay("i will claim to you your prize at 20.10"));
    GC.AddSend(Packets.NPCLink("claim it to me", 1));
    GC.AddSend(Packets.NPCLink("Back Me To TC.", 2));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());

    }
    else if (Control == 1)
    {
    if (DateTime.Now.DayOfWeek == DayOfWeek.Tuesday)
    {
    if (GC.MyChar.Job == 135 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
    {
    GC.MyChar.StatEff.Add(StatusEffectEn.TopWaterTaoist);
    GC.MyChar.CPs += 3000;
    GC.Message(2005, GC.MyChar.Name + "Has won the TopPkWaterTaoist Congratulations");
    GC.MyChar.Teleport(1002, 429, 378);
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    else
    {
    GC.AddSend(Packets.NPCSay("You can Take it Later at 20:10"));
    GC.AddSend(Packets.NPCLink("sorry", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    }
    else if (Control == 2)
    {
    GC.MyChar.Teleport(1002, 429, 378);
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    break;
    }
    #endregion
    #region Prize For FireTaoist
    case 7898525:
    {
    if (Control == 0)
    {
    GC.AddSend(Packets.NPCSay("i will claim to you your prize at 20.10"));
    GC.AddSend(Packets.NPCLink("claim it to me", 1));
    GC.AddSend(Packets.NPCLink("Back Me To TC.", 2));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());

    }
    else if (Control == 1)
    {
    if (DateTime.Now.DayOfWeek == DayOfWeek.Wednesday)
    {
    if (GC.MyChar.Job == 145 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
    {
    GC.MyChar.StatEff.Add(StatusEffectEn.TopFireTaoist);
    GC.MyChar.CPs += 3000;
    GC.Message(2005, GC.MyChar.Name + "Has won the TopPkFireTaoist Congratulations");
    GC.MyChar.Teleport(1002, 429, 378);
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    else
    {
    GC.AddSend(Packets.NPCSay("You can Take it Later at 20:10"));
    GC.AddSend(Packets.NPCLink("sorry", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    }
    else if (Control == 2)
    {
    GC.MyChar.Teleport(1002, 429, 378);
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    break;
    }
    #endregion
    #region Prize For Archer
    case 7898526:
    {
    if (Control == 0)
    {
    GC.AddSend(Packets.NPCSay("i will claim to you your prize at 20.10"));
    GC.AddSend(Packets.NPCLink("claim it to me", 1));
    GC.AddSend(Packets.NPCLink("Back Me To TC.", 2));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());

    }
    else if (Control == 1)
    {
    if (DateTime.Now.DayOfWeek == DayOfWeek.Thursday)
    {
    if (GC.MyChar.Job == 45 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
    {
    GC.MyChar.StatEff.Add(StatusEffectEn.TopArcher);
    GC.MyChar.CPs += 3000;
    GC.Message(2005, GC.MyChar.Name + "Has won the TopArcher Congratulations");
    GC.MyChar.Teleport(1002, 429, 378);
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    else
    {
    GC.AddSend(Packets.NPCSay("You can Take it Later at 20:10"));
    GC.AddSend(Packets.NPCLink("sorry", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    }
    }
    else if (Control == 2)
    {
    GC.MyChar.Teleport(1002, 429, 378);
    GC.AddSend(Packets.NPCSay("Good luck and be carefull"));
    GC.AddSend(Packets.NPCLink("Thanks.", 255));
    GC.AddSend(Packets.NPCSetFace(N.Avatar));
    GC.AddSend(Packets.NPCFinish());
    }
    break;
    }
    #endregion
    Ramix
    Ramix
    Moderador
    Moderador


    Mensagens : 1612
    Data de inscrição : 22/11/2009
    Especialidade : Halo Reach

    Personagem
    Experiência:
    {AJUDA]COmo add um NPC? Left_bar_bleue1/1{AJUDA]COmo add um NPC? Empty_bar_bleue  (1/1)

    {AJUDA]COmo add um NPC? Empty Re: {AJUDA]COmo add um NPC?

    Mensagem  Ramix Qua Dez 30, 2009 4:40 am

    isso e facil...

    tens que abrir o NewestCOServer que esta como visual c# depois de abrires isso vais a lado direito ao packethandling ai vai encontrar um pack chamado npcdialog.cs abre esse pack e no final de todo tens isto default: metes o npc em cima desse default: dps carregas f6 e dps f5 e ja esta..


    dps e so ires ao oldcodb abres o ficheiro chamado npc.txt e no final poes la o id imagem action map x e y para meters o npc aonde queres...



    mais uma coisa no source que andei a modificar ja tem o pk tourney

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