LCKB
doubt with Catalog Editor 4 by Wizatek - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep1 Support (https://lckb.dev/forum/forumdisplay.php?fid=177)
+------ Forum: Solved Topics (https://lckb.dev/forum/forumdisplay.php?fid=145)
+------ Thread: doubt with Catalog Editor 4 by Wizatek (/showthread.php?tid=2339)



- soryjero - 08-21-2013


hello, i have a doubt with catalog editor 4 by wizatek.

 

there is an option called limit and i know that it is the number of packages that are available, but i dont know where is this option saved. i would like to know if it is saved on catalog.lod, on db or both.

 

 

thanks in advance.

 

P.S. here is a screen of option i ask for.

2




- Wizatek - 08-21-2013


The limit of a certain package is saved within the flag.

Why they made it so difficult i also dont understand.

 

The first few bits of the flag define the normal flag, and the last few bits define the limit

 

U can see it if u make 2 the same packages, put a limit on 1, and on the other put no limit.

when u update the database and see in there, u will notice that both flags are different.

 

(when your limited package is sold out ingame u can fill it again with /set_limit )




- soryjero - 08-21-2013


ok, so i understand you but i cant get it with an item.

 

2

 

i have selected this item and limit is 999 but in db appear flag = 1022976, so i cant find 999 in flag and i cant know which is normal flag.




- CDWriter - 08-21-2013


@2 i think what he is saying its in the flag here also .... take your 1022976 - 999 and this is your real flag nunber..1021977   like Wiz said

 

 saved within the flag. 




- Wizatek - 08-21-2013


Its a little more difficult then that, flags are binary code, u can try to understand it, or just thrust the editor will do the right job Wink

 

For a item to be limited u also need to put it in the limited items tab i think




- soryjero - 08-21-2013



Its a little more difficult then that, flags are binary code, u can try to understand it, or just thrust the editor will do the right job Wink

 

For a item to be limited u also need to put it in the limited items tab i think

 

ok, but if it is possible i would like to know how it works (i know binary code) and if not, will trust on editor Tongue




- Wizatek - 08-21-2013



#define CATALOG_FALG_TO_LIMIT(a, b) (b = 0 | (a >> 10)) // īŻ·Î±× FLAG Ãâ·Â

#define CATALOG_FALG_FROM_LIMIT(a, b) (a = a | (b
this is how barunson does it


- soryjero - 08-21-2013



#define CATALOG_FALG_TO_LIMIT(a, b) (b = 0 | (a >> 10)) // īŻ·Î±× FLAG Ãâ·Â
#define CATALOG_FALG_FROM_LIMIT(a, b) (a = a | (b << 10)) // īŻ·Î±× FLAG ÀÃâ€Ã‚·Ã‚
this is how barunson does it 

 

thanks.