Documentation error, or intentional?

Bug reports and feature requests.
Post Reply
Master Poster
Posts: 94
Joined: Sat Feb 04, 2006 1:24 pm
Location: Vienna, Austria

Documentation error, or intentional?

Post by OWHorus » Wed Aug 10, 2016 12:20 pm


up to now character.acct is a ref to the account object. character.acctname is the name of the account as string.

character.acct is reported as: 'deprecated, will be removed in next release, use Client instead'
character.acctname is not deprecated, will continue to work (really?)

The new client object has no acct member! So we cannot use 'client instead'.
Does this mean, that for character.acct there will be no replacement?

So instead of writing

var playeraccount := character.acct;

we will need to write

var playeraccount := FindAccount(character.client.accntname);

Or is this an oversight in documentation?

Also, while character.acctname is not deprecated, i.e. will continue to work normally, the new client object also has a member 'acctname', so one could write either character.acctname or character.client.acctname. True?


User avatar
POL Expert
Posts: 1130
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Re: Documentation error, or intentional?

Post by CWO » Wed Aug 10, 2016 10:54 pm

Now that you mention it, the documentation also lists client.acctname as Type "Account" but describes it as a string for the account name.

Forum Regular
Posts: 332
Joined: Fri Oct 31, 2008 3:18 am
Location: Italy

Re: Documentation error, or intentional?

Post by xeon » Thu Aug 11, 2016 5:27 am

I prefer the char.acct syntax than the FindAccount(char) syntax. Much cleaner. I hope the struct comes back.
Scripter Xeon | Zulu Hotel Italia 7th Age |

POL Developer
Posts: 635
Joined: Sun Feb 05, 2006 4:45 am

Re: Documentation error, or intentional?

Post by Turley » Thu Aug 11, 2016 10:47 am

Hehe this looks like a documentation error. It looks like it references:
03-24-2010 Turley:
Added: ClientRef object
pkt.sendpacket() & SendPacket() now accepts client or character
r/o members:
ip, acctname, clientversion, clientinfo, clienttype, clientver_detail, uo_expansion_client
used as prelogin param for packethooks instead of old struct (so you can send packets)
Added: character.client
returns ClientRef object or error
Note: This or next release duplicate members/methods get deleted from chr (except acctname)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest