Quote:
Originally Posted by ImmuneOne
How hard is it to understand that if it hasn't been saved before it won't load correctly? Create a new account and character.
#EDIT
By the way this just proves your moronic brains wrong;
|
Can you please get a hold of your anger management problems for just a second? I'm not a moron and I have created a new account and character and I'm telling you that I'm getting that problem. As I said, I'm not flaming at you- so show some respect. Treat others as you'd like to be treated. If I really wanted to I could level down to your level and start calling people morons because it doesn't work for some people. This isn't a hate thread, plus I'm 99% sure that I did everything right.
And to everyone else, control yourselves too. I'm really tired of seeing so many stupid comments of people trying to get back at each other. I'm not naming anyone... but it's just pathetic. This is a community thread, not a flame thread- and lets keep it that way.
This is the code that I have:
Code:
public void WriteThis(System.IO.BinaryWriter I)
{
if (ID != 0 && UID == 0) UID = (uint)Program.Rnd.Next(10000000);
if (ID != 0 && UID == 0) UID = (uint)World.Rnd.Next(10000000);
I.Write((byte)25);
I.Write(UID);
I.Write(ID);
I.Write(Plus);
I.Write(Bless);
I.Write(Enchant);
I.Write((byte)Soc1);
I.Write((byte)Soc2);
I.Write(MaxDur);
I.Write(CurDur);
I.Write(FreeItem);
I.Write(TalismanProgress);
I.Write(Progress);
I.Write((byte)Color);
[COLOR="Red"]I.Write(Locked);[/COLOR]
}
Code:
if (Database.DatabaseItems.Contains(ID))
{
Plus = I.ReadByte();
Bless = I.ReadByte();
Enchant = I.ReadByte();
Soc1 = (Gem)I.ReadByte();
Soc2 = (Gem)I.ReadByte();
MaxDur = I.ReadUInt16();
CurDur = I.ReadUInt16();
FreeItem = I.ReadBoolean();
TalismanProgress = I.ReadUInt32();
Progress = I.ReadUInt16();
Color = (ArmorColor)I.ReadByte();
[COLOR="Red"]Locked = I.ReadInt32();[/COLOR]
}
That's the end of the save code 'you' coded. I'm not saying that you didn't put thought into it... I mean, maybe you did code it completely without looking at it- but at least give him some credit.
Yes, I've followed the

guide. It locks it just like it should. I can't unlock it but we'll save that error for later. I can probably fix it.
So you released it. If you think I did something wrong then take a look.
Tell me what I did wrong because i'm not seeing it.