Trogdor's Pinpoint Script
From NecroWiki
This is a pinpoint script for zmud. It allows a housemate to request automated pinpoints by typing 'pp (name)'. So I would type: house pp Trogdor
To use it, just make a new class and paste this text in as the contents. I have set the class to be disabled at login.
#CLASS {pinpoint} {disable}
#VAR ppreq {0} {0}
#TRIGGER {You fail to pinpoint the location of} {
#STATE Pin 0
#IF (@ppreq = 1) {
house Pintpoint failed.
#var ppreq 0
} {#NO}
}
#TRIGGER "Pin" {~[HOUSE~] %1: 'pp %2'.} {
pinpoint %2
#var ppreq 1
}
#COND {~[(%w)%s~] - %2} {
house %1 is at %2
#var ppreq 0
} {within|param=500}
#CLASS 0

