Trading general (Cmud) (script)
Jump to navigation
Jump to search
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
<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>