I added item lock to my server and I'm getting the same error 3 times. I don't know what it means, I even google'd it >.>
2.
3.
Changing "public byte Locked = 0;" to "public bool Locked = 0;" just made more errors.
1.Quote:
cannot implicitly convert type 'byte' to 'bool'
Code:
P.WriteByte(I.Enchant);
P.Move(6);
if [COLOR="Red"][U](I.Locked)[/U][/COLOR]
{
P.WriteInt16(3);
}
Code:
P.WriteByte(I.Enchant);
P.Move(6);
if [U][COLOR="Red"](I.Locked)[/COLOR][/U]
P.WriteInt16(3);
else P.WriteInt16(0);
if (I.Color == 0)
I.Color = (Game.Item.ArmorColor)new Random().Next(1, 9);
P.WriteInt32((uint)I.Color);
P.WriteInt32(I.Progress);
Code:
P.WriteByte(I.Enchant);
P.Move(6);
if [U][COLOR="Red"](I.Locked)[/COLOR][/U]
P.WriteInt16(3);
else P.WriteInt16(0);
if (I.Color == 0)
I.Color = (Game.Item.ArmorColor)new Random().Next(1, 9);
P.WriteInt32((uint)I.Color);
P.WriteInt32(I.Progress);