Scripts For Admins: Difference between revisions
Jump to navigation
Jump to search
imported>Hendrik Brummermann converted from groovy to reloadable java-classes and added some details |
imported>Hendrik Brummermann converted from groovy to reloadable java-classes and added some details |
(No difference)
| |
Revision as of 20:49, 21 September 2006
This articles describes the new scripting system since Stendhal 0.34 (upcomming release). See Stendhal:Groovy Scripts For Admins for current release.
General Info
Highlevel admins can invoke scripts using the /script-command:
/script [-execute|-load|-unload] scriptname [params]
The default action is execute with simply executes the script. If you use load then all the modifications done by a previous invokation of this script are removed. You can remove everything a script did by invoking it with unload. execute is targeted at admins while load/unload is for developers. (But an admin may want to remove all summoned monsters in case some surfied the raid and ran away).
As every admin action the invokation of scripts is logged. Do not abuse it.
Scripts and Parameters
Admin Signs
- /script AdminSign.class zone x y text
- Places a sign saying text in the zone at (x, y). The first three parameters can be "-" to place the sign next to the admin.
- /script AdminSign.class list
- Lists all sings created by admins
- /script AdminSign.class del signnumber
- Removes the sign with that number (see list)
Portable Tavern Maid
- /script Maria.class
- Summons Maria, who sells food&drinks. Put here a way after use, by teleporting yourself to int_admin_playground and executing the script again or use -unload
Server Reset
- /script ServerReset.class
- Use it in an emergeny to shut down the server. If it is started in a loop, it will come back up otherwise it will stay down. If it is possible, please warn the players to logout and give them some time. Please note that it kills the server the hard way without doing a clean shutdown.