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.
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
Quick question about CONQUER7 02/20/2011 - Conquer Online 2 - 1 Replies what is the exact name of the "7"?
Lucky 7?
Number7?
Need to know for botting purposes... lol