itemlock

08/23/2010 21:56 FadMucker#1
hey guys ive kinda got my item lock function to work it locks the items but when i equipt them there unlocked :/ anybody know a solution for this problem?
08/23/2010 22:20 _DreadNought_#2
Yea, Create a loading/saving system for it
08/23/2010 22:25 FadMucker#3
Quote:
Originally Posted by Eliminationn View Post
Yea, Create a loading/saving system for it
how wud i do that? still new to all of this :(
08/23/2010 22:42 .Beatz#4
Are you using MySql or ini also I am guessing its 5165?

if the answer is yes to ini and yes to 5165.
Have a look around the source and look at some of the other load/save functions around. After use a little bit of common sense and try to make a load and save function for the itemlock.

Once you have tried - failed - tried again and tried again post your itemlock save/load method here and people will be more than willing to helping you show you where your errors are.

Hope I helped.
08/24/2010 00:57 killersub#5
look lemme recall the Load/Save immuneone had released and check if u have everythin right...

Search for
Code:

foreach (Game.Item I in C.Inventory)
I.WriteThis(BW);

Right click it and click on go to definition.
Then search for
Code:

I.Write((byte)Color);

Then add underneath it;
Code:

I.Write(Locked);

Search for;
Code:

Color = (ArmorColor)I.ReadByte();

Add underneath it;
Code:

Locked = I.ReadInt32();

NOTE: This will only work when you followed my tutorial about implementing.

if u still have errors reply back to me...
08/24/2010 02:36 donjwan3#6
i did what u said to solve this problem but i got new problem the item disappear from my inventory what is the solution of this problem . can u write the readthis function and writethis function ? and loadchar and savechar ?
08/24/2010 11:34 Adziunia#7
omg try doing it by urself or quit...