Page 1 of 1

DefaultCmdLevel on Account Creat

Posted: Sun Apr 02, 2006 2:08 am
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?

Posted: Sun Apr 02, 2006 2:42 am
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.

Posted: Mon Apr 03, 2006 4:19 am
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.