Achaea autowalker

Share your scripts and packages with other Mudlet users.
Post Reply
Mickelson
Posts: 5
Joined: Wed Dec 16, 2009 6:06 pm

Achaea autowalker

Post by Mickelson »

So, for all you lazy people out there, this is just a nifty thing I converted from Nexus that walks to any landmark for you, and turns itself off when you're there.

Just WT <landmark>, and it'll do the work for you. STW stops the walker manually.

Aliases:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.0">
    <AliasPackage>
        <AliasGroup isActive="yes" isFolder="yes">
            <name>Walker</name>
            <script></script>
            <command></command>
            <regex></regex>
            <Alias isActive="yes" isFolder="no">
                <name>^stw$</name>
                <script>disableTrigger("walker")</script>
                <command></command>
                <regex>^stw$</regex>
            </Alias>
            <Alias isActive="yes" isFolder="no">
                <name>^wt (.*)$</name>
                <script>destination = matches[2]
enableTrigger("walker")
send("walk to " .. destination)
remember("destination")</script>
                <command></command>
                <regex>^wt (.*)$</regex>
            </Alias>
        </AliasGroup>
    </AliasPackage>
</MudletPackage>
Triggers:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.0">
    <TriggerPackage>
        <TriggerGroup isActive="no" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
            <name>walker</name>
            <script></script>
            <triggerType>0</triggerType>
            <conditonLineDelta>0</conditonLineDelta>
            <mStayOpen>0</mStayOpen>
            <mCommand></mCommand>
            <mFgColor>#ff0000</mFgColor>
            <mBgColor>#ffff00</mBgColor>
            <mSoundFile></mSoundFile>
            <colorTriggerFgColor>#000000</colorTriggerFgColor>
            <colorTriggerBgColor>#000000</colorTriggerBgColor>
            <regexCodeList/>
            <regexCodePropertyList/>
            <Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
                <name>walkbal</name>
                <script>send("walk to " .. destination)</script>
                <triggerType>0</triggerType>
                <conditonLineDelta>0</conditonLineDelta>
                <mStayOpen>0</mStayOpen>
                <mCommand></mCommand>
                <mFgColor>#ff0000</mFgColor>
                <mBgColor>#ffff00</mBgColor>
                <mSoundFile></mSoundFile>
                <colorTriggerFgColor>#000000</colorTriggerFgColor>
                <colorTriggerBgColor>#000000</colorTriggerBgColor>
                <regexCodeList>
                    <string>You have recovered balance on all limbs.</string>
                </regexCodeList>
                <regexCodePropertyList>
                    <integer>3</integer>
                </regexCodePropertyList>
            </Trigger>
            <Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
                <name>alreadythere</name>
                <script>disableTrigger("walker")</script>
                <triggerType>0</triggerType>
                <conditonLineDelta>99</conditonLineDelta>
                <mStayOpen>0</mStayOpen>
                <mCommand></mCommand>
                <mFgColor>#ff0000</mFgColor>
                <mBgColor>#ffff00</mBgColor>
                <mSoundFile></mSoundFile>
                <colorTriggerFgColor>#000000</colorTriggerFgColor>
                <colorTriggerBgColor>#000000</colorTriggerBgColor>
                <regexCodeList>
                    <string>You are already there!</string>
                </regexCodeList>
                <regexCodePropertyList>
                    <integer>3</integer>
                </regexCodePropertyList>
            </Trigger>
        </TriggerGroup>
    </TriggerPackage>
</MudletPackage>

rstarnes1972
Posts: 11
Joined: Mon Feb 15, 2010 11:30 am

Re: Achaea autowalker

Post by rstarnes1972 »

still figureing out the whole MUD thing. could you explain where this all needs to be put in to work?

naftali
Posts: 138
Joined: Wed Jan 20, 2010 8:42 pm

Re: Achaea autowalker

Post by naftali »

Copy and paste what he posted into a text file (use Textedit if you're on a Mac, Notepad if you're on a Windows) and save it as "Blah.xml" (blah can be whatever you like).

Then in Mudlet open the Scripts window and click Import. Select your file from the dialog window that pops up.

And that's it!

rstarnes1972
Posts: 11
Joined: Mon Feb 15, 2010 11:30 am

Re: Achaea autowalker

Post by rstarnes1972 »

Thanks that did it!!

Post Reply