Scripts For Admins: Difference between revisions

Content deleted Content added
imported>AntumDeluge
Scripts and Parameters: organize player management scripts
imported>AntumDeluge
organize NPC management scripts
Line 29:
 
=== 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''<zone> <x> <y> <text>''
: Description:
: Lists all signs created by admins
:: 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 del ''signnumberlist''
: Description:
: Removes the sign with that number (see list)
:: Lists all signs created by admins
 
; /script AdminSign.class ''zonedel x y text<signnumber>''
: Description:
:: Removes the sign with that number (see list)
: Parameters:
:: '''signnumber:''' Integer sign identifier.
 
=== Bet Manager ===
 
This Script summons an NPC who will collect and pay bets at a raid:.
; /script BetManager.class accept ''opponent1'' ''opponent2'' ...
 
: Summons the NPC and let it accept bets on ''opponent1'', ''opponent2'', ...
; /script BetManager.class ''accept ''<opponent1''> ''<opponent2''> [...]''
: Description:
:: Summons the NPC and let it accept bets on ''opponent1'', ''opponent2'', ...
: Parameters:
:: All parameters are names of players.
 
Then players can bet by saying something like:
Line 47 ⟶ 58:
* bet 5 cheese on water
 
; /script BetManager.class ''action''
: Description:
:: The game master started the action closing the betting time.
 
; /script BetManager.class winner ''winner <opponent>''
: Description:
:: After the game master has to tell the NPC who won:.
: Parameters:
:: '''opponent:''' Name of target player.
 
The NPC will than tell all players the results and give it to winners:
Line 60 ⟶ 75:
 
=== Entity Search ===
; /script EntitySearch.class cname <creatureName>
: Show the number of the specified <creatureName> respawn points for each zone.
: Zones with zero are not shown
 
; /script EntitySearch.class nonrespawn''cname <creatureName>''
: Description:
: Shows the locations of all creatures that don't respawn, for example creatures that were summoned by a GM, deathmatch creatures, etc.
:: Show the number of the specified <creatureName> respawn points for each zone. Zones with zero are not shown
: Sheep and pets are ignored.
: Parameters:
:: '''creatureName:''' Name of target creature.
 
; /script EntitySearch.class zname <partialZoneName>''nonrespawn''
: Description:
: Shows all zone names that contain <partialZoneName> and shows all the creature respawn points in each of those zones.
:: Shows the locations of all creatures that don't respawn, for example creatures that were summoned by a GM, deathmatch creatures, etc. Sheep and pets are ignored.
 
; /script EntitySearch.class cnamezname ''<creatureNamepartialZoneName>''
: Description:
:: Shows all zone names that contain <partialZoneName> and shows all the creature respawn points in each of those zones.
: Parameters:
:: '''partialZoneName:''' Name of target zone.
 
=== Server Reset ===
 
; /script ServerReset.class
: Description:
:: 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.
 
=== NPC Management ===
 
=== List NPCs ===
 
; /script ListNPCs.class
: Description:
:lists: Lists all npcs and their position.
 
=== NPC Shout ===
 
; /script NPCShout.class ''npc'' ''text''
:; /script NPCShout.class ''<npc''> shouts: ''<text>''
: Description:
:: Send a notification to all players using an NPC name.
: Parameters:
:: '''npc:''' Name of target NPC.
:: '''text:''' Message that players will receive.
 
=== NPC Shout to one Zone ===
 
; /script NPCShoutZone.class ''npc'' ''zone'' ''text''
; /script NPCShoutNPCShoutZone.class ''<npc''> ''{<zone>|-} <text>''
: ''npc'' shouts ''text'' to players in given ''zone''. Use - in place of zone to make it your current zone.
: Description:
:: Send a notification to all players in a specific zone using an NPC name.
: Parameters:
:: '''npc:''' Name of target NPC.
:: '''zone:''' Name of target zone.
:: '''-:''' Target zone will be your current zone.
:: '''text:''' Message that players will receive.
 
=== Portable Tavern Maid ===
; /script Maria.class
: Summons Maria, who sells food&drinks. Put her away after use, by teleporting ''yourself'' to int_admin_playground and executing the script again or use -unload
 
; /script Maria.class
=== Server Reset ===
: Description:
; /script ServerReset.class
:: Summons Maria, who sells food&drinks. Put her away after use, by teleporting ''yourself'' to int_admin_playground and executing the script again or use -unload
: 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.
 
== Player Management ==