Caravan Runner

Alesei's
CLASS {CaravanRunner} @CaravanRunner/path = "" #if (%1 = "eljazira") { #t+ CRInside Mp 2233 } #if (%1 = "arkaskarr") { #t+ CRInside Mp 9502 } #if (%1 = "whistlerock") { #t+ CRInside Mp 7595 } #if (%1 = "tylaran") { #t+ CRInside Mp 8897 } #if (%1 = "anhir") { #t+ CRInside Mp 2209 } #if (%1 = "home") { #t+ CRInside Mp 10614 } }  @CaravanRunner/path = %subchar( @caravanRunner/path, ",", "|") CRStep } @CaravanRunner/path = %1","%2 #t- CRInside processpath } @CaravanRunner/path = @CaravanRunner/path", "%1","%2", "%3 #t- CRInside processpath } @CaravanRunner/path = @CaravanRunner/path", "%1","%2", "%3 #t- CRInside processpath }
 * 1) ALIAS rc {
 * 1) ALIAS processpath {
 * 1) ALIAS CRStep {lead caravan %pop( path)}
 * 2) ALIAS CRS {%pop( path)}
 * 3) VAR path {}
 * 4) TRIGGER {You lead a caravan} {CRStep}
 * 5) CLASS 0
 * 6) CLASS {CaravanRunner|CRInside}
 * 7) REGEX {\[Path: (\a+)\, (.*)\,} {@CaravanRunner/path = %1","%2}
 * 8) REGEX {\[Path: (\a+)\, (.*)\.\]} {
 * 1) REGEX {^(\a+)\,(.*)\,\s(\a+)\,$} {@CaravanRunner/path = @CaravanRunner/path", "%1","%2", "%3}
 * 2) REGEX {^(\a+)\,(.*)\,\s(\a+)\.\]$} {
 * 1) REGEX {^(\a+)\.\]$} {
 * 1) CLASS 0

Khizan's
/autoexec {/disablegroup caravanrunner}

/action {%1} {/loop {1,@Math(@WordCount($1)-1)}{/var tradepath @ConCat($tradepath, @Left(@Word($1,$LoopCount),@Math(@Len(@Word($1,$LoopCount))-1))) caravanrunner};/if {@StrStr($1,]) = -1}{/var tradepath @ConCat($tradepath, @Left(@Word($1,@WordCount($1)),@Math(@Len(@Word($1,@WordCount($1)))-1))) caravanrunner};/if {@StrStr($1,]) != -1}{/var tradepath @ConCat($tradepath, @Left(@Word($1,@WordCount($1)),@Math(@Len(@Word($1,@WordCount($1)))-2))) caravanrunner;lead caravan @Word($tradepath,$pathroom);/disableaction {%1};/disableac {[Path: %0}}} {caravanrunner} /action {You lead a caravan %0} {/var pathroom @Math($pathroom+1) caravanrunner;/if {$pathroom <= @WordCount($tradepath)}{lead caravan @Word($tradepath,$pathroom);}{/disablegroup caravanrunner}} {caravanrunner} /action {[Path: %0} {/var pathroom 1 caravanrunner;/var tradepath @Left(@Word($0,1),@Math(@Len(@Word($0,1))-1)) caravanrunner;/loop {2,@Math(@WordCount($0)-1)}{/var tradepath @ConCat($tradepath, @Left(@Word($0,$LoopCount),@Math(@Len(@Word($0,$LoopCount))-1))) caravanrunner};/if {@StrStr($0,]) = -1}{/var tradepath @ConCat($tradepath, @Left(@Word($0,@WordCount($0)),@Math(@Len(@Word($0,@WordCount($0)))-1))) caravanrunner;/enableaction {%1}}{/var tradepath @ConCat($tradepath, @Left(@Word($0,@WordCount($0)),@Math(@Len(@Word($0,@WordCount($0)))-2))) caravanrunner;lead caravan @Word($tradepath,$pathroom)}} {caravanrunner} /variable {pathroom} {36} {caravanrunner} /variable {tradepath} {w sw s d se se sw w s w w w w w w w sw u s sw sw sw w w nw nw nw sw sw sw nw sw sw in e} {caravanrunner}

/alias {caravanhome} {/var pathroom 1 trade;/var tradepath @Var(@ConCat($caravantown,-stavenn)) trade;/enableac {You lead a caravan %0};lead caravan @Word($tradepath,1)} {trade} /alias {caravanto %2} {/enableac {[Path: %0};/enableac {You lead a caravan %0};Mp $2} {trade} /alias {caravantown %0} {/var pathroom 1 trade;/var tradepath @Var(@ConCat(stavenn-,$0)) trade;/var caravantown $0 trade;/enableac {You lead a caravan %0};lead caravan @Word($tradepath,1)} {trade} /variable {caravantown} {cetara} {trade} /variable {cetara-stavenn} {e n n nw nw nw w nw n n nw n n nw n n w w w w w w sw u s sw sw sw w w nw nw nw sw sw sw nw sw sw in e} {trade} /variable {stavenn-cetara} {w out ne ne se ne ne ne se se se e e ne ne ne n d ne e e e e e e s s se s s se s s se e se se se s s w} {trade} /variable {stavenn-trevka} {w out ne ne se ne ne ne se se se e e ne ne ne n d ne e e e e e e s s s e s se e e e e se e s} {trade} /variable {trevka-stavenn} {n w nw w w w w nw n w n n n w w w w w w sw u s sw sw sw w w nw nw nw sw sw sw nw sw sw in e} {trade}

Five Steps to Caravaning
Other files that may interest you:  - Want to caravan twice as fast? This file tells you about the artifact caravan crop.
 * 1) Be sure to read  and .
 * 2) Be prepared! Bandits can attack your caravan and team, so if you are still small, be sure to bring someone with you. If you are attacked by bandits and move away from your caravan, they WILL steal materials from the caravan until the materials are all gone. Also let the city be aware that you are running a caravan to ensure you are properly protected against city enemies as well.
 * 3) Make sure you have enough gold, and the right caravan size on you for the pickup and delivery. It is also a good idea to create a chart to note what your towne sells their goods at so you are prepared to purchase the proper amount for your caravan.
 * 4) Run the caravan! Be sure you have the time to complete the caravan run, because if you leave any kind of caravan for enemies to steal while you're away, leaders in the Trade Ministry tend to get a little cranky. It's a good idea to map out the directions to each towne so that you can be more efficient in travel. If you use landmarks  and  to map out the stock shops directly, you will be able to find your target locations easier.
 * 5) Questions? Send a tell or message to your city's Minister of Trade and he or she will be able to assist you. You can locate his or her name in (Help ).