Gammon Forum
Entire forum
MUSHclient
Plugins
GMCP Mapper from trigger
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Lerkista
(57 posts) bio
|
Date
| Sat 06 Aug 2016 08:23 AM (UTC) Amended on Sat 06 Aug 2016 08:25 AM (UTC) by Lerkista
|
Message
| Hi
Is there a way to run the "mapper find ..." from a trigger??
I have tried with:
CallPlugin("b6eae87ccedd84f510b74714", "map_find", "%2")
But give me this error:
Run-time error
Plugin: Aardwolf_GMCP_Mapper (called from world: Aardwolf)
Function/Sub: map_find called by Plugin Aardwolf_GMCP_Mapper
Reason: Executing plugin Aardwolf_GMCP_Mapper sub map_find
[string "Plugin: Aardwolf_GMCP_Mapper"]:2969: attempt to index local 'wildcards' (a nil value)
stack traceback:
[string "Plugin: Aardwolf_GMCP_Mapper"]:2969: in function <[string "Plugin: Aardwolf_GMCP_Mapper"]:2963>
Thanks | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #1 on Sat 06 Aug 2016 09:26 AM (UTC) |
Message
| mapper find is an alias accessible via Execute() or send_to: Execute.
There's no reason to be using CallPlugin on the underlying script function (poorly). |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Lerkista
(57 posts) bio
|
Date
| Reply #2 on Sat 06 Aug 2016 08:17 PM (UTC) |
Message
| Hi
Ok, that works :)
Another question, using this plugin, is there a way to change an exit to handle doors??
If i'm in a room with a door in the north, the mapper speedwalk only send a "n" and if the door is closed, the speedwalk fails
So is there a way to change that exit from "n" to "open door n;;n"
I've read the help about custom exits, but i don't think i understand how works, because the command
"mapper cexit open e;;e;;close w"
don't seems to specify the destination room
Any help?
Thanks | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #3 on Sun 07 Aug 2016 01:58 AM (UTC) |
Message
| cexit is the right way.
You are correct that you don't specify a destination room.
The aardwolf mapper will run your command and link to wherever it ends up. |
https://github.com/fiendish/aardwolfclientpackage | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
13,385 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.