Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
Boes
Newbie


Joined: 26 Dec 2006
Posts: 5

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net