Dankoo
Active Member
- Joined
- Sep 4, 2010
- Messages
- 1,007
- Reaction score
- 27
I'm trying to do an track item system by adapting this script: http://otland.net/f35/random-attributes-71833/#post736133
So, my system works like:
I set this to the item I want to track:
And it's working actually, but there are two problems:
- The trackid that is set is randomic, so there's a chance to get two trackids, it should be SERIAL
- To get information about attributes trough SQL it's kinda impossible, 'cause it's stored in BLOB (binaries)
What I want to change in the code:
Instead going random, set a serial number
Instead storing this number in item's attributes, set in the column "trackid" on players_items
I really have to leave now, I'll post what I've done here in a few, but it's easily modifyable trhough the original script... I don't know shi* about c++ and managed to do it lol
Thanks in advance. ^_^
So, my system works like:
I set this to the item I want to track:
XML:
<item id="2195" name="boots of haste">
<attribute key="weight" value="750" />
<attribute key="slotType" value="feet" />
<attribute key="speed" value="40" />
<attribute key="trackid" chance="100" random_min="1" random_max="100" />
<attribute key="showattributes" value="1" />
</item>
And it's working actually, but there are two problems:
- The trackid that is set is randomic, so there's a chance to get two trackids, it should be SERIAL
- To get information about attributes trough SQL it's kinda impossible, 'cause it's stored in BLOB (binaries)
What I want to change in the code:
Instead going random, set a serial number
Instead storing this number in item's attributes, set in the column "trackid" on players_items
I really have to leave now, I'll post what I've done here in a few, but it's easily modifyable trhough the original script... I don't know shi* about c++ and managed to do it lol
Thanks in advance. ^_^
Last edited: