How to set UOExpansion in accounts in pol096??

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.

Moderator: POL Developer

Post Reply
User avatar
Sadahar
Adept Poster
Posts: 81
Joined: Mon Dec 03, 2007 11:15 am

How to set UOExpansion in accounts in pol096??

Post by Sadahar »

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")
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: How to set UOExpansion in accounts in pol096??

Post by Yukiko »

UOExpansion is a member that can (should?) be set on the account when it is created.

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
}
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.
User avatar
Sadahar
Adept Poster
Posts: 81
Joined: Mon Dec 03, 2007 11:15 am

Re: How to set UOExpansion in accounts in pol096??

Post by Sadahar »

umm ill test it, but in docs that method doesnt appear until pol 097 :P
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: How to set UOExpansion in accounts in pol096??

Post by Yukiko »

According to online docs for POL 0.96 it does exist see http://docs.polserver.com/pol096/objref.php
Post Reply