SphereCommunity
server trigger question / account info question - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: server trigger question / account info question (/Thread-server-trigger-question-account-info-question)



server trigger question / account info question - Rattlehead - 03-29-2013 02:32 PM

ok, first, i would like to ask, why is it that there was never any ARG included for a password in f_onaccount_create??
(yes i know that you can catch it using serv.account.<ARGS>.password) i just feel that it would has been a little easier on the devs is all, maybe think about including it in newer versions, just a suggestion Wink

and that kinda ties in to my next question, i know there is someway i can catch it with a loop, but im kinda rusty cus its been so long, i want to catch each CHARUID of each character on the account on each login, but i notice that all the characters are referred to using the same keyword, ex.

CHARUID=01e45
CHARUID=01e52
CHARUID=01e7a
CHARUID=01e6b
CHARUID=01e88

so, how would i go about catching all of the info from these with a loop?

serv.account.<ARGS>.charuid is obviously only going to pull the first in the list, i cant think of a good way to cycle through all of them, or for that matter how to even get the second one oO

and yes, i tried to search a bit, couldnt find anything tho Sad


RE: server trigger question / account info question - Rattlehead - 03-29-2013 05:20 PM

let me make an edit to this, you cannot get the password in such a way as i posted above, it gives an error 'cant resolve <serv.account.xxxxx.password>'

same with a couple other server triggers. . . .


RE: server trigger question / account info question - darksun84 - 03-29-2013 07:55 PM

try with serv.account.<args>.char.n.uid where n is the nth character


RE: server trigger question / account info question - Rattlehead - 03-30-2013 08:40 PM

ill give it a try and see what i come up with man, thx!