TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Enhanced speedwalk functionality

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
mrbigtaco



Joined: 26 Jun 2011
Posts: 54

PostPosted: Thu Jun 07, 2012 2:31 pm    Post subject: Enhanced speedwalk functionality Reply with quote

The tintin clone client lyntin allowed custom speedwalk directions (and exclusions) to be defined by the user. Briefly looking through the beta source code, it looks like it would be possible to bring this functionality to tintin "easily", but the process_speedwalk and is_speedwalk functions at a minimum would need to be rewritten. I started to write a patch but thought better of it since it wouldn't be as elegant because I'm not as familiar with C coding and it would be best to stay consistent with the design patterns already in use in tintin. It would take some additional time to familiarize myself with the list functions in use to add these properly.

From the lyntin command documentation:
http://lyntin.sourceforge.net/4.1.1/userdocs/COMMANDS
Quote:

COMMANDS.SWDIR

syntax: #swdir [<ALIAS>] [<DIR>] [<QUIET:BOOLEAN=false>]

This adds speedwalking aliases and tells you the current speedwalking dirs
already registered.

examples:
#swdir {n} {north}
#swdir {s} {south}
#swdir {e} {east}
#swdir {w} {west}
#swdir {NE} {northeast}
#swdir {l} {look}
...

This allows you to string characters together to speedwalk:

4e2sNE

which using the above swdirs gets expanded to
"east;east;east;east;south;south;northeast" and who wants to type all
that?

see also: swexclude



COMMANDS.SWEXCLUDE

syntax: #swexclude [EXCLUDE...] [<QUIET:BOOLEAN=false>]

Adds words that should be excluded from speedwalk expansion as well
as tells you which words are currently being excluded.

If you had swdirs "n", "e", "s", and "w", you might want to create
excludes for the words "sense", "news", "sew", ... Which are real
words that you most likely don't want to be expanded.

examples:
#swexclude {end}
#swexclude {news}

see also: swdir


COMMANDS.UNSWDIR

syntax: #unswdir [<STR>] [<QUIET:BOOLEAN=false>]

Allows you to remove swdirs.



COMMANDS.UNSWEXCLUDE

syntax: #unswexclude [<STR>] [<QUIET:BOOLEAN=false>]

Allows you to remove swexcludes.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Thu Jun 07, 2012 8:20 pm    Post subject: Reply with quote

You could modify the speedwalk script:

Code:

#nop Execute speedwalks with .

#alias {.%0}
{
        #var cnt {};

        #parse {%0} {char}
        {
                #if {"$char" >= "0" && "$char" <= "9"}
                {
                        #var cnt $cnt$char
                };
                #elseif {"$cnt" == ""}
                {
                        #send $char
                };
                #else
                {
                        #$cnt #send $char;
                        #var cnt {}
                }
        }
}
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group