Boes Newbie
Joined: 26 Dec 2006 Posts: 5
|
Posted: Thu Dec 28, 2006 3:53 pm
ROM Mob Scanning Script. |
Ok for those who play on Rom based muds and get tired of typing glance 1.mob;glance 2.mob etc. here's a basic scanning script that will scan all the mobs in the current room, it can not tell the differnce between mobs and players though.
Code: |
#CLASS {utils|AreaScan}
#VAR scanstart {1} {0}
#TRIGGER "Near" {^Nearby %w:} {#gag;#gagblock;#STATE ScanCount 0;#T- AreaScan}
#TRIGGER "NotFar" {^Not Far %w:} {#gagblock;#STATE ScanCount 0;#T- AreaScan}
#TRIGGER "FarOff" {^Far off %w:} {#gagblock;#STATE ScanCount 0;#T- AreaScan}
#TRIGGER "ScanCount" {^Right Here:} {#var scanc 0}
#COND {^ - *} {#gag;#add scanc 1} {looppat|param=50}
#CLASS 0
|
and the alias to set it off
Code: |
#ALIAS scans {#T+ AreaScan;#var scanstart 1;#var scanc 0;#alarm "ScanTime" +0:0:1 {scan;#alarm +0:0:1 {#if (@scanc >= 1) {#Show Mobs In Current Room:@scanc;gg @scanc}}}}
#ALIAS gg {#var scan 1;#add scan %1;#loop 2,@scan {glan %i~.}}
|
Well yall have fun with it, and if anyone can come up with a better way of doing this, I would love to know about it. |
|