![]() |
|
![]() |
||||||||
| Conquer Private Servers Post guides , scripts , advertise , anything related to Conquer Private Servers ! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
![]() |
|
![]() |
||||||||
| Conquer Private Servers Post guides , scripts , advertise , anything related to Conquer Private Servers ! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
[Release]CoEmuV2 EXPBall code
This is converted from LOTF, but meh, here it goes. 1) Open your UseItem.cs 2) Add this code under one of the cases : Quote: case 723700: // ExpBall { int XPtoGive = 0; if(CSocket.Client.Level < 100) XPtoGive = 1295000 + CSocket.Client.Level * 50000; else if(CSocket.Client.Level < 110) XPtoGive = 1395000 + CSocket.Client.Level * 80000; else if(CSocket.Client.Level < 115) XPtoGive = 1595000 + CSocket.Client.Level * 100000; else if(CSocket.Client.Level < 120) XPtoGive = 1895000 + CSocket.Client.Level * 120000; else if(CSocket.Client.Level < 125) XPtoGive = 2095000 + CSocket.Client.Level * 150000; else if(CSocket.Client.Level < 130) XPtoGive = 2395000 + CSocket.Client.Level * 180000; else if(CSocket.Client.Level < 135) XPtoGive = 2895000 + CSocket.Client.Level * 200000; CSocket.Client.Exp += (ulong)XPtoGive; Delete = true; CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.Exp, Struct.StatusTypes.Exp)); break; }
__________________
![]() Rules ( 4BoTTeRS PServer) Do not ask why the server is offline Do not ask any answred questions, just search the forum or the section for your answer Do not use any sort of hacks when you log to our server Don't double post a new thread or it will be removed Any binded viruses or keyloggers will get you banned. Any scam guides will get you banned. Do not advertise for another website , or you will be banned. |
|
||||
|
[Release] Broadcast
Lets get started In, Client.cs Search Code:
public class Client {
Code:
public DateTime CanBroadcastTime = DateTime.Now; public bool CanBroadcast = true; Now search for "case 2050:" Code:
case 2050: { if (MyChar.LocMap == 6001 || MyChar.LocMap == 6000) { SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You can't do that here!", 2005)); } else { if (!CanBroadcast) if (DateTime.Now >= CanBroadcastTime) CanBroadcast = true; if (CanBroadcast) { if (Data[4] == 3 && MyChar.CPs >= 5) { MyChar.CPs -= 5; SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs)); byte Len = Data[13]; string Message = ""; for (int i = 0; i < Len; i++) { Message += Convert.ToChar(Data[14 + i]); } World.SendMsgToAll(Message, MyChar.Name, 2500); SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Message sent successfully!.", 2005)); CanBroadcast = false; CanBroadcastTime = DateTime.Now.AddSeconds(20); } } else { SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Please wait to send your message!", 2005)); } } break; }
__________________
![]() Rules ( 4BoTTeRS PServer) Do not ask why the server is offline Do not ask any answred questions, just search the forum or the section for your answer Do not use any sort of hacks when you log to our server Don't double post a new thread or it will be removed Any binded viruses or keyloggers will get you banned. Any scam guides will get you banned. Do not advertise for another website , or you will be banned. |
|
||||
|
[Release] Night Devil and Dance Skill books
Go into Handler/Useitem.cs Code:
case 725016: //Night Devil
{
if (CSocket.Client.Level >= 70)
{
LearnSkill(1360, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725018: //Dance 2
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1380, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725019: //Dance 3
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1385, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725020: //Dance 4
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1390, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725021: //Dance 5
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1395, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725022: //Dance 6
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1400, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725023: //Dance 7
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1405, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725024: //Dance 8
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1410, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
__________________
![]() Rules ( 4BoTTeRS PServer) Do not ask why the server is offline Do not ask any answred questions, just search the forum or the section for your answer Do not use any sort of hacks when you log to our server Don't double post a new thread or it will be removed Any binded viruses or keyloggers will get you banned. Any scam guides will get you banned. Do not advertise for another website , or you will be banned. |
|
||||
|
[Release] Jail NPC
Ok .. here is the npc jail in TwinCity (Enter the jail and go out the jail) in Handlers / NpcTalk.cs Search for Code:
default:
{
Text("NPC " + ID + "'s dialog is not coded.", CSocket);
Code:
case 43:// enter the Jail
{
if (LinkBack == 0)
{
Text("Do you want to visit the jail ?", CSocket);
Link("Yes,please", 1, CSocket);
Link("No thanks", 225, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
{
Teleport(6000, 28, 71, 0, CSocket);
}
}
break;
}
case 42://go out the Jail
{
if (LinkBack == 0)
{
Text("Do you want to leave the jail ?", CSocket);
Link("Yes,please", 1, CSocket);
Link("No thanks", 225, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
{
Teleport(1002, 439, 390, 0, CSocket);
}
}
break;
}
__________________
![]() Rules ( 4BoTTeRS PServer) Do not ask why the server is offline Do not ask any answred questions, just search the forum or the section for your answer Do not use any sort of hacks when you log to our server Don't double post a new thread or it will be removed Any binded viruses or keyloggers will get you banned. Any scam guides will get you banned. Do not advertise for another website , or you will be banned. |
|
||||
|
[Release] Wuxing Oven
First, add this code above this case in PacketProcessor.cs Code:
default:
{
Console.WriteLine("[GameServer] Unknown packet type: " + Type);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "[Handler-Error] Please report: Unable to handle packet type " + Type, Struct.ChatType.Top));
break;
}
Code:
case 2036: // COMPOSITION STOVE
{
int MainUID = ReadLong(Data, 8);
int MinorUID = ReadLong(Data, 12);
int PlusVal = 0;
int OldPlus = 0;
int ComPoints = 0;
string ItemName = String.Empty;
Struct.ItemInfo Main = new Struct.ItemInfo();
Struct.ItemInfo Minor = new Struct.ItemInfo();
foreach (Struct.ItemInfo Item in CSocket.Client.Inventory.Values)
{
if (Item.UID == MainUID)
{
Main = Item;
}
else if (Item.UID == MinorUID)
{
PlusVal = Item.Plus;
Minor = Item;
}
}
if (Minor.Plus == 0)
break;
OldPlus = Main.Plus;
if (PlusVal == 1)
ComPoints = 10;
else if (PlusVal == 2)
ComPoints = 40;
else if (PlusVal == 3)
ComPoints = 120;
else if (PlusVal == 4)
ComPoints = 360;
else if (PlusVal == 5)
ComPoints = 1080;
else if (PlusVal == 6)
ComPoints = 3240;
else if (PlusVal == 7)
ComPoints = 9720;
else if (PlusVal == 8)
ComPoints = 29160;
List<Struct.ItemData> ItemData = new List<Struct.ItemData>();
foreach (KeyValuePair<int, Struct.ItemData> Items in Nano.Items)
ItemData.Add(Items.Value);
foreach (Struct.ItemData ItemDataPiece in ItemData)
if (ItemDataPiece.ID == Main.ItemID)
ItemName = ItemDataPiece.Name;
while (ComPoints > 0 && Main.Plus < 12)
{
if (ComPoints < (GetPlusReq(Main.Plus) - Main.Progress))
{
Main.Progress += ComPoints;
ComPoints = 0;
break;
}
else
{
Main.Progress += GetPlusReq(Main.Plus);
ComPoints -= GetPlusReq(Main.Plus);
if (Main.Progress >= GetPlusReq(Main.Plus))
{
Main.Plus += 1;
Main.Progress = 0;
}
}
}
if (Main.Plus != OldPlus && Main.Plus >= 6)
{
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Congratulations! " + CSocket.Client.Name + " has upgraded the bonus level of " + ItemName + " to +" + Main.Plus + "!", Struct.ChatType.Talk));
}
Database.Database.DeleteItem(Minor.UID);
CSocket.Client.Inventory.Remove(Minor.UID);
CSocket.Send(ConquerPacket.ItemUsage(MinorUID, 255, Struct.ItemUsage.RemoveItem));
Database.Database.DeleteItem(MainUID);
CSocket.Client.Inventory.Remove(MainUID);
CSocket.Send(ConquerPacket.ItemUsage(MainUID, 255, Struct.ItemUsage.RemoveItem));
Main.UID = Nano.Rand.Next(1, 9999999);
bool created = Database.Database.NewItem(Main, CSocket);
while (!created)
{
Main.UID = Nano.Rand.Next(1, 9999999);
created = Database.Database.NewItem(Main, CSocket);
}
CSocket.Client.Inventory.Add(Main.UID, Main);
CSocket.Send(ConquerPacket.ItemInfo(Main.UID, Main.ItemID, Main.Plus, Main.Progress, Main.Bless, Main.Enchant, Main.Soc1, Main.Soc2, Main.Dura, Main.MaxDura, Main.Position, Main.Color));
break;
}
Code:
private static int GetPlusReq(int p)
{
switch (p)
{
case 0:
{
return 20;
}
case 1:
{
return 20;
}
case 2:
{
return 80;
}
case 3:
{
return 240;
}
case 4:
{
return 720;
}
case 5:
{
return 2160;
}
case 6:
{
return 6480;
}
case 7:
{
return 19440;
}
case 8:
{
return 58320;
}
case 9:
{
return 2700;
}
case 10:
{
return 5500;
}
case 11:
{
return 9000;
}
default:
{
return 0;
}
}
}
Code:
case 35016: // WUXING OVEN
{
CSocket.Send(ConquerPacket.General(CSocket.Client.ID, 1, 0, 0, 0, 0, Struct.DataType.Dialog));
break;
}
Code:
public static byte[] ItemInfo(int UID, int itemid, int Plus, int Minus, int Enchant, int soc1, int soc2, int currentdura, int maxdura, int Location, int Color) Code:
public static byte[] ItemInfo(int UID, int itemid, int Plus, int Progress, int Minus, int Enchant, int soc1, int soc2, int currentdura, int maxdura, int Location, int Color) Code:
Packet.Long(Color); //Item color. 2-9(headgear is 3-9) Code:
Packet.Long(Progress); // Composition Progress Code:
Packet.Long(0); Code:
ALTER TABLE items ADD Progress INT(11) NOT NULL DEFAULT 0 AFTER Plus; Code:
public static bool NewItem(Struct.ItemInfo Item, ClientSocket CSocket) Code:
," + Item.Plus + " Code:
," + Item.Progress + " Code:
public static void UpdateItem(Struct.ItemInfo Item) Code:
`Plus` = " + Item.Plus + ", Code:
`Progress` = " + Item.Progress + ", Code:
public static void GetItems(ClientSocket CSocket) Code:
Item.Plus = Convert.ToInt32(DR["Plus"]); Code:
Item.Progress = Convert.ToInt32(DR["Progress"]); Code:
public class ItemInfo Code:
public int Plus; Code:
public int Progress;
__________________
![]() Rules ( 4BoTTeRS PServer) Do not ask why the server is offline Do not ask any answred questions, just search the forum or the section for your answer Do not use any sort of hacks when you log to our server Don't double post a new thread or it will be removed Any binded viruses or keyloggers will get you banned. Any scam guides will get you banned. Do not advertise for another website , or you will be banned. |
| The Following User Says Thank You to MeGaMaX For This Useful Post: | ||
forkoto (06-24-2009) | ||
|
||||
|
iam so happy to be the firest one who post reply here
can i ask you only one question because you impressed me what is the online game that you dont anderstand about it great jop [Only registered and activated users can see links. ] you are the best (is there TQ bnary like this coemu)
__________________
trieng to know evrything you cant see me ? look carefully This Is Mido1122 Iam Here Since It Was EgyConquer and still (A Botter) :-( ![]() |
|
||||
|
[Release] PK Points
Character.cs, under Code:
public Timer FlashTimer; Code:
public Timer PkRemove; Code:
public void AddStam()
{
if(!Client.Dead)
{
if (Client.CurrentStam < 100)
{
Client.CurrentStam += 10;
Send(ConquerPacket.Status(this, 2, Client.CurrentStam, Struct.StatusTypes.Stamina));
}
else if (Client.CurrentStam > 100)
Client.CurrentStam = 100;
}
}
Code:
public void RemPKP()
{
if (Client.PkPoints > 0)
{
Client.PkPoints -= 1;
Send(ConquerPacket.Status(this, 2, Client.PkPoints, Struct.StatusTypes.PKPoints));
}
}
Code:
CSocket.Client.UpStam = new System.Timers.Timer();
CSocket.Client.UpStam.Interval = 850;
CSocket.Client.UpStam.Elapsed += delegate { CSocket.AddStam(); };
Code:
CSocket.Client.PkRemove = new System.Timers.Timer();
CSocket.Client.PkRemove.Interval = (60000 * 6);
CSocket.Client.PkRemove.Elapsed += delegate { CSocket.RemPKP(); };
CSocket.Client.PkRemove.Enabled = true;
CSocket.Client.PkRemove.Start();
__________________
![]() Rules ( 4BoTTeRS PServer) Do not ask why the server is offline Do not ask any answred questions, just search the forum or the section for your answer Do not use any sort of hacks when you log to our server Don't double post a new thread or it will be removed Any binded viruses or keyloggers will get you banned. Any scam guides will get you banned. Do not advertise for another website , or you will be banned. |
| The Following User Says Thank You to MeGaMaX For This Useful Post: | ||
coreymills (07-31-2009) | ||
|
||||
|
[Release]adding npc giving +12 item
go to handlers then npctalk.cs search for Code:
case 390: Code:
case 211091:
{
if (LinkBack == 0)
{
Text("Ho i can give you full +12 gea if you wish Just Choose your pro?", CSocket); //Remove one ) and add, CSocket
Link("Trojan", 1, CSocket);
Link("Warrior", 2, CSocket);
Link("Archer", 3, CSocket);
Link("Toa", 4, CSocket);
Link("NiNja", 5, CSocket);
Link("No, I dont need", 255, CSocket);
Face(19, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
AddItem(130109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//conquestarmor
AddItem(480339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//kingsclub
AddItem(480339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//kingsclub
AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//tornado
AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//thunder
AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
AddItem(118109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//magiccornet
AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan
}
else if (LinkBack == 2)
{
AddItem(131109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixArmor
AddItem(480339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//kingsclub
AddItem(900109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//dragonshield
AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//tornado
AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//thunder
AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
AddItem(111109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//conquesthelment
AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan
}
else if (LinkBack == 3)
{
AddItem(133109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixJerkin
AddItem(500329, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//shadowbow
AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//tornado
AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//thunder
AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
AddItem(111109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixHat
AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan
}
else if (LinkBack == 4)
{
AddItem(134109, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//pineRobe
AddItem(421339, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//KingsOfBackSword
AddItem(121249, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//SunShine
AddItem(152229, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//Lightning
AddItem(160249, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//Blizzard
AddItem(114109, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//PhoenixHat
AddItem(202009, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//heavenfan
}
else if (LinkBack == 5)
{
AddItem(135109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//pineRobe
AddItem(601339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//EmperorKatana
AddItem(601339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//EmperorKatana
AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//SunShine
AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Lightning
AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
AddItem(112109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixHat
AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan
}
break;
}
Code:
public static void AddItem(int itemid, int bless, int dura, int enchant, int plus, int position, int soc1, int soc2, int color, ClientSocket CSocket)
{
Struct.ItemInfo Item = new Struct.ItemInfo();
if (dura == 255)
{
Item.Dura = Item.MaxDura;
}
else
{
Item.Dura = dura;
}
Item.Bless = bless;
Item.Enchant = enchant;
Item.ItemID = itemid;
Item.Plus = plus;
Item.Position = position;
Item.Soc1 = soc1;
Item.Soc2 = soc2;
Item.Color = color;
Item.UID = Nano.Rand.Next(1, 9999999);
bool created = Database.Database.NewItem(Item, CSocket);
while (!created)
{
Item.UID = Nano.Rand.Next(1, 9999999);
created = Database.Database.NewItem(Item, CSocket);
}
CSocket.Client.Inventory.Add(Item.UID, Item);
CSocket.Send(ConquerPacket.ItemInfo(Item.UID, Item.ItemID, Item.Plus, Item.Bless, Item.Enchant, Item.Soc1, Item.Soc2, Item.Dura, Item.MaxDura, Item.Position, Item.Color));
}
Code:
public static void Face(int Face, ClientSocket CSocket)
{
CSocket.Send(ConquerPacket.NPCTalk(2544, Face, 255, 4));
}
just change item ids now u have npc in your source lets go mysql in phpmyadmin or navicat or what ever you use and insert Code:
insert into 'npcs' VALUES ('211091', '211091', '280', '1002', '430', '340', '2', '2');
280 is type 1002 mapid 430 x 340 y change them to what ever you want
__________________
![]() Rules ( 4BoTTeRS PServer) Do not ask why the server is offline Do not ask any answred questions, just search the forum or the section for your answer Do not use any sort of hacks when you log to our server Don't double post a new thread or it will be removed Any binded viruses or keyloggers will get you banned. Any scam guides will get you banned. Do not advertise for another website , or you will be banned. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|