Okay well I was trying do warehouse laod like this:
[/CODE]
It is just creating empty items >< I tried with UID, without UID, with MaxDur, without MaxDur, with CurDur, without CurDur. Nothing seems to work.
It saves fine and it counts how many items u have saved correctly, while trying to load.
But it just makes all the items empty.
This is how it saves: (Example on 130blade)
Any solutions or I just keep tryin? :)
Thanks
Code:
[code]
//Code after korvacs >.<
public static void LoadTCWH(GameClient C)
{
C.MyChar.Warehouses.TCWarehouse.Clear();
MyIni wr = new MyIni(@"C:\Database\TCWH\" + C.MyChar.Name + ".ini");
byte i = wr.ReadByte("TC", "Count", 0);
if (i >= 1)
{
Item ii = new Item();
ii.ID = wr.ReadUInt32(i.ToString(), "ID", 0);
ii.Plus = wr.ReadByte(i.ToString(), "Plus", 0);
ii.Bless = wr.ReadByte(i.ToString(), "Bless", 0);
ii.Enchant = wr.ReadByte(i.ToString(), "Enchant", 0);
ii.Soc1 = (Item.Gem)wr.ReadByte(i.ToString(), "Soc1", 0);
ii.Soc2 = (Item.Gem)wr.ReadByte(i.ToString(), "Soc2", 0);
ii.UID = (uint)C.MyChar.Rnd.Next(10000000);
ii.MaxDur = ii.DBInfo.Durability;
ii.CurDur = ii.MaxDur;
C.MyChar.Warehouses.TCWarehouse.Add(ii);
i--;
}
C.MyChar.MyClient.LocalMessage(2000, "TwinCity Warehouse loaded!");
}
It is just creating empty items >< I tried with UID, without UID, with MaxDur, without MaxDur, with CurDur, without CurDur. Nothing seems to work.
It saves fine and it counts how many items u have saved correctly, while trying to load.
But it just makes all the items empty.
This is how it saves: (Example on 130blade)
Code:
[TC] [0]ID=410339 [0]Plus=12 [0]Bless=7 [0]Enchant=255 [0]Soc1=13 [0]Soc2=13 [0]UID=1337 [0]MaxDur=500 [0]CurDur=500 Count=1
Thanks