Full Version : who Change level permision?
xmlspawner >>SpawnEditor 2 Troubleshooting >>who Change level permision?
<< Prev | Next >>
Foruno- 01-26-2007
Hello who change the level of use spawn editor to GM, now is level Admin.
Thx
ArteGordon- 01-26-2007
do you mean the access level required to use the transfer server?
Set the access level of the XTS command in TransferServer.cs on the server side.

CODE
CommandSystem.Register("XTS", AccessLevel.Administrator, new CommandEventHandler(XTS_OnCommand));

This will only set the level required to get the authentication tickets needed for the editor to communicate with the server. Starting and stopping the transfer server and listing currently authenticated users will still be admin-only.
Foruno- 01-26-2007
no, the GMs of the server cant spawn because dont have the level. The level necesari to merge, load, send, etc is Admin. Who chage this for a GMs? Thx
ArteGordon- 01-26-2007
First, change the accesslevel for the XTS command in TransferServer.cs to GM to allow them to be authenticated and access the transfer server.

QUOTE
CommandSystem.Register("XTS", AccessLevel.Administrator, new CommandEventHandler(XTS_OnCommand));

Then you can change the accesslevel for different operations such as loading and unloading spawners by going into the transfer server message data scripts like SaveSpawnerData.cs, GetSpawnerData.cs, UnloadSpawnerData.cs, and GetObjectData.cs and changing the accesslevel for the ProcessMessage methods

QUOTE
[ TransferAccess(AccessLevel.Administrator) ] public override TransferMessage ProcessMessage()

SaveSpawnerData controls saving spawners from the editor to the server
UnloadSpawnerData controls unloading spawners from the server
GetSpawnerData controls loading spawners to the editor from the server
GetObjectData controls loading realtime item/mobile data to the editor from the server.