Killfile Novice
Joined: 30 Sep 2002 Posts: 32 Location: USA
|
Posted: Mon Feb 03, 2003 3:04 pm
Copyover (may be Godwars specific) |
This script (or set of scripts) is generaly for immortals. It takes a single parameter and preforms necessary steps for a copyover, allowing an abort if necessary.
Some of the commands in this script are propritary to the mud I work on so here's a quick run down if you need to replace things.
Echo -- Basicly a glorified info channel
Prepare -- Forces players to call all equipment they own and also does a global restore for hitpoints etc. Forces save and backup commands on all players. Takes a message which is echoed to mud.
Copyover -- Does a live code update.
Pinfo - Another info channel
How to use....
Copyover [time in seconds] (Message for changes) -- will start the sequence.
AbortCopyover -- will abort the copyover sequence at any time.
And the script....
#ALIAS copyover {#if (@AbortCopyover = 0) {
pinfo #rC#po#rp#py#ro#pv#re#pr #wpreparations will commence in#r %eval( %1/2) #wseconds. Actual copyover in#r %1 #wseconds.#n
#WAIT %eval( %1 * 500)
} {
#SA "Copyover Abort Detected."
}
#if (@AbortCopyover = 0) {
prepare Please prepare for copyover in %eval( %1/2) seconds
#WAIT %eval( %1 * 500)
} {
#SA "Copyover Abort Detected."
}
#if (@AbortCopyover = 0) {
pinfo "#rCopyover #cNow#r. Changes:#w %-2"
~copyover
} {
#SA "Copyover Abort Detected."
}
AbortCopyover = 0} "Services"
#ALIAS AbortCopyover {AbortCopyover = 1} "Services"
#VAR AbortCopyover {0} {0} "Services"
--Killfile |
|