Search your source for commands... Sounds like you don't know what you are doing at all so search for "@cps" or "@silver", money, gold anything like that... Seems that either you are not using the @give command properly or it is not in your source at all.
Search your source for commands... Sounds like you don't know what you are doing at all so search for "@cps" or "@silver", money, gold anything like that... Seems that either you are not using the @give command properly or it is not in your source at all.
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!
case "fixed": Quality = Game.Enums.ItemQuality.Fixed; break;
case "0": Quality = Game.Enums.ItemQuality.Normal; break;
case "1": Quality = Game.Enums.ItemQuality.NormalV1; break;
case "2": Quality = Game.Enums.ItemQuality.NormalV2; break;
case "3": Quality = Game.Enums.ItemQuality.NormalV3; break;
case "4": Quality = Game.Enums.ItemQuality.Refined; break;
case "5": Quality = Game.Enums.ItemQuality.Unique; break;
case "6": Quality = Game.Enums.ItemQuality.Elite; break;
case "7": Quality = Game.Enums.ItemQuality.Super; break;
case "8": Quality = Game.Enums.ItemQuality.Other; break;
Just incase you wanted to swap it out for numbers... Simple editing but you can see what I have changed to do this, hope it helps
Well, you don't need to change them to be 1-10 .. Because if you set the Data to be 1-10 it will work.. These codes are cases codes! Not if and else codes!
What i mean, check this code :
That's means after you set as example 5 as Data[4] .. It set to be right, because Game.Enums.ItemQuality.Unique = 5 ! Then it's the same..
I don't know if you understand exactly what i mean!
Well, you don't need to change them to be 1-10 .. Because if you set the Data to be 1-10 it will work.. These codes are cases codes! Not if and else codes!
What i mean, check this code :
That's means after you set as example 5 as Data[4] .. It set to be right, because Game.Enums.ItemQuality.Unique = 5 ! Then it's the same..
I don't know if you understand exactly what i mean!
My bad been a long 3 days with no sleep and yeah I know exactly what you mean been a C# Coder for about 8 years along with everything else haha
[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?