bbs_set_user_attribute(script_avatar_id, "1")
bbs_set_user_attribute(script_avatar_id, "1")
try
bbs_set_user_attribute("script_avatar_id", "1")
:) should just create and store as you want.
Excellent! Going to convert the 'avatar' mod to utilze these new calls
to
the db. Will make the code so much more clean as well. I found parsing
and
replacing a key/value pair in a text file (using lua) a bit convoluted anyway!
Cool. Where do you store the avatar ansi files? Are they somewhere
specific for your BBS? Or in the script data folder?
What I'm wondering is how hard it would be for other scripters to
utilize
the avatars in their own scripts without knowing particulars of the
sysop's installation.
Currently it's all just pulling from gfiles/faces.ans. Would there be
a
better place for it?
Hmm, well if you want to allow people to upload them i might suggest splitting them up into individual ansi files for each face and then
perhaps you could go by filename rather than offset, if they were
individual files i might suggest having them in a sub directory so
they
are stored together.
That sounds waaay cool... Also happy to add to git it you want to mess
with the code as well! I'll work on splitting out the individual
avatars.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,033 |
Nodes: | 15 (0 / 15) |
Uptime: | 124:56:25 |
Calls: | 529 |
Calls today: | 23 |
Files: | 95,154 |
D/L today: |
4,455 files (643M bytes) |
Messages: | 298,899 |
Posted today: | 12 |