Register for your free account! | Forgot your password?

You last visited: Today at 11:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



itemlock

Discussion on itemlock within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2010
Posts: 77
Received Thanks: 1
itemlock

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?
FadMucker is offline  
Old 08/23/2010, 22:20   #2
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
Yea, Create a loading/saving system for it
_DreadNought_ is offline  
Thanks
1 User
Old 08/23/2010, 22:25   #3
 
elite*gold: 0
Join Date: Aug 2010
Posts: 77
Received Thanks: 1
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
FadMucker is offline  
Old 08/23/2010, 22:42   #4
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
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.
.Beatz is offline  
Old 08/24/2010, 00:57   #5
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
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...
killersub is offline  
Thanks
1 User
Old 08/24/2010, 02:36   #6
 
elite*gold: 0
Join Date: Mar 2009
Posts: 27
Received Thanks: 0
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 ?
donjwan3 is offline  
Old 08/24/2010, 11:34   #7
 
elite*gold: 0
Join Date: Sep 2008
Posts: 494
Received Thanks: 120
omg try doing it by urself or quit...
Adziunia is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Bug]ItemLock save
10/27/2010 - CO2 Private Server - 6 Replies
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NewestCOServer.PacketHandling { public class ItemLock { public static void Handle(Main.GameClient GC, byte Data)
ItemLock for 5165 Problem?
06/22/2010 - CO2 Private Server - 1 Replies
okay, so I followed ImmuneOne's guide of adding and saving/loading item lock but somehow I keep gettin a dumb ass error, well actually I got it in different files...in character.cs its saying "Locked does not exist in the corrent context" and I added public int Locked; and public unit LockedDays;...then sum more in ItemLock.cs saying: "NewestCOServer.Game.Item does not contain a definition for 'Locked' and no extension method 'Locked' accepting a first arguement of type...
[REL] ItemLock Saving/Loading
03/31/2010 - CO2 PServer Guides & Releases - 27 Replies
Since all those people think a code is not complete because I didn't post a save/load method, here it is. Search for foreach (Game.Item I in C.Inventory) I.WriteThis(BW); Right click it and click on go to definition. Then search for
Itemlock ?
10/23/2009 - Metin2 - 7 Replies
Hi Leute wollte mal fragen ob es ein item anziehung gibt weil wenn man z:B Moblock an hat und items/yang droppt droppt man die manchmal weit weg also wer echt dankbar für ein oder mehrere antworten gibt es sowas :confused:



All times are GMT +2. The time now is 11:19.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.