4Botters


 
Go Back   4Botters" I am A Bad Ass Botter " > Online Games > Conquer Online Sections > Conquer Bots > Conquer Private Servers

Conquer Private Servers Post guides , scripts , advertise , anything related to Conquer Private Servers !

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-08-2009, 09:58 PM
MeGaMaX's Avatar
King~Of~Binaries
 
Join Date: Aug 2007
Location: Greece but studing in egypt
Posts: 624
Thanks: 34
Thanked 641 Times in 130 Posts
Cool All You Need To Coemu

[Release] Pharmacist,Blacksmith,Armorer and Old General Giving out Item at Birth Vill

Look for case 10008://Phermacist ***** at NPCTalk.cs
Replace it with this:

Code:
case 10008://Phermacist *****
                    {
                        if (LinkBack == 0)
                        {
                            Text("Hi! I am selling all kinds of potions and City gate scrolls in the cities. I also   sell fireworks and skill books in the market.", CSocket);
                            Link("What Potions?", 1, CSocket);
                            Link("Consult others.", 255, CSocket);
                            Face(30, CSocket); End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            {
                                Text("Healing and mana potions. Healing potions can make you healthy, and mana potions will enable you to cast spells.", CSocket);
                                Text("That is all. If you have not talked to others NPCs, you had better have a chat with them so that you can learn more.", CSocket);
                                Link("Do you have any potion to gave me???", 2, CSocket);
                                Face(30, CSocket); End(CSocket);
                            }
                        }
                        else if (LinkBack == 2)
                        {
                            {
                                AddItem(1002020, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(1002020, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(1002020, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(1002010, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(1002010, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(1002010, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                Link("Thanks Man.", 255, CSocket);
                                Face(30, CSocket); End(CSocket);
                                }
                            }
                        break;
                    }
Then same NPCTalk.cs look for
case 10007://Armorer dude
And replace it with this:

Code:
case 10007://Armorer dude
                    {
                        if (LinkBack == 0)
                        {
                            Text("Armorers swear only to provide the very best in defense. Whether it's robes or helmets, we stock it all.", CSocket);
                            Link("I see. Where can I find an armorer?", 1, CSocket);
                            Link("Consult others.", 255, CSocket);
                            Face(30, CSocket); End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            {
                                Text("Every city or major settlement has one. But our armors very best from place to place. Some armorers have better helms, while others specialize in mail or helms.", CSocket);
                                Text("Just to be sure to buy armor without red text in the description. You won't be able to wear those!", CSocket);
                                Link("Here are some basic armor that i can offer you great hero.", 2, CSocket);
                                Face(30, CSocket); End(CSocket);
                            }
                        }
                        else if (LinkBack == 2)
                        {
                            {
                                AddItem(120009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(150019, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(160019, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(191905, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                Link("Thanks Man.", 255, CSocket);
                                Face(30, CSocket); End(CSocket);
                            }
                        }
                        break;
                    }
Then same NPCTalk.cs
look for case 10005://BlackSmith dude
And Replace it with this:

Code:
case 10005://BlackSmith dude
                    {
                        if (LinkBack == 0)
                        {
                            Text("Us blacksmiths can be found from North to South, East to West. We promise a fine selection of weapons for you to purchase!", CSocket);
                            Link("Hmmmm, tell me more.", 1, CSocket);
                            Link("Consult others.", 255, CSocket);
                            Face(30, CSocket); End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            {
                                Text("Let me tell you how to choose a good weapon. Hover your mouse pointer over the weapon, check its stats and find a weapon with all white writing. If there's red text, you won't be able to use it.", CSocket);
                                Text(" After you buy it, you open your backpack, find the right item and right-click it to equip. It's as easy as that! Oh, and to sell an item, you just drag and drop to my shop!", CSocket);
                                Link("What about repairs?", 2, CSocket);
                                Link("Consult others.", 255, CSocket);
                                Face(30, CSocket); End(CSocket);
                            }
                        }
                        else if (LinkBack == 2)
                        {
                            {
                                Text("First, unequip the item by double-clicking it in your status window. Then find me, click my repair button and click the item.", CSocket);
                                Link("Any other tips?", 3, CSocket);
                                Link("Consult others.", 255, CSocket);
                                Face(30, CSocket); End(CSocket);
                            }
                        }
                        else if (LinkBack == 3)
                        {
                            {
                                Text("Yeah, some items are high quality: Normal, Refined, Unique, Elite, Super. That's specialist stuff, only found in the market. That is all. If you have not talked to other NPCs, you had better have a chat with them so that you can learn more.", CSocket);
                                Link("Is there any weapon that you can gave me now?", 4, CSocket);
                                Face(30, CSocket); End(CSocket);
                            }
                        }
                        else if (LinkBack == 4)
                        {
                            {
                                AddItem(410901, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(420009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(410009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(421009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(430003, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(440009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(450009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(460009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(480009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(481009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(500009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(560009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(561009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                AddItem(601009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                Link("Thanks Man.", 255, CSocket);
                                Face(30, CSocket); End(CSocket);
                            }
                        }
                        break;
                    }
Then in same NPCTalk.cs
Look for case 425://Old general yang dude
And Replace it with This:

Code:
case 425://Old general yang dude
                    {
                        if ((int)CSocket.Client.Class >= 50 && (int)CSocket.Client.Class <= 55)
                        {
                            if (LinkBack == 0)
                            {
                                Text("I will teach you a basic weapon skill. ", CSocket);
                                Link("Ok I'm ready !", 1, CSocket);
                                Link("Thanks anyway...", 255, CSocket);
                                Face(30, CSocket); End(CSocket);
                            }
                            else if (LinkBack == 1)
                            {
                                {
                                    Text("Take this scroll and learn the art of fighting !", CSocket);
                                    AddItem(725005, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                    AddItem(725002, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                    AddItem(725012, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                    AddItem(725025, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                    Link("Thanks Man.", 255, CSocket);
                                    Face(30, CSocket); End(CSocket);
                                }
                            }
                        }
                        break;
                    }
__________________

Sorry you can't view links because you are not registered. [ Click here to register ]

Last edited by MeGaMaX; 06-08-2009 at 10:01 PM.
Google Adsense
  #2 (permalink)  
Old 06-08-2009, 10:02 PM
MeGaMaX's Avatar
King~Of~Binaries
 
Join Date: Aug 2007
Location: Greece but studing in egypt
Posts: 624
Thanks: 34
Thanked 641 Times in 130 Posts
Cool Re: All You Need To Coemu

[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;
}
__________________

Sorry you can't view links because you are not registered. [ Click here to register ]
  #3 (permalink)  
Old 06-08-2009, 10:03 PM
MeGaMaX's Avatar
King~Of~Binaries
 
Join Date: Aug 2007
Location: Greece but studing in egypt
Posts: 624
Thanks: 34
Thanked 641 Times in 130 Posts
Cool Re: All You Need To Coemu

[Release] Broadcast

Lets get started
In, Client.cs Search

Code:
public class Client {
After that add;


Code:
public DateTime CanBroadcastTime = DateTime.Now; public bool CanBroadcast = true;
 
Now search for "case 2050:"
Replace the entire case with;



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; }
__________________

Sorry you can't view links because you are not registered. [ Click here to register ]
  #4 (permalink)  
Old 06-08-2009, 10:05 PM
MeGaMaX's Avatar
King~Of~Binaries
 
Join Date: Aug 2007
Location: Greece but studing in egypt
Posts: 624
Thanks: 34
Thanked 641 Times in 130 Posts
Cool Re: All You Need To Coemu

[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;
                    }
__________________

Sorry you can't view links because you are not registered. [ Click here to register ]
  #5 (permalink)  
Old 06-08-2009, 10:06 PM
MeGaMaX's Avatar
King~Of~Binaries
 
Join Date: Aug 2007
Location: Greece but studing in egypt
Posts: 624
Thanks: 34
Thanked 641 Times in 130 Posts
Cool Re: All You Need To Coemu

[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);
and above it add :

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;
                    }
__________________

Sorry you can't view links because you are not registered. [ Click here to register ]
  #6 (permalink)  
Old 06-08-2009, 10:13 PM
MeGaMaX's Avatar
King~Of~Binaries
 
Join Date: Aug 2007
Location: Greece but studing in egypt
Posts: 624
Thanks: 34
Thanked 641 Times in 130 Posts
Cool Re: All You Need To Coemu

[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;
						}
The code to add

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;
                        }
Around the bottom of that file somewhere add this function

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;
                    }
            }
        }
Now in NpcTalk.cs add this case

Code:
                case 35016: // WUXING OVEN
                    {
                        CSocket.Send(ConquerPacket.General(CSocket.Client.ID, 1, 0, 0, 0, 0, Struct.DataType.Dialog));
                        break;
                    }
Now in Packets/ItemInfo.cs replace
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)
with
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)
and below
Code:
Packet.Long(Color); //Item color. 2-9(headgear is 3-9)
Add
Code:
Packet.Long(Progress); // Composition Progress
REPLACING
Code:
Packet.Long(0);
Now in your sql table do something along the lines of
Code:
ALTER TABLE items ADD Progress INT(11) NOT NULL DEFAULT 0 AFTER Plus;
in Database.cs find
Code:
public static bool NewItem(Struct.ItemInfo Item, ClientSocket CSocket)
and in that function find
Code:
," + Item.Plus + "
In the same string RIGHT after that add
Code:
," + Item.Progress + "
Again Database.cs, find
Code:
public static void UpdateItem(Struct.ItemInfo Item)
In that function, find
Code:
`Plus` = " + Item.Plus + ",
And after that add
Code:
`Progress` = " + Item.Progress + ",
Again, Database.cs; Find
Code:
public static void GetItems(ClientSocket CSocket)
In that function find
Code:
Item.Plus = Convert.ToInt32(DR["Plus"]);
And below it add
Code:
Item.Progress = Convert.ToInt32(DR["Progress"]);
Now in Structs/Item.cs find
Code:
public class ItemInfo
In that find
Code:
public int Plus;
and under that, add
Code:
public int Progress;
__________________

Sorry you can't view links because you are not registered. [ Click here to register ]
The Following User Says Thank You to MeGaMaX For This Useful Post:
forkoto (06-24-2009)
  #7 (permalink)  
Old 06-08-2009, 10:14 PM
*^~ZeuS~^*'s Avatar
A Botter
 
Join Date: Jan 2008
Posts: 224
Thanks: 39
Thanked 25 Times in 23 Posts
Default Re: All You Need To Coemu

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. Sorry you can't view links because you are not registered. [ Click here to register ]] 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)
:-(
  #8 (permalink)  
Old 06-08-2009, 10:15 PM
MeGaMaX's Avatar
King~Of~Binaries
 
Join Date: Aug 2007
Location: Greece but studing in egypt
Posts: 624
Thanks: 34
Thanked 641 Times in 130 Posts
Cool Re: All You Need To Coemu

[Release] PK Points

Character.cs, under
Code:
public Timer FlashTimer;
Add
Code:
public Timer PkRemove;
Now, in ClientSocket.cs, under
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;
			}
		}
Add
Code:
public void RemPKP()
        {
            if (Client.PkPoints > 0)
            {
                Client.PkPoints -= 1;
                Send(ConquerPacket.Status(this, 2, Client.PkPoints, Struct.StatusTypes.PKPoints));
            }
        }
Last, in PacketProcessor.cs under
Code:
                                        CSocket.Client.UpStam = new System.Timers.Timer();
                                        CSocket.Client.UpStam.Interval = 850;
                                        CSocket.Client.UpStam.Elapsed += delegate { CSocket.AddStam(); };
Add
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();
__________________

Sorry you can't view links because you are not registered. [ Click here to register ]
The Following User Says Thank You to MeGaMaX For This Useful Post:
coreymills (07-31-2009)
  #9 (permalink)  
Old 06-08-2009, 10:19 PM
MeGaMaX's Avatar
King~Of~Binaries
 
Join Date: Aug 2007
Location: Greece but studing in egypt
Posts: 624
Thanks: 34
Thanked 641 Times in 130 Posts
Cool Re: All You Need To Coemu

[Release]adding npc giving +12 item

go to handlers then npctalk.cs

search for
Code:
case 390:
before add

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;
}
and you have to add that too

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));
}
and for npc faces if you didnt add

Code:
public static void Face(int Face, ClientSocket CSocket)
{
CSocket.Send(ConquerPacket.NPCTalk(2544, Face, 255, 4));
}
thats for my npc you can change 211091 to id you want
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');
211091 is your npc id
280 is type
1002 mapid
430 x
340 y
change them to what ever you want
__________________

Sorry you can't view links because you are not registered. [ Click here to register ]
The Following 6 Users Say Thank You to MeGaMaX For This Useful Post:
azndarkpt (07-29-2009), derstar2 (06-28-2009), forkoto (06-24-2009), Mido0o0o0o (06-21-2009), panelinha (07-14-2009), yes5090 (07-17-2009)
Closed Thread

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


Translate This Page

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Me Coemu DanrleyxD Conquer Private Servers 1 02-14-2010 06:40 AM
[Help] CoEmu Help ~ShaDow~ Conquer Private Servers 0 01-11-2010 12:14 PM
[Request] Need CoEmu Closo Conquer Private Servers 2 12-05-2009 01:09 PM
[Release] CoEmu V2 ׍ĥę×Ôŋë× Conquer Private Servers 4 11-21-2009 05:35 PM
[Question] Any onę need coemu?? ~Black~Devil~ TQ Binaries 1 09-14-2009 01:32 PM


All times are GMT. The time now is 09:29 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.