Check the bit for stackable, to see if it is stackable or not, and there ya go
Author
Message
Austin POL Developer
Joined: 30 Jan 2006 Posts: 354 Location: San Diego, California
Posted: Thu Aug 31, 2006 4:50 am Post subject:
Quote:
[01:37] <MuadDib> why do i feel like i messed up, telling someone to check the UOFlag bit for stackable, in tiles.cfg, to see if an item is stackable or not :/
Heh!!!
Okay two methods.
You've read in ::tiles
var tiles_cfg := ReadConfigFile("::tiles");
You get the elem of the tile you want info for, using the graphic number.
var tile_elem := tiles_cfg[object.graphic];
You can do two things.
return tile_elem.Stackable;
or
return ( 0x800 & tile_elem.UoFlags );
Author
Message
Bytehawk
Joined: 03 Feb 2006 Posts: 56 Location: Germany, Franconia
Posted: Thu Aug 31, 2006 9:42 am Post subject:
*bites his tongue*
I was a bit overhasty on this. Please take my apologies.
I'm still working with 095 and was missing that possibilty there and thought I'd suggest it for a future release.
I won't suggest anything again before I looked deeper into 096/097, I swear. Sorry again
*crawls back into the coder dungeon*