How to set UOExpansion in accounts in pol096??
i cant find the way :S
Id like to know also how to set the default expansion (currently: "T2A")
How to set UOExpansion in accounts in pol096??
Moderator: POL Developer
-
- Distro Developer
- Posts: 2824
- Joined: Thu Feb 02, 2006 1:41 pm
- Location: San Antonio, Texas
- Contact:
Re: How to set UOExpansion in accounts in pol096??
UOExpansion is a member that can (should?) be set on the account when it is created.
You can use the method account.Set_UO_Expansion(expansion) to set this member's value on the respective account where account is the object reference to an account and expansion is a string containing one of the following values:
T2A
LBR
AOS
SE
ML
To set this on existing accounts I'd recommend having the logon.src script look for the UOExpansion member and check it is set to "T2A" if not use the above method to set it on the accounts as they log-in. For new accounts you'll want to add the above method to your account creation script(s).
I hope this is helpful. If you need further help feel free to ask.
Code: Select all
Account
{
Name someAccount
Password password
Enabled 1
Banned 1
UOExpansion ML
CProp LastIP a1:a2:S9:127.0.0.1S6:Character
CProp LastLogin i25323310
CProp email hopelivesproject@yahoo.com
}
T2A
LBR
AOS
SE
ML
To set this on existing accounts I'd recommend having the logon.src script look for the UOExpansion member and check it is set to "T2A" if not use the above method to set it on the accounts as they log-in. For new accounts you'll want to add the above method to your account creation script(s).
I hope this is helpful. If you need further help feel free to ask.
Re: How to set UOExpansion in accounts in pol096??
umm ill test it, but in docs that method doesnt appear until pol 097 

-
- Distro Developer
- Posts: 2824
- Joined: Thu Feb 02, 2006 1:41 pm
- Location: San Antonio, Texas
- Contact:
Re: How to set UOExpansion in accounts in pol096??
According to online docs for POL 0.96 it does exist see http://docs.polserver.com/pol096/objref.php