Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Plugins ➜ GMCP Mapper from trigger

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,534 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,534 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.


14,979 views.

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

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.