<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://game.etao.net/w/index.php?action=history&amp;feed=atom&amp;title=Scripts_For_Admins</id>
	<title>Scripts For Admins - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://game.etao.net/w/index.php?action=history&amp;feed=atom&amp;title=Scripts_For_Admins"/>
	<link rel="alternate" type="text/html" href="https://game.etao.net/w/index.php?title=Scripts_For_Admins&amp;action=history"/>
	<updated>2026-05-05T23:27:56Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://game.etao.net/w/index.php?title=Scripts_For_Admins&amp;diff=96&amp;oldid=prev</id>
		<title>imported&gt;朱志凌：​创建页面，内容为“{{Navigation for Stendhal Top|GMs}} {{Navigation for Stendhal GMs}}   == General Info ==  Highlevel admins can invoke scripts using the &#039;&#039;&#039;/script&#039;&#039;&#039;-command:  /scri…”</title>
		<link rel="alternate" type="text/html" href="https://game.etao.net/w/index.php?title=Scripts_For_Admins&amp;diff=96&amp;oldid=prev"/>
		<updated>2020-04-20T07:24:27Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{Navigation for Stendhal Top|GMs}} {{Navigation for Stendhal GMs}}   == General Info ==  Highlevel admins can invoke scripts using the &amp;#039;&amp;#039;&amp;#039;/script&amp;#039;&amp;#039;&amp;#039;-command:  /scri…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Navigation for Stendhal Top|GMs}}&lt;br /&gt;
{{Navigation for Stendhal GMs}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== General Info ==&lt;br /&gt;
&lt;br /&gt;
Highlevel admins can invoke scripts using the &amp;#039;&amp;#039;&amp;#039;/script&amp;#039;&amp;#039;&amp;#039;-command:&lt;br /&gt;
 /script &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;-execute|-load|-unload] &amp;#039;&amp;#039;scriptname&amp;#039;&amp;#039; &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;params&amp;#039;&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
The default action is &amp;#039;&amp;#039;execute&amp;#039;&amp;#039; with simply executes the script. If you use &amp;#039;&amp;#039;load&amp;#039;&amp;#039; 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 &amp;#039;&amp;#039;unload&amp;#039;&amp;#039;. 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).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;As with every admin action, the invocation of scripts is logged. Do not abuse it.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Scripts and Parameters ==&lt;br /&gt;
=== Admin Signs ===&lt;br /&gt;
; /script AdminSign.class &amp;#039;&amp;#039;zone x y text&amp;#039;&amp;#039;&lt;br /&gt;
: Places a sign saying &amp;#039;&amp;#039;text&amp;#039;&amp;#039; in the &amp;#039;&amp;#039;zone&amp;#039;&amp;#039; at (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;). The first three parameters can be &amp;quot;-&amp;quot; to place the sign next to the admin.&lt;br /&gt;
&lt;br /&gt;
; /script AdminSign.class list&lt;br /&gt;
: Lists all signs created by admins&lt;br /&gt;
&lt;br /&gt;
; /script AdminSign.class del &amp;#039;&amp;#039;signnumber&amp;#039;&amp;#039;&lt;br /&gt;
: Removes the sign with that number (see list)&lt;br /&gt;
&lt;br /&gt;
=== Alter Quest State ===&lt;br /&gt;
; /script AlterQuest.class &amp;#039;&amp;#039;player&amp;#039;&amp;#039; &amp;#039;&amp;#039;questname&amp;#039;&amp;#039; &amp;#039;&amp;#039;state&amp;#039;&amp;#039;&lt;br /&gt;
: Manipulates the quest state of a player. Omit &amp;#039;&amp;#039;state&amp;#039;&amp;#039; to remove the quest.&lt;br /&gt;
&lt;br /&gt;
=== Bet Manager ===&lt;br /&gt;
This Script summons an NPC who will collect and pay bets at a raid:&lt;br /&gt;
; /script BetManager.class accept &amp;#039;&amp;#039;opponent1&amp;#039;&amp;#039; &amp;#039;&amp;#039;opponent2&amp;#039;&amp;#039; ...&lt;br /&gt;
: Summons the NPC and let it accept bets on &amp;#039;&amp;#039;opponent1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;opponent2&amp;#039;&amp;#039;, ...&lt;br /&gt;
&lt;br /&gt;
Then players can bet by saying something like:&lt;br /&gt;
* bet 50 ham on fire&lt;br /&gt;
* bet 5 cheese on water&lt;br /&gt;
&lt;br /&gt;
; /script BetManager.class action&lt;br /&gt;
: The game master started the action closing the betting time&lt;br /&gt;
&lt;br /&gt;
; /script BetManager.class winner &amp;#039;&amp;#039;opponent&amp;#039;&amp;#039;&lt;br /&gt;
: After the game master has to tell the NPC who won:&lt;br /&gt;
&lt;br /&gt;
The NPC will than tell all players the results and give it to winners:&lt;br /&gt;
* mort bet 50 ham on fire and won an additional 50 ham&lt;br /&gt;
* hendrik lost 5 cheese betting on water&lt;br /&gt;
&lt;br /&gt;
Note: Betting is possible in &amp;quot;idle conversation state&amp;quot; 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)&lt;br /&gt;
&lt;br /&gt;
=== Deep Inspect ===&lt;br /&gt;
; /script DeepInspect.class &amp;#039;&amp;#039;player&amp;#039;&amp;#039;&lt;br /&gt;
: Deep inspects a player and all his/her items and slots (except personal ones like !buddies and !ignore)&lt;br /&gt;
&lt;br /&gt;
=== Drop Player Items ===&lt;br /&gt;
; /script DropPlayerItems.class &amp;#039;&amp;#039;player&amp;#039;&amp;#039; &amp;#039;&amp;#039;[amount]&amp;#039;&amp;#039; &amp;#039;&amp;#039;item&amp;#039;&amp;#039;&lt;br /&gt;
: Drop the specified amount of items from the player if they are equipped in the bag or body.&lt;br /&gt;
&lt;br /&gt;
=== Entity Search ===&lt;br /&gt;
; /script EntitySearch.class cname &amp;lt;creatureName&amp;gt;&lt;br /&gt;
: Show the number of the specified &amp;lt;creatureName&amp;gt; respawn points for each zone.&lt;br /&gt;
: Zones with zero are not shown&lt;br /&gt;
&lt;br /&gt;
; /script EntitySearch.class nonrespawn&lt;br /&gt;
: Shows the locations of all creatures that don&amp;#039;t respawn, for example creatures that were summoned by a GM, deathmatch creatures, etc.&lt;br /&gt;
: Sheep and pets are ignored.&lt;br /&gt;
&lt;br /&gt;
; /script EntitySearch.class zname &amp;lt;partialZoneName&amp;gt;&lt;br /&gt;
: Shows all zone names that contain &amp;lt;partialZoneName&amp;gt; and shows all the creature respawn points in each of those zones.&lt;br /&gt;
&lt;br /&gt;
=== Fix DM ===&lt;br /&gt;
; /script FixDM.class &amp;#039;&amp;#039;player&amp;#039;&amp;#039; &lt;br /&gt;
: * If a player has killed all 10 creatures in deathmatch but the assistant is not giving victory, this script allows player to claim victory.&lt;br /&gt;
: * The admin should check this is plausible then run the script. The player is then told they may claim victory. They will then gain their score and get the helmet increased, and the slot will be changed, just as though the assistant had got it right all along.&lt;br /&gt;
: * If the player was lying or wrong, i.e. the state was &amp;quot;done&amp;quot; already, or non-existent, the script tells the admin who ran it and does nothing to player.&lt;br /&gt;
: * If the player had bailed by mistake then the script sets the quest state to &amp;quot;done&amp;quot; so the player can leave when needed but the helmet must be fixed manually, as appropriate.&lt;br /&gt;
&lt;br /&gt;
=== List NPCs ===&lt;br /&gt;
; /script ListNPCs.class&lt;br /&gt;
:lists all npcs and their position&lt;br /&gt;
&lt;br /&gt;
=== Logout Player === &lt;br /&gt;
; /script LogoutPlayer.class &amp;#039;&amp;#039;player&amp;#039;&amp;#039;&lt;br /&gt;
:disconnects a player from the game&lt;br /&gt;
&lt;br /&gt;
=== NPC Shout ===&lt;br /&gt;
; /script NPCShout.class &amp;#039;&amp;#039;npc&amp;#039;&amp;#039; &amp;#039;&amp;#039;text&amp;#039;&amp;#039;&lt;br /&gt;
: &amp;#039;&amp;#039;npc&amp;#039;&amp;#039; shouts: &amp;#039;&amp;#039;text&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== NPC Shout to one Zone ===&lt;br /&gt;
; /script NPCShoutZone.class &amp;#039;&amp;#039;npc&amp;#039;&amp;#039; &amp;#039;&amp;#039;zone&amp;#039;&amp;#039; &amp;#039;&amp;#039;text&amp;#039;&amp;#039; &lt;br /&gt;
: &amp;#039;&amp;#039;npc&amp;#039;&amp;#039; shouts &amp;#039;&amp;#039;text&amp;#039;&amp;#039; to players in given &amp;#039;&amp;#039;zone&amp;#039;&amp;#039;. Use - in place of zone to make it your current zone.&lt;br /&gt;
&lt;br /&gt;
=== Plague ===&lt;br /&gt;
; /script Plague.class &amp;#039;&amp;#039;ringcount&amp;#039;&amp;#039; &amp;#039;&amp;#039;creature&amp;#039;&amp;#039;&lt;br /&gt;
: summon a large numbers of &amp;#039;&amp;#039;creatures&amp;#039;&amp;#039; around you. Please note that &amp;#039;&amp;#039;ringcount&amp;#039;&amp;#039; must be below 3 in order to prevent the clients to die because of an OutOfMemoryError.&lt;br /&gt;
&lt;br /&gt;
=== Where are the Players ===&lt;br /&gt;
; /script WhereWho.class&lt;br /&gt;
: Tells the game master where all the players are. This helps to decide whether to do a raid.&lt;br /&gt;
&lt;br /&gt;
=== Portable Tavern Maid ===&lt;br /&gt;
; /script Maria.class&lt;br /&gt;
: Summons Maria, who sells food&amp;amp;drinks. Put her away after use, by teleporting &amp;#039;&amp;#039;yourself&amp;#039;&amp;#039; to int_admin_playground and executing the script again or use -unload&lt;br /&gt;
&lt;br /&gt;
=== Reset Slot === &lt;br /&gt;
; /script ResetSlot.class &amp;#039;&amp;#039;player&amp;#039;&amp;#039; &amp;#039;&amp;#039;slot&amp;#039;&amp;#039;&lt;br /&gt;
: Resets the named slot such as !kills or !quests or !features. Useful for debugging. Use with extreme caution on main server.&lt;br /&gt;
&lt;br /&gt;
=== Server Reset ===&lt;br /&gt;
; /script ServerReset.class&lt;br /&gt;
: Use it in an &amp;#039;&amp;#039;emergency&amp;#039;&amp;#039; 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.&lt;/div&gt;</summary>
		<author><name>imported&gt;朱志凌</name></author>
	</entry>
</feed>