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: | altere |
---|---|
Location: | Houston, TX |
Users: | 66 |
Nodes: | 4 (0 / 4) |
Uptime: | 11:40:39 |
Calls: | 728 |
Calls today: | 1 |
Files: | 7,667 |
Messages: | 295,547 |