This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

About getuser/setuser

Help for those learning Tcl or writing their own scripts.
Post Reply
N
Nara
Halfop
Posts: 40
Joined: Sun Jul 23, 2006 11:12 pm

About getuser/setuser

Post by Nara »

Ok, I'm currently trying to do a custom thing for each different user using a simple command thats already integrated [rather then writing one to pull it from files]. The problem is - the two commands I want to use are user-get and user-set, however, these are no longer available and the modern getuser/setuser won't permit custom variables. Is there a way to make a new variable for getuser/setuser or should I just go ahead and code it to read from file?

~Nara
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

What do you mean by custom variables, and why would setuser/getuser's XTRA fields not be sufficient?

It's not clear what exactly you're asking for.
N
Nara
Halfop
Posts: 40
Joined: Sun Jul 23, 2006 11:12 pm

Post by Nara »

Is there a way to make a new field [aka what I call variable] in those commands?

~Nara
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

yep:

Code: Select all

setuser $user XTRA <yourtype> <value>
and

Code: Select all

getuser $user XTRA <yourtype>
NML_375
Post Reply