[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  GMCP Mapper from trigger
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

GMCP Mapper from trigger

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Lerkista   (32 posts)  [Biography] 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
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] 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
[Go to top] top

Posted by Lerkista   (32 posts)  [Biography] 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
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] 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
[Go to top] 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.


1,979 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] 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.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]