 |
David256 Beginner
Joined: 07 Nov 2006 Posts: 22
|
Posted: Sat Feb 10, 2007 6:01 am
Integrating the mapper with some scripts |
Is it possible to get a list of all the currently selected rooms on the mapper, from an alias or trigger?
Also, when double clicking a room, is it possible to run a script instead of autowalking? |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Sat Feb 10, 2007 3:37 pm |
The first require the zMapper plugin to ge the selected rooms.
For your second question: It is possible. The way to do it is capture a direction being sent, check the %destroom to determine whether it is a walk and then take whatever actions are required. Here is an example from my scripts, it should give some sort of starting point.
#ONINPUT {^(*)$} {CommandSent="%1";#GAG;#IF (%destroom) {PathSet="";#FORALL %subchar(%pathexpand(%pathfrom(%roomnum,%destroom)),".()","") {#IF (%len("%i")=1) {PathSet=%additem(@DirConvertS("%i"),@PathSet)} {PathSet=%additem("%i",@PathSet)}};#NODIR 1};:veroule:%1} |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
David256 Beginner
Joined: 07 Nov 2006 Posts: 22
|
Posted: Sun Feb 11, 2007 6:15 am |
Woa clever trick
Works great, thanks a lot! |
|
|
 |
|
|