Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add this to the window scry script in the mapper folder
- if matches[2] == string.title(target) and tracking == 1 then
- sondy_roomtrack(matches[4])
- elseif matches[2] == findperson and tracking == 1 then
- sondy_roomtrack(matches[4])
- end
- -------------------
- make a new script and put this function in it
- function sondy_roomtrack(query)
- local result = mmp.searchRoom(query)
- if not tonumber(select(2, next(result))) then
- for roomid, roomname in pairs(result) do roomid = tonumber(roomid)
- mmp.gotoRoom(roomid)
- end
- else
- for roomname, roomid in pairs(result) do roomid = tonumber(roomid)
- mmp.gotoRoom(roomid)
- end
- end
- end
- --------------------
- create an alias something like ^track$ or ^find (\w+)$
- for the track one:
- tracking = 1
- send("abjure window "..target)
- tempTimer( 2.0, [[tracking = 0]])
- for the find one:
- findperson = string.title(matches[2])
- tracking = 1
- send("abjure window "..findperson)
- tempTimer( 2.0, [[tracking = 0]])
- ---------
- hopefuly this stuff works for you!
Add Comment
Please, Sign In to add comment