Posts: 768
Threads: 40
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: May 2011
Reputation:
0
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 )
Posts: 768
Threads: 40
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: May 2011
Reputation:
0
#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
Posts: 272
Threads: 21
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jun 2012
Reputation:
0
#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.