Register for your free account! | Forgot your password?

Go Back   elitepvpers › MMORPGs › Conquer Online 2 › CO2 Private Server › CO2 PServer Guides & Releases
You last visited: Today at 03:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Some needed stuff for Coemu

Discussion on [Release] Some needed stuff for Coemu within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #196
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 459
another system.....

but i will try your system....

and thanks for the help : D

i will try the mobs thing...... because it's only in MC where i got crash....
12tails is offline  
Old   #197
 
elite*gold: 0
Join Date: Sep 2009
Posts: 260
Received Thanks: 59
Important:

Break through ?!


muhauhauh?
ImmortalYashi is offline  
Old   #198

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by ImmortalYashi View Post
Important:

Break through ?!
muhauhauh?
Grats?
Kiyono is offline  
Old   #199
 
elite*gold: 0
Join Date: Sep 2009
Posts: 260
Received Thanks: 59
Lawl thx i'm going 5150+
ImmortalYashi is offline  
Old   #200
 
arab4life's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 430
Received Thanks: 286
Few Questions, I got most them working..but these...

*-Ethereal


This Goes In NPCTALK.CS
Quote:
#region Ethereal //Enchanted & +10 Man
case 450: //Ethereal
{
if (LinkBack == 0)
{
Text("Hey sweety, what is up ?", CSocket);
Text("\n I can help you having some extra HP", CSocket);
Text("\n reduce the damage on you", CSocket);
Text("\n or upgrade your gears 10-12", CSocket);
Link("Enchant my gears", 1, CSocket);
Link("Bless my gears", 2, CSocket);
Link("Compose my gears", 3, CSocket);
Link("Nothing, l8er :P", 255, CSocket);
Face(55, CSocket);
End(CSocket);
}
else if (LinkBack == 1) CSocket.Send(ConquerPacket.Enchant(CSocket.Client. ID));
else if (LinkBack == 2)
.
.
.
}
break;
}
#endregion
Then it states that...and for Ethereal you will need the Enchant packet (put it anywhere under Packets folder In which file does this go in?
Quote:
public static byte[] Enchant(int PlayerID)
{
PacketBuilder Packet = new PacketBuilder(1010, 24);
Packet.Int(64);
Packet.Int(3);
Packet.Int(170);
Packet.Int(99);
Packet.Long(PlayerID);
Packet.Long(1091);
Packet.Int(223);
Packet.Int(0);
Packet.Int(58);
Packet.Int(1);
Packet.Short(7);
Packet.Short(116);
return Packet.getFinal();
}
last but not least...and then add this code under PacketProcessor.cs packet type 1009 i know it goes in the packetprocessor but where?

Quote:
case 28://Enchant
{
int ItemId = ReadLong(Data, 4); int GemID = ReadLong(Data, 8);
byte GemType = 0; byte EnchantToGive = 0;
if (CSocket.Client.Inventory.ContainsKey(ItemId))
{
if (CSocket.Client.Inventory.ContainsKey(GemID))
{
GemType = (byte)(CSocket.Client.Inventory[GemID].ItemID - 700000);
if (GemType.ToString().EndsWith("1")) EnchantToGive = (byte)Nano.Rand.Next(5, 50);
else if (GemType.ToString().EndsWith("2")) EnchantToGive = (byte)Nano.Rand.Next(50, 150);
else if (GemType == 13) EnchantToGive = (byte)Nano.Rand.Next(210, 255);//SDG
else if (GemType.ToString().EndsWith("3")) EnchantToGive = (byte)Nano.Rand.Next(150, 225);
if (EnchantToGive > 0)
{
Handler.DeleteItem(CSocket.Client.Inventory[GemID].ItemID, 1, CSocket);
if (CSocket.Client.Inventory[ItemId].Enchant <= EnchantToGive)
{
CSocket.Client.Inventory[ItemId].Enchant = EnchantToGive; Struct.ItemInfo NewIt = CSocket.Client.Inventory[ItemId];
CSocket.Send(ConquerPacket.ItemUsage(NewIt.UID, 0, Struct.ItemUsage.UpdateItem));
CSocket.Send(ConquerPacket.ItemInfo(CSocket.Client .Inventory[ItemId]));
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Waw you Gain extra HP by " + EnchantToGive, Struct.ChatType.Top));
}
else
{
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Your gem gave a lower Enchanted than that ur item has , Better luck next time!", Struct.ChatType.Top));
}
}
}
else
{
CSocket.Send(ConquerPacket.Chat(0, "System", "you", "Cant find the gem", Struct.ChatType.Top));
}
}
else CSocket.Send(ConquerPacket.Chat(0, "System", "you", "Cant find the Item", Struct.ChatType.Top));
break;
}

Thank You for your help



Also some NPC when i added them...it gives me this

Error 1 The name 'HasItem' does not exist in the current context E:\GameStart\coemu\CoEmu v2 GameServer\Handlers\NpcTalk.cs 6810 33 CoEmu v2 GameServer

Error 2 The name 'DeleteItem' does not exist in the current context E:\GameStart\coemu\CoEmu v2 GameServer\Handlers\NpcTalk.cs 6812 33 CoEmu v2 GameServer

Error 5 The name 'UpDateItem' does not exist in the current context E:\GameStart\coemu\CoEmu v2 GameServer\Handlers\NpcTalk.cs 6849 37 CoEmu v2 GameServer
arab4life is offline  
Thanks
1 User
Old   #201
 
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
Quote:
Originally Posted by arab4life View Post
Few Questions, I got most them working..but these...

*-Ethereal


This Goes In NPCTALK.CS


Then it states that...and for Ethereal you will need the Enchant packet (put it anywhere under Packets folder In which file does this go in?


last but not least...and then add this code under PacketProcessor.cs packet type 1009 i know it goes in the packetprocessor but where?




Thank You for your help



Also some NPC when i added them...it gives me this

Error 1 The name 'HasItem' does not exist in the current context E:\GameStart\coemu\CoEmu v2 GameServer\Handlers\NpcTalk.cs 6810 33 CoEmu v2 GameServer

Error 2 The name 'DeleteItem' does not exist in the current context E:\GameStart\coemu\CoEmu v2 GameServer\Handlers\NpcTalk.cs 6812 33 CoEmu v2 GameServer

Error 5 The name 'UpDateItem' does not exist in the current context E:\GameStart\coemu\CoEmu v2 GameServer\Handlers\NpcTalk.cs 6849 37 CoEmu v2 GameServer
*-for enchant put it at any file under Packets folder , when u open your source u will c some yellow folders one of them is Packets when u click on it some files will appear put the enchant packet to one of them
*-for the PacketProcessor search for
Code:
case 27://Reply to ping
and put my code be4 it

*-the other 3 errors check the first post again , the first code contains the 3 voids
samehvan is offline  
Thanks
2 Users
Old   #202
 
arab4life's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 430
Received Thanks: 286
Thank you, i o u 1
arab4life is offline  
Thanks
1 User
Old   #203
 
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
Quote:
Originally Posted by arab4life View Post
Thank you, i o u 1
no problem at all , we are here to help or ask for help ,any time bro
samehvan is offline  
Thanks
2 Users
Old   #204
 
elite*gold: 0
Join Date: Sep 2009
Posts: 260
Received Thanks: 59
Samehvan i got important news if you just did login on msn..
ImmortalYashi is offline  
Old   #205
 
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
Quote:
Originally Posted by ImmortalYashi View Post
Samehvan i got important news if you just did login on msn..
i am on it
samehvan is offline  
Thanks
2 Users
Old   #206
 
arab4life's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 430
Received Thanks: 286
Just wanted to say something about samehvan

The best person alive!

Thats all.
arab4life is offline  
Thanks
1 User
Old   #207
 
arab4life's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 430
Received Thanks: 286
I was trying to add shop boy

Quote:
Error 1 The name 'UpDateItem' does not exist in the current context E:\GameStart\coemu\CoEmu v2 GameServer\Handlers\NpcTalk.cs 7050 37 CoEmu v2 GameServer

NVM Fixed
arab4life is offline  
Thanks
1 User
Old   #208
 
elite*gold: 0
Join Date: Oct 2006
Posts: 75
Received Thanks: 17
Code:
        public static void UpDateItem(Struct.ItemInfo Item, ClientSocket CSocket)
        {
            if (Item.UID == 0)
            {
                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));
            }
            else
            {
                CSocket.Send(ConquerPacket.ItemUsage(Item.UID, Item.Position, Struct.ItemUsage.UpdateItem));
                CSocket.Send(ConquerPacket.ItemInfo(Item));
                Database.Database.UpdateItem(Item);
            }
        }
gad-legion is offline  
Thanks
1 User
Old   #209
 
sawickas's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 617
Received Thanks: 38
How add timer and makę start up iwents in time?
sawickas is offline  
Old   #210
 
elite*gold: 0
Join Date: Jan 2009
Posts: 84
Received Thanks: 9
Quote:
Originally Posted by ImmortalYashi View Post
Important:

Break through ?!

dude! how'd you do that!!!!
whoa! well done!
lukejonesy is offline  
Reply


Similar Threads Similar Threads
[HELP]Error when doing stuff on server CoEmu V2
11/11/2009 - CO2 Private Server - 4 Replies
hello i was wandering if anyone understands this problem. I had my friend go on after i added Shopping mall and it took the cps but didn't give him the +6 stone he tryed to buy. At the same time this error occurred. http://img21.imageshack.us/img21/6930/errorline32 .jpg all i have added to source from origional (by andyd123) was Wuxing oven with progress http://www.elitepvpers.com/forum/co2-pserver-discu ssions-questions/260333-release-wuxing-oven.html and shopping mall ...
[INFO NEEDED] Simple question but where can i find all the monsters in COEMU v2
06/24/2009 - CO2 Private Server - 4 Replies
Question 1 : It is simple yes but i know how to code but i just arent used to this source:P. Info pls:P where are all the mobs located? Question 2 : Can someone pass me a lil sql file where WindSage is in? cuz i dont know how to work with my mysql that good i always screw up kthx:)
Is a website still needed for CoEmu v2
06/15/2009 - CO2 Private Server - 3 Replies
Well, sorry for this useless post, but I dont want to waste any time of mine making a website for CoEmu v2 if there are already some decent ones out there. If I spend time making one I would like people to actually use it :P lol. Well, if someone needs a website just say so here, as well as some things you would like on the website that I will add.
[HELP WANTED] CoEmu V2 Partners Needed
06/05/2009 - CO2 Private Server - 0 Replies
I got the source will have a host all i need is a few ppl to help me getting this going pm me if you want to help and meet a few requiremtents. Requirements: 1. has to know a bit of coding using C# (cuz i know very little) 2. spend a decent amount of time online (not asking 24/7) 3. and has to be awesome lol.
CoEmu + all needed Files??
10/14/2007 - Conquer Online 2 - 0 Replies
Hi all, I want to make my own private server with CoEmu - Now I tried every link at this forum and all!!! Links are dead. PLS can someone upload this files all i need for CoEmu and CoEmu too? THX4hrlp



All times are GMT +1. The time now is 03:23.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.