Trading general (Cmud) (script): Difference between revisions
Jump to navigation
Jump to search
(cmud trading script) |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Script |
{{Script |
||
|cat=trading |
|cat=trading,caravan |
||
|fe=cmud |
|fe=cmud |
||
|auth=[[User:Tirsten|Tirsten]] |
|auth=[[User:Tirsten|Tirsten]] |
||
Line 6: | Line 6: | ||
testing - |
|||
==General Information== |
==General Information== |
||
<blockquote> |
<blockquote> |
||
Line 25: | Line 24: | ||
==The Script== |
==The Script== |
||
<pre> |
|||
<pre><trigger priority="13030" id="1303"> |
|||
<var name="trading_places" type="StringList" id="2354"> |
|||
<pattern>^You tell the driver to give you an inventory report for your elaborate caravan.</pattern> |
|||
<value>The Crossing|Shard|Wolf Clan|Riverhaven|Stone Clan|Arthe Dale|Tiger Clan|Dirge|Leth Deriel|gondola</value> |
|||
<value>#var trading_places_from "" |
|||
<json>["The Crossing","Shard","Wolf Clan","Riverhaven","Stone Clan","Arthe Dale","Tiger Clan","Dirge","Leth Deriel","gondola"]</json> |
|||
#var trading_places_to "" |
|||
</ |
</var> |
||
</pre> |
|||
<trigger type="Duration" param="5000"> |
|||
<pre> |
|||
<pattern>^%sA sturdy crate is for a contract from ({@trading_places}) and destined for ({@trading_places}).$</pattern> |
|||
<trigger priority="13030" id="1303"> |
|||
<value>#echo "a" |
|||
<pattern>^You tell the driver to give you an inventory report for your elaborate caravan.</pattern> |
|||
#additem trading_places_from %1 |
|||
<value>#var trading_places_from "" |
|||
#additem trading_places_to %2 |
|||
#var trading_places_to "" |
|||
</value> |
|||
</ |
</value> |
||
<trigger type="Duration" param="5000"> |
|||
<pattern>^%sA sturdy crate is for a contract from ({@trading_places}) and destined for ({@trading_places}).$</pattern> |
|||
<value>#echo "a" |
|||
#additem trading_places_from %1 |
|||
#additem trading_places_to %2 |
|||
</value> |
|||
</trigger> |
|||
</trigger> |
|||
</pre> |
|||
<pre> |
|||
<trigger priority="13080" id="1308"> |
|||
<pattern>^The driver calls out, "The animals are fed well enough for now."</pattern> |
|||
<value>echo starttradingmoving</value> |
|||
</trigger> |
|||
</pre> |
|||
<pre> |
|||
<trigger priority="13180" id="1318"> |
|||
<pattern>^starttradingmoving$</pattern> |
|||
<value><![CDATA[#switch (@trading_places_current) |
|||
("The Crossing") { |
|||
#switch ((%ismember("Shard", @trading_places_to) && !%ismember("Riverhaven", @trading_places_to)) || (%ismember("Shard", @trading_places_to) && %ismember("Leth Deriel", @trading_places_to))) { |
|||
#switch (!%ismember("Leth Deriel", @trading_places_from) || %ismember("Leth Deriel", @trading_places_to)) { echo trade_crossing_to_leth } |
|||
{ echo trade_crossing_to_shard } |
|||
} |
|||
{ |
|||
#switch (!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_crossing_to_arthedale } |
|||
(!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_crossing_to_stoneclan } |
|||
(!%ismember("Dirge", @trading_places_from) || %ismember("Dirge", @trading_places_to)) { echo trade_crossing_to_dirge } |
|||
{ echo trade_crossing_to_riverhaven } |
|||
} |
|||
} |
|||
("Riverhaven") { |
|||
#switch (!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_riverhaven_to_stoneclan } |
|||
(!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_riverhaven_to_arthedale } |
|||
(!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_riverhaven_to_crossing } |
|||
} |
|||
("Shard") { |
|||
#switch (%ismember("Tiger Clan", @trading_places_to)) { echo trade_shard_to_tigerclan } |
|||
( %ismember("Wolf Clan", @trading_places_to)) { echo trade_shard_to_wolfclan } |
|||
(!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_shard_to_crossing } |
|||
(!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_shard_to_arthedale } |
|||
(!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_shard_to_stoneclan } |
|||
} |
|||
("Arthe Dale") { |
|||
#switch (!%ismember("Riverhaven", @trading_places_from) || %ismember("Riverhaven", @trading_places_to)) { |
|||
#switch (!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_arthedale_to_stoneclan } |
|||
(!%ismember("Dirge", @trading_places_from) || %ismember("Dirge", @trading_places_to)) { echo trade_arthedale_to_dirge } |
|||
{ echo trade_arthedale_to_riverhaven } |
|||
} |
|||
{ |
|||
#switch (!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_arthedale_to_crossing } |
|||
(!%ismember("Leth", @trading_places_from) || %ismember("Leth", @trading_places_to)) { echo trade_arthedale_to_leth } |
|||
{ echo trade_arthedale_to_shard } |
|||
} |
|||
} |
|||
("Stone Clan") { |
|||
#switch (!%ismember("Riverhaven", @trading_places_from) || %ismember("Riverhaven", @trading_places_to)) { |
|||
#switch (!%ismember("Dirge", @trading_places_from) || %ismember("Dirge", @trading_places_to)) { echo trade_stoneclan_to_dirge } |
|||
{ echo trade_stoneclan_to_riverhaven } |
|||
} |
|||
{ |
|||
#switch (!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_stoneclan_to_arthedale } |
|||
(!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_stoneclan_to_crossing } |
|||
(!%ismember("Leth Deriel", @trading_places_from) || %ismember("Leth Deriel", @trading_places_to)) { echo trade_stoneclan_to_leth } |
|||
{ echo trade_stoneclan_to_shard } |
|||
} |
|||
} |
|||
("Dirge") { |
|||
#switch (!%ismember("Riverhaven", @trading_places_from) || %ismember("Riverhaven", @trading_places_to)) { echo trade_dirge_to_riverhaven } |
|||
{ |
|||
#switch (!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_dirge_to_stoneclan } |
|||
(!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_dirge_to_arthedale } |
|||
(!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_dirge_to_crossing } |
|||
{ echo trade_dirge_to_leth } |
|||
} |
|||
} |
|||
("Tiger Clan") { |
|||
#switch (%ismember("Wolf Clan", @trading_places_to)) { echo trade_tigerclan_to_wolfclan } |
|||
(!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_tigerclan_to_crossing } |
|||
(!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_tigerclan_to_arthedale } |
|||
(!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_tigerclan_to_stoneclan } |
|||
(%ismember("Dirge", @trading_places_to)) { echo trade_tigerclan_to_dirge } |
|||
{ echo trade_tigerclan_to_riverhaven } |
|||
} |
|||
("Wolf Clan") { |
|||
#switch (!%ismember("Tiger Clan", @trading_places_from) || %ismember("Tiger Clan", @trading_places_to)) { echo trade_wolfclan_to_tigerclan } |
|||
(!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_wolfclan_to_crossing } |
|||
(!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_wolfclan_to_arthedale } |
|||
(!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_wolfclan_to_wolfclan } |
|||
(%ismember("Dirge", @trading_places_to)) { echo trade_wolfclan_to_dirge } |
|||
{ echo trade_wolfclan_to_riverhaven } |
|||
} |
|||
("Leth Deriel") { |
|||
#switch (!%ismember("Shard", @trading_places_from) || %ismember("Shard", @trading_places_to)) {echo trade_leth_to_shard} |
|||
{ |
|||
#switch (%ismember("Tiger Clan", @trading_places_to)) { echo trade_leth_to_tigerclan } |
|||
(%ismember("Wolf Clan", @trading_places_to)) { echo trade_leth_to_wolfclan} |
|||
(!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_leth_to_crossing } |
|||
(!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_leth_to_arthedale } |
|||
(!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_leth_to_stoneclan } |
|||
} |
|||
}]]></value> |
|||
</trigger> |
</trigger> |
||
</pre> |
</pre> |
Latest revision as of 15:04, 14 November 2016
Trading general (Cmud) (script) | |
---|---|
Category | trading,caravan |
Front-end | cmud |
Author | Tirsten |
General Information
This script is for generic caravan management and travel
Front end: Cmud
Usage: activates on looking at the caravan
The Script
<var name="trading_places" type="StringList" id="2354"> <value>The Crossing|Shard|Wolf Clan|Riverhaven|Stone Clan|Arthe Dale|Tiger Clan|Dirge|Leth Deriel|gondola</value> <json>["The Crossing","Shard","Wolf Clan","Riverhaven","Stone Clan","Arthe Dale","Tiger Clan","Dirge","Leth Deriel","gondola"]</json> </var>
<trigger priority="13030" id="1303"> <pattern>^You tell the driver to give you an inventory report for your elaborate caravan.</pattern> <value>#var trading_places_from "" #var trading_places_to "" </value> <trigger type="Duration" param="5000"> <pattern>^%sA sturdy crate is for a contract from ({@trading_places}) and destined for ({@trading_places}).$</pattern> <value>#echo "a" #additem trading_places_from %1 #additem trading_places_to %2 </value> </trigger> </trigger>
<trigger priority="13080" id="1308"> <pattern>^The driver calls out, "The animals are fed well enough for now."</pattern> <value>echo starttradingmoving</value> </trigger>
<trigger priority="13180" id="1318"> <pattern>^starttradingmoving$</pattern> <value><![CDATA[#switch (@trading_places_current) ("The Crossing") { #switch ((%ismember("Shard", @trading_places_to) && !%ismember("Riverhaven", @trading_places_to)) || (%ismember("Shard", @trading_places_to) && %ismember("Leth Deriel", @trading_places_to))) { #switch (!%ismember("Leth Deriel", @trading_places_from) || %ismember("Leth Deriel", @trading_places_to)) { echo trade_crossing_to_leth } { echo trade_crossing_to_shard } } { #switch (!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_crossing_to_arthedale } (!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_crossing_to_stoneclan } (!%ismember("Dirge", @trading_places_from) || %ismember("Dirge", @trading_places_to)) { echo trade_crossing_to_dirge } { echo trade_crossing_to_riverhaven } } } ("Riverhaven") { #switch (!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_riverhaven_to_stoneclan } (!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_riverhaven_to_arthedale } (!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_riverhaven_to_crossing } } ("Shard") { #switch (%ismember("Tiger Clan", @trading_places_to)) { echo trade_shard_to_tigerclan } ( %ismember("Wolf Clan", @trading_places_to)) { echo trade_shard_to_wolfclan } (!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_shard_to_crossing } (!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_shard_to_arthedale } (!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_shard_to_stoneclan } } ("Arthe Dale") { #switch (!%ismember("Riverhaven", @trading_places_from) || %ismember("Riverhaven", @trading_places_to)) { #switch (!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_arthedale_to_stoneclan } (!%ismember("Dirge", @trading_places_from) || %ismember("Dirge", @trading_places_to)) { echo trade_arthedale_to_dirge } { echo trade_arthedale_to_riverhaven } } { #switch (!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_arthedale_to_crossing } (!%ismember("Leth", @trading_places_from) || %ismember("Leth", @trading_places_to)) { echo trade_arthedale_to_leth } { echo trade_arthedale_to_shard } } } ("Stone Clan") { #switch (!%ismember("Riverhaven", @trading_places_from) || %ismember("Riverhaven", @trading_places_to)) { #switch (!%ismember("Dirge", @trading_places_from) || %ismember("Dirge", @trading_places_to)) { echo trade_stoneclan_to_dirge } { echo trade_stoneclan_to_riverhaven } } { #switch (!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_stoneclan_to_arthedale } (!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_stoneclan_to_crossing } (!%ismember("Leth Deriel", @trading_places_from) || %ismember("Leth Deriel", @trading_places_to)) { echo trade_stoneclan_to_leth } { echo trade_stoneclan_to_shard } } } ("Dirge") { #switch (!%ismember("Riverhaven", @trading_places_from) || %ismember("Riverhaven", @trading_places_to)) { echo trade_dirge_to_riverhaven } { #switch (!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_dirge_to_stoneclan } (!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_dirge_to_arthedale } (!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_dirge_to_crossing } { echo trade_dirge_to_leth } } } ("Tiger Clan") { #switch (%ismember("Wolf Clan", @trading_places_to)) { echo trade_tigerclan_to_wolfclan } (!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_tigerclan_to_crossing } (!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_tigerclan_to_arthedale } (!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_tigerclan_to_stoneclan } (%ismember("Dirge", @trading_places_to)) { echo trade_tigerclan_to_dirge } { echo trade_tigerclan_to_riverhaven } } ("Wolf Clan") { #switch (!%ismember("Tiger Clan", @trading_places_from) || %ismember("Tiger Clan", @trading_places_to)) { echo trade_wolfclan_to_tigerclan } (!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_wolfclan_to_crossing } (!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_wolfclan_to_arthedale } (!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_wolfclan_to_wolfclan } (%ismember("Dirge", @trading_places_to)) { echo trade_wolfclan_to_dirge } { echo trade_wolfclan_to_riverhaven } } ("Leth Deriel") { #switch (!%ismember("Shard", @trading_places_from) || %ismember("Shard", @trading_places_to)) {echo trade_leth_to_shard} { #switch (%ismember("Tiger Clan", @trading_places_to)) { echo trade_leth_to_tigerclan } (%ismember("Wolf Clan", @trading_places_to)) { echo trade_leth_to_wolfclan} (!%ismember("The Crossing", @trading_places_from) || %ismember("The Crossing", @trading_places_to)) { echo trade_leth_to_crossing } (!%ismember("Arthe Dale", @trading_places_from) || %ismember("Arthe Dale", @trading_places_to)) { echo trade_leth_to_arthedale } (!%ismember("Stone Clan", @trading_places_from) || %ismember("Stone Clan", @trading_places_to)) { echo trade_leth_to_stoneclan } } }]]></value> </trigger>