[Release] CONQUER7 NPC

04/05/2011 15:00 urbansstyle#1
Heya guys,

I decided to release today one of my favourite npc from my p-server. The conquer7 event.

So 1'st of all go in NPCDialog.cs and copy this code
Code:
#region Conquer7
                            //type any case you want here
                            case 1000021:
                                {
                                    if (option == 0)
                                    {


                                        GC.SendPacket(Packets.NPCSay("Hello,can you help my son? He entered in a famous gang named Conquer and he will pay his life if he can't get the Sign of that Guild.I promise to give you a big reward?"));
                                        GC.SendPacket(Packets.NPCLink("I Wanna Know about CONQUER letters", 50)); ;
                                        GC.SendPacket(Packets.NPCLink("I would like to claim my prize", 70));
                                        GC.SendPacket(Packets.NPCLink("Ok I will do", 255));

                                        GC.SendPacket(Packets.NPCSetFace(30));
                                        GC.SendPacket(Packets.NPCFinish());

                                    }
                                    if (option == 70)
                                    {


                                        GC.SendPacket(Packets.NPCSay("Choose your prize"));
                                        GC.SendPacket(Packets.NPCLink("EXP", 1));
                                        GC.SendPacket(Packets.NPCLink("Random Prize", 2));
                                        GC.SendPacket(Packets.NPCLink("i Have All lateers and 7", 3));
                                        GC.SendPacket(Packets.NPCSetFace(30));
                                        GC.SendPacket(Packets.NPCFinish());

                                    }
                                    if (option == 50)
                                    {


                                        GC.SendPacket(Packets.NPCSay("do you want to go and hunt to get it in BirdIsland"));
                                        GC.SendPacket(Packets.NPCLink("ya sure", 60)); ;
                                        GC.SendPacket(Packets.NPCLink("no thanks", 255));
                                        GC.SendPacket(Packets.NPCSetFace(30));
                                        GC.SendPacket(Packets.NPCFinish());

                                    }
                                    if (option == 60)
                                    {

                                        GC.MyChar.Teleport(1015, 750, 665);

                                    }

inside the big region add these regions: 
 #region exp
                                    else if (option == 1)
                                    {
                                        if (GC.MyChar.InventoryContains(7112141, 1, GC))//C
                                            if (GC.MyChar.InventoryContains(7112151, 1, GC))//O
                                                if (GC.MyChar.InventoryContains(7112161, 1, GC))//N
                                                    if (GC.MyChar.InventoryContains(7112171, 1, GC))//Q
                                                        if (GC.MyChar.InventoryContains(7112181, 1, GC))//U
                                                            if (GC.MyChar.InventoryContains(7112191, 1, GC))//E
                                                                if (GC.MyChar.InventoryContains(7112201, 1, GC))//R
                                                                {
                                                                    GC.MyChar.RemoveItemID(7112141, GC);
                                                                    GC.MyChar.RemoveItemID(7112151, GC);
                                                                    GC.MyChar.RemoveItemID(7112161, GC);
                                                                    GC.MyChar.RemoveItemID(7112171, GC);
                                                                    GC.MyChar.RemoveItemID(7112181, GC);
                                                                    GC.MyChar.RemoveItemID(7112191, GC);
                                                                    GC.MyChar.RemoveItemID(7112201, GC); 
                                                                    GC.MyChar.Experience += 911521221; // set any ammount if you don't like it
                                                                    GC.SendPacket(Packets.NPCSetFace(N.Avatar));
                                                                    GC.SendPacket(Packets.NPCFinish());
                                                                }
                                                                else
                                                                    GC.SendPacket(Packets.NPCSay("You Donot Have Food Components"));
                                        GC.SendPacket(Packets.NPCLink("Ohh sry", 255));
                                        GC.SendPacket(Packets.NPCSetFace(N.Avatar));
                                        GC.SendPacket(Packets.NPCFinish());
                                    }
                                    #endregion

 #region Random prize
                                    else if (option == 2)
                                    {
                                        if (GC.MyChar.InventoryContains(7112141, 1, GC))//C
                                            if (GC.MyChar.InventoryContains(7112151, 1, GC))//O
                                                if (GC.MyChar.InventoryContains(7112161, 1, GC))//N
                                                    if (GC.MyChar.InventoryContains(7112171, 1, GC))//Q
                                                        if (GC.MyChar.InventoryContains(7112181, 1, GC))//U
                                                            if (GC.MyChar.InventoryContains(7112191, 1, GC))//E
                                                                if (GC.MyChar.InventoryContains(7112201, 1, GC))//R
                                                                {
                                                                    GC.MyChar.RemoveItemID(7112141, GC);
                                                                    GC.MyChar.RemoveItemID(7112151, GC);
                                                                    GC.MyChar.RemoveItemID(7112161, GC);
                                                                    GC.MyChar.RemoveItemID(7112171, GC);
                                                                    GC.MyChar.RemoveItemID(7112181, GC);
                                                                    GC.MyChar.RemoveItemID(7112191, GC);
                                                                    GC.MyChar.RemoveItemID(7112201, GC);
                                                                    Random R = new Random();
                                                                    int Nr = R.Next(1, 5);
                                                                    if (Nr == 1)
                                                                    {
                                                                        GC.MyChar.Experience += 91152121;
                                                                    }
                                                                    if (Nr == 2)
                                                                    {
                                                                        GC.MyChar.AddItem(720028);
                                                                        GC.MyChar.Experience += 545454;
                                                                    }
                                                                    if (Nr == 3)
                                                                    {
                                                                        GC.MyChar.AddItem(723723);
                                                                        GC.MyChar.Experience += 600000;
                                                                    }
                                                                    if (Nr == 4)
                                                                    {
                                                                        GC.MyChar.AddItem(720028);
                                                                        GC.MyChar.AddItem(720028);
                                                                    }
                                                                    GC.SendPacket(Packets.NPCSetFace(N.Avatar));
                                                                    GC.SendPacket(Packets.NPCFinish());
                                                                }
                                                                else
                                                                    GC.SendPacket(Packets.NPCSay("You Don't have all the letters "));
                                        GC.SendPacket(Packets.NPCLink("Ohh sry", 255));
                                        GC.SendPacket(Packets.NPCSetFace(N.Avatar));
                                        GC.SendPacket(Packets.NPCFinish());
                                    }
                                    #endregion

 #region exp %% CPs
                                    else if (option == 3)
                                    {
                                        if (GC.MyChar.InventoryContains(7112141, 1, GC))//C
                                            if (GC.MyChar.InventoryContains(7112151, 1, GC))//O
                                                if (GC.MyChar.InventoryContains(7112161, 1, GC))//N
                                                    if (GC.MyChar.InventoryContains(7112171, 1, GC))//Q
                                                        if (GC.MyChar.InventoryContains(7112181, 1, GC))//U
                                                            if (GC.MyChar.InventoryContains(7112191, 1, GC))//E
                                                                if (GC.MyChar.InventoryContains(7112201, 1, GC))//R
                                                                {
                                                                    GC.MyChar.RemoveItemID(7112141, GC);
                                                                    GC.MyChar.RemoveItemID(7112151, GC);
                                                                    GC.MyChar.RemoveItemID(7112161, GC);
                                                                    GC.MyChar.RemoveItemID(7112171, GC);
                                                                    GC.MyChar.RemoveItemID(7112181, GC);
                                                                    GC.MyChar.RemoveItemID(7112191, GC);
                                                                    GC.MyChar.RemoveItemID(7112201, GC);
                                                                    GC.MyChar.RemoveItemID(7112211, GC);
                                                                    GC.MyChar.Experience += 911521212;
                                                                    GC.MyChar.CPs += 5000;
                                                                    GC.MyChar.AddItem(720028);
                                                                    GC.SendPacket(Packets.NPCSetFace(N.Avatar));
                                                                    GC.SendPacket(Packets.NPCFinish());
                                                                }
                                                                else
                                                                    GC.SendPacket(Packets.NPCSay("You Donot Have Food Components"));
                                        GC.SendPacket(Packets.NPCLink("Ohh sry", 255));
                                        GC.SendPacket(Packets.NPCSetFace(N.Avatar));
                                        GC.SendPacket(Packets.NPCFinish());
                                    }
                                    #endregion
                                    break;
                                }

                            #endregion
And that's all.. NOTE: THIS IS FOR THE SQL SERVERS. If you want me to code it into NewestCOServer just say it.

BTW IF IT HELPED DON'T FORGET TO PRESS THANKS !!!
04/05/2011 15:26 Korvacs#2
Added BB Code Tags to your post, please do this in future.

Moved.
04/05/2011 21:34 Syst3m_W1z4rd#3
You do know it doesn't matter if it's the sql or not.
Also ConquerSX = Newestcoserver. Just a more shitty version.
04/05/2011 21:42 BioHazarxPaul#4
Quote:
Originally Posted by Syst3m_W1z4rd View Post
You do know it doesn't matter if it's the sql or not.
Also ConquerSX = Newestcoserver. Just a more shitty version.
But..... I thought ConquerSX is the best source ever...
04/06/2011 01:44 |NeoX#5
Quote:
Originally Posted by BioHazarxPaul View Post
But..... I thought ConquerSX is the best source ever...
Sir, you realy made my day :)
04/06/2011 08:16 Syst3m_W1z4rd#6
Quote:
Originally Posted by BioHazarxPaul View Post
But..... I thought ConquerSX is the best source ever...
No. Fangs source is. :bandit:
04/08/2011 09:13 |NeoX#7
Quote:
Originally Posted by Syst3m_W1z4rd View Post
No. Fangs source is. :bandit:
U do drugs again? Or just lost the connection to the reality bro <3

Id say the best source is our Conquer Offline Source.
04/09/2011 07:53 urbansstyle#8
it doesn't matter who has the best source, but there is a difference between newest co and conquer sx because i got both of them and worked with both before releasing this.

so in the sql just copy this, if you want me to code it in newest co server just post it here.

Note: this is only the npc, if you want me to help you with all the sh*t just post here


@thx Korvacs