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?
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
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
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
[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