PDA

View Full Version : Broken Doors, Disappearing.


complexity
12-27-2004, 12:21 PM
This is good for broken doors, it will list all the id's in your log after you type spot. Then the id's you cant find our the missing ones. So you make a new door with the same id thats missing. And delete it.

ON SELECT
{ "\x0dServer: " SERVERNAME & " Room: " & ROOMNAME & " ID: " & ROOMID
ITOA & LOGMSG
"There are " NBRDOORS ITOA & " doors, " & NBRSPOTS NBRDOORS - ITOA &
" spots and " & NBRROOMUSERS ITOA & " users." & LOGMSG
{ "Door/Spot #" i 1 + ITOA & ": ID = " & i SPOTIDX ITOA &
" State = " & i SPOTIDX GETSPOTSTATE ITOA &
{ " Name = \"" & i SPOTIDX SPOTNAME & "\"" & } i SPOTIDX SPOTNAME "" ==
NOT IF
{ " Dest = " & i SPOTIDX SPOTDEST ITOA & } i SPOTIDX SPOTDEST 0 <> IF
{ " <Locked>" & } i SPOTIDX ISLOCKED IF
{ " <In Spot>" & } i SPOTIDX INSPOT IF LOGMSG i ++ } { i NBRSPOTS < } WHILE
"" CHATSTR = }