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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Ransom
Newbie


Joined: 17 May 2002
Posts: 8
Location: USA

PostPosted: Mon Aug 25, 2003 11:05 pm   

Bugs&Conversion Problems with Zmud&Maper [:(]
 
I'm trying to scann the map for un-explored links in the curent room and go through the link(s) that arnt explored.

#loop 1,%numitems(%roomexit()) {#if %roomlink(,%item(%roomexit(),%i),)<0 {#show %item(%roomexit(),%i)}}

Is the code I'm trying to do.
But it generates l k yada for SE SW etc..

Also the code interpreter sees %roomlink(,dir,) as an error nomatter what it seems.

I'v looked through the form for examples, and function exampels, but havent found aneything that realy seems to apply. Is there a simple function to speedwalk dir's to normal dir's?

Ransom BoT.
A better bot for a better future!

PS using zM6.62
Thanks in advance..
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Aug 26, 2003 11:19 am   
 
This is the script I use:

#CLASS {UnfinishedScan}
#ALIAS uscan {UScanCount=0;UScanResults="";#T+ MapScanStat status;#WHILE (@UScanCount<%numrooms) {#ADD UScanCount 1;#FORALL %roomexit(%mapvnum(@UScanCount)) { #IF (%i) { #IF (%roomlink(%mapvnum(@UScanCount),%i)=-2) { #ADDITEM UScanResults {%mapvnum(@UScanCount)}}}}};#T- MapScanStat status}
#VAR UScanCount {0} {0}
#VAR UScanResults {}
#STAT {MapScan: %eval(@UScanCount*100/%numrooms)~%} "" "MapScanStat"
#CLASS 0

It produces a list of the rooms that have stub links.
Reply with quote
Ransom
Newbie


Joined: 17 May 2002
Posts: 8
Location: USA

PostPosted: Tue Aug 26, 2003 12:09 pm   
 
A verry nice script. I beleave I salw it on another post, though, not totaly what I'm after..
example:

#-# #
|/
#-@-?
/|
# # ?

should give me east and southeast as a result.. insted I'm getting E and J I'm just trying to calculate from the current room then potentualy move in that direction based on the result.

*is guna check over your script some more hopes he's not being as nieve as he probibly is..

Thanks though for your prompt reply :)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion 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