This script is nice for when you have some pressing to do, and want to do it for a set amount of time. I'll be doing a rewrite of this so that it handles time a bit differently. For now, if you say pres for 7 minutes, it will pres for 7 minutes. What I plan on doing is having it prompt you for the number of hours you want to put on the corpse, rather than the amount of time you'd like to spend pressing.
The basics commands:
preson - This command starts it all. When you type preson, you will be prompted for 3 pieces of information:
- What is the preserve target? - This is the target for the spell. glorishan, 2.glorishan, etc...
- Whose corpse is it? - This indicates who will be sent the automated tell after you are finished pressing.
- Pres for how long? - This is where you set the amount of time you'd like to pres. It's set at 7 minutes by default (as a lvl 50 grey elven cleric, 7 minutes gives 100 hours most of the time).
It will continue to preserve until time has run out, and it will finish by sending a tell to the pres target letting them know how long you pressed it.
presoff - If you would like to interrupt the pressing, you can use this command and it'll turn everything off.
Note: you must have a preserve alias for this to work, and the alias must be 'pres' -
Code: Select all
#CLASS {preserve}
#ALIAS preson {
#t+ {preserve|pres}
#t+ {preserve|alarm}
prescorpse=%prompt( 2.pcorpse, "What is the preserve target?")
prescorpsename=%prompt( Glorishan, "Whose corpse is it?")
prestime=%prompt( 7:00, "Pres for how long? Must be in M:SS format")
#say Autopressing @prescorpse
presnow
}
#ALIAS presoff {
#t- {Preserve|pres}
#t- {Preserve|alarm}
#t- {Preserve|hours}
#untrig @prestime
#say Autopresser off
#wa 7000
#math hours1 (@hours/60)
#math hours2 (@hours-(@hours/60)*60)
#say @prescorpse preserved for @hours1 hours and @hours2 minutes
t @prescorpsename Pressed your corpse for @hours1 hours and @hours2 minutes (automated tell)
}
#ALIAS presnow {pres @prescorpse}
#CLASS 0
#CLASS {preserve|pres} {disable}
#TRIGGER {You complete your spell...} {presnow}
#TRIGGER {You don't have that spell memorized.} {
r
pray
med
}
#TRIGGER {Your prayers are complete.} {
st
presnow
}
#TRIGGER {You can't concentrate enough while resting.} {
st
presnow
}
#CLASS 0
#CLASS {preserve|alarm} {disable}
#TRIGGER {Corpse of * is preserved for (%n) additional hours.} {
#alarm {+@prestime} {
#t- {Preserve|pres}
#untrig @prestime
#say Autopresser off
#var hours
#alarm {+0:08} {
#t- {preserve|hours}
#math hours1 (@hours/60)
#math hours2 (@hours-(@hours/60)*60)
#say @prescorpse preserved for @hours1 hours and @hours2 minutes
t @prescorpsename Pressed @prescorpse for @hours1 hours and @hours2 minutes (automated tell)
}
}
#var hours 0
#t+ {preserve|hours}
#t- {preserve|alarm}
}
#CLASS 0
#CLASS {preserve|hours} {disable}
#TRIGGER {Corpse of * is preserved for (%n) additional hours.} {
#ad hours %1
#math hours1 (@hours/60)
#math hours2 (@hours-(@hours/60)*60)
#say @hours1 hr @hours2 min
}
#CLASS 0