View Full Version : Need couple easy scripts or clerics during invasions
vamosj
11-16-2013, 01:25 AM
Considering the body count of this last invasion, if someone could help us clerics out it would be greatly appreciated..
Would like a small script that would go back in room order and preserve any deaders who aren't.
Would like a small script that would go back in room order and cast Well of Life on the first deader that isn't linked to someone already.
Tillmen
11-16-2013, 11:33 PM
Here's some code from my clericbot script. I edited it slightly to make it work as a standalone script, and didn't test it. It might work. It should lifekeep dead people that aren't kept, and ignore dead people for however long appraise says they're kept, so you should be able to run it as often as you like without a lot of screen scroll.
$lifekeep_ends ||= Hash.new
for jerk in GameObj.pcs.find_all { |pc| pc.status =~ /dead/ }
if $lifekeep_ends[jerk.noun].to_i < Time.now.to_i
result = dothistimeout "appraise #{jerk.noun.downcase}", 5, /^You glance at #{jerk.noun} and immediately realize/
if result =~ /([0-9]+) second/
$lifekeep_ends[jerk.noun] = Time.now.to_i + $1.to_i
else
unless Spell[305].affordable?
echo 'waiting for mana...'
wait_until { Spell[305].affordable? }
end
Spell[305].cast("at ##{jerk.id}")
end
end
end
$lifekeep_ends.delete_if { |n,t| t < Time.now.to_i }
For linking, I've just been trying to link and recording if it failed. There's not a lot of cleric competition in Shattered, so I don't really know if appraise tells you that someone is linked or not or what it would look like.
vamosj
11-17-2013, 05:04 AM
Thanks Tillmen, I'll take a look next time to see if there is a message and post here... This'll help a lot during those huge invasions and we have like 40 dead people in a room.
vamosj
11-21-2013, 12:23 AM
Okay, finally was able to get an appraisal when a cleric is linked to someone..
Upon closer examination, you sense a translucent thread linking ****'s soul to ***SumCleric***.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.