View Full Version : Recognizing unmapped rooms
Liagala
08-06-2010, 10:21 AM
I want to write a script where Lich recognizes whenever I'm in a certain room, and does stuff. The problem is, the room in question doesn't have a unique ID. It's a table, and not included on the maps. Short of periodically LOOKing and matching room description, is there any way to do this?
Also, if anyone happened to save the information from the Documentation section of lichproject.com, I would be eternally grateful if you sent it to me. I missed the thread where Spiffy said it was coming down, and didn't save any of it.
Tordane
08-06-2010, 10:35 AM
I want to write a script where Lich recognizes whenever I'm in a certain room, and does stuff. The problem is, the room in question doesn't have a unique ID. It's a table, and not included on the maps. Short of periodically LOOKing and matching room description, is there any way to do this?
Also, if anyone happened to save the information from the Documentation section of lichproject.com, I would be eternally grateful if you sent it to me. I missed the thread where Spiffy said it was coming down, and didn't save any of it.
if checkroom == table
Liagala
08-06-2010, 10:39 AM
if checkroom == table
Well that was easy. Much appreciated!
pabstblueribbon
08-06-2010, 10:43 AM
I want to write a script where Lich recognizes whenever I'm in a certain room, and does stuff. The problem is, the room in question doesn't have a unique ID. It's a table, and not included on the maps. Short of periodically LOOKing and matching room description, is there any way to do this?
Also, if anyone happened to save the information from the Documentation section of lichproject.com, I would be eternally grateful if you sent it to me. I missed the thread where Spiffy said it was coming down, and didn't save any of it.
Sounds daunting, but its incredibly easy to read... lich.rbw
DaCapn
08-06-2010, 11:23 AM
Also, if anyone happened to save the information from the Documentation section of lichproject.com, I would be eternally grateful if you sent it to me. I missed the thread where Spiffy said it was coming down, and didn't save any of it.
http://www.krakiipedia.org/wiki/Lich_scripting_reference
Daerkstar
08-06-2010, 12:51 PM
Its also still on Shaelun's site:
http://lichproject.sourceforge.net/api.xml
Liagala
08-06-2010, 01:46 PM
Awesome. Between those two sites and the lich code itself, I think I'm good to go for a bit. Thanks!
Gibreficul
08-06-2010, 08:23 PM
def mymove(room = false)
fput "out" if checkroom =~ /table/i
if room
if hiding?
start_script("go2",['typeahead=0', room, '_disable_confirm_'])
wait_while{running?("go2")}
else
start_script("go2",[room, '_disable_confirm_'])
wait_while{running?("go2")}
end
else
end
end
That's how I did it.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.