DefaultCmdLevel on Account Creat

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Zhok

DefaultCmdLevel on Account Creat

Post by Zhok »

Hi,
I try to make a script, witch creats a account an set a DefaultCmdLevel. Creating a account is easy but set the DefaultCmdLevel is a problem.
i thougt i could make that with

Code: Select all

account.setprop("DefaultCmdLevel", "test");
but how i geht the account object, when i only have the account name?

and will it work if i have the account object?
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

POL 096

10-29 Austin
Added : polsys::GetCmdLevelName(number) - Will get a command level's name.
Added : polsys::GetCmdLevelNumber(name) - Will get the numeric value of a command level.
Added : polsys::GetPackageByName(name) - Will return a package reference.
Added : account.SetDefaultCmdLevel(number) - Will set the account's default command level.
Added : account.defaultcmdlevel - Will return a number for the accounts default command level.

POL 095

03-28 Unreal
SetDefaultCmdLevel : You have to do it the hard way(by hand). I think correct me if I am wrong.
Zhok

Post by Zhok »

I've now Pol 096 runing but SetDefaultCmdLevel don't work. Is there a Bug or is my script wrong?

Code: Select all

use uo;

program textcmd_creatwithcmdlevel(who)
		var act := CreateAccount("tester", "test", 1); 
		act.SetDefaultCmdLevel(3);
endprogram
If i try act.defaultcmdlevel, i get 0, player level, as output.
Post Reply