Scripts For Admins: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hendrik Brummermann No edit summary |
imported>Kymara m minor spellings |
||
| Line 4: | Line 4: | ||
/script <nowiki>[</nowiki>-execute|-load|-unload] ''scriptname'' <nowiki>[</nowiki>''params''] |
/script <nowiki>[</nowiki>-execute|-load|-unload] ''scriptname'' <nowiki>[</nowiki>''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 |
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 survived the raid and ran away). |
||
'''As every admin action the |
'''As with every admin action, the invocation of scripts is logged. Do not abuse it.''' |
||
== Scripts and Parameters == |
== Scripts and Parameters == |
||
| Line 14: | Line 14: | ||
; /script AdminSign.class list |
; /script AdminSign.class list |
||
: Lists all |
: Lists all signs created by admins |
||
; /script AdminSign.class del ''signnumber'' |
; /script AdminSign.class del ''signnumber'' |
||
| Line 21: | Line 21: | ||
=== Alter Quest State === |
=== Alter Quest State === |
||
; /script AlterQuest.class ''player'' ''questname'' ''state'' |
; /script AlterQuest.class ''player'' ''questname'' ''state'' |
||
: Manipulates the quest state of a player. |
: Manipulates the quest state of a player. Omit ''state'' to remove the quest. |
||
=== Bet Manager === |
=== Bet Manager === |
||
| Line 43: | Line 43: | ||
* hendrik lost 5 cheese betting on water |
* hendrik lost 5 cheese betting on water |
||
Note: Betting is possible in "idle conversation state" to enable interaction of a large number of players in a short time. (The last time i did a show-fight i was losing count because there |
Note: Betting is possible in "idle conversation state" to enable interaction of a large number of players in a short time. (The last time i did a show-fight i was losing count because there were more than 15 players) |
||
=== NPC Shout === |
=== NPC Shout === |
||
| Line 66: | Line 66: | ||
=== Server Reset === |
=== Server Reset === |
||
; /script ServerReset.class |
; /script ServerReset.class |
||
: Use it in an '' |
: Use it in an ''emergency'' 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. |
||