case "item":
{
string ItemName = Data[3];
Game.Enums.ItemQuality Quality = Game.Enums.ItemQuality.Fixed;
switch (Data[4].ToLower())
{
case "fixed": Quality = Game.Enums.ItemQuality.Fixed; break;
case "normal": Quality = Game.Enums.ItemQuality.Normal; break;
case "normalv1": Quality = Game.Enums.ItemQuality.NormalV1; break;
case "normalv2": Quality = Game.Enums.ItemQuality.NormalV2; break;
case "normalv3": Quality = Game.Enums.ItemQuality.NormalV3; break;
case "refined": Quality = Game.Enums.ItemQuality.Refined; break;
case "unique": Quality = Game.Enums.ItemQuality.Unique; break;
case "elite": Quality = Game.Enums.ItemQuality.Elite; break;
case "super": Quality = Game.Enums.ItemQuality.Super; break;
case "other": Quality = Game.Enums.ItemQuality.Other; break;
default:
{
Quality = (MessiProject.Game.Enums.ItemQuality)int.Parse(Data[4]);
break;
}
}
Database.ConquerItemBaseInformation CIBI = null;
foreach (Database.ConquerItemBaseInformation infos in Database.ConquerItemInformation.BaseInformations.Values)
{
if (infos.Name.ToLower() == ItemName.ToLower() && Quality == (Game.Enums.ItemQuality)(infos.ID % 10))
{
CIBI = infos;
}
}
if (CIBI == null)
break;
Interfaces.IConquerItem newItem = new GamePackets.ConquerItem(true);
newItem.ID = CIBI.ID;
newItem.Durability = CIBI.Durability;
newItem.MaximDurability = CIBI.Durability;
if (Data.Length > 3)
{
byte plus = 0;
byte.TryParse(Data[3], out plus);
newItem.Plus = Math.Min((byte)15, plus);
if (Data.Length > 4)
{
byte bless = 0;
byte.TryParse(Data[6], out bless);
newItem.Bless = Math.Min((byte)7, bless);
if (Data.Length > 5)
{
byte ench = 0;
byte.TryParse(Data[7], out ench);
newItem.Enchant = Math.Min((byte)255, ench);
if (Data.Length > 6)
{
byte soc1 = 0;
byte.TryParse(Data[8], out soc1);
if (Enum.IsDefined(typeof(Game.Enums.Gem), soc1))
{
newItem.SocketOne = (Game.Enums.Gem)soc1;
}
if (Data.Length > 7)
{
byte soc2 = 0;
byte.TryParse(Data[9], out soc2);
if (Enum.IsDefined(typeof(Game.Enums.Gem), soc2))
{
newItem.SocketTwo = (Game.Enums.Gem)soc2;
}
}
if (Data.Length > 10)
{
byte R = 0, G = 0, B = 0;
byte.TryParse(Data[10], out R);
byte.TryParse(Data[11], out G);
byte.TryParse(Data[12], out B);
newItem.SocketProgress = (uint)(B | (G << 8) | (R << 16));
}
}
}
}
}
newItem.Color = (MessiProject.Game.Enums.Color)ServerBase.Kernel.Random.Next(4, 8);
Client.Inventory.Add(newItem, Game.Enums.ItemUse.CreateAndAdd);
break;
}
Well .. It ends with Data[9] .. So it should be something like that :
@give name item MeteorScroll 5 0 0 0 0
If it doesn't work for any items or this too! Then change "5" to be from "1" to "10".. Try each one till you get the required item!
Don't forget to make sure that the name of the item and char are like yours!!!! With Caps and non Caps letters!
[Help]Problem at character creation - 5735 09/28/2013 - CO2 Private Server - 5 Replies Well, it's taking me so long to get what's going on when I try to create a character at version 5735, it freezes at "creating character" and if i close the client and re-open, when I log it says my character has been deleted, anyone knows how to fix it?
problem in login patch 5735 08/10/2013 - CO2 Private Server - 1 Replies if open server and login from anther ip only 1 account can login and the other can't but if i open server on my computer i can open 3 acc without any problem
5735+ Upgrade. 07/01/2013 - CO2 Private Server - 9 Replies hey every1.
any one has the will to share all the packet that has been changed.
all I get.
1006 CharacterInfo
1009 #region Item/Ping (1009) // ItemUsage //ObserveEquipment or itemview
10010 Data
10014 Spwanpacket Entity.cs //Equipment.cs
10017 update.cs
Command problem 12/12/2011 - Metin2 Private Server - 2 Replies Abend Epvp,
Immer wenn ich ein mob rufen will mit dem befehl /m 101 z.B kommt der befehl wurde nicht gefunden in der game datei stand der befehl auch als /m drinne
was kann ich jetzt tun damit der befehl geht?
GM Command Problem 03/11/2010 - Metin2 Private Server - 9 Replies Habe eine Frage bezüglich den GM Commands :
Wie geht der Command um das maximale TP zu erhöhen? Der Code :
/set_maxhp 15000
geht nicht....
In BanWord ist der auch nicht....
Da steht immer Befehl nicht gefunden....
Wie lautet der?