Scripts For Admins: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Hendrik Brummermann
converted from groovy to reloadable java-classes and added some details
imported>Hendrik Brummermann
added AlterQuest and BetManager
Line 22: Line 22:
; /script AdminSign.class del ''signnumber''
; /script AdminSign.class del ''signnumber''
: Removes the sign with that number (see list)
: Removes the sign with that number (see list)

=== Alter Quest State ===
; /script AlterQuest.class ''player'' ''questname'' ''state''
: Manipulates the quest state of a player. Ommit ''state'' to remove the quest.

=== 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'', ...

Then players can bet by saying something like:
* bet 50 ham on fire
* bet 5 cheese on water

; /script BetManager.class action
: The game master started the action closing the betting time

; /script BetManager.class winner ''opponent''
: After the game the game master has to tell the NPC who won:</p>

The NPC will than tell all players the results and give it to winners:
* mort betted 50 ham on fire and won an additional 50 ham
* 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 where more than 15 players)


=== Portable Tavern Maid ===
=== Portable Tavern Maid ===