Size: 768
Comment:
|
← Revision 6 as of 2013-10-13 01:00:41 ⇥
Size: 1493
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
||<tablestyle="margin: 1em 1em 1em 0px; background-color: rgb(249, 249, 249); border-style: solid; border-color: rgb(170, 170, 170); color: rgb(0, 0, 0); font-family: sans-serif; font-size: 13px; line-height: 19.5px; text-align: start; " tableclass="wikitable"style="border-style: solid; border-color: rgb(170, 170, 170); padding: 0.2em; background-color: rgb(242, 242, 242); ">Usage:||<style="border-style: solid; border-color: rgb(170, 170, 170); padding: 0.2em; ">canceltrade|| ||<style="border-style: solid; border-color: rgb(170, 170, 170); padding: 0.2em; background-color: rgb(242, 242, 242); ">Example:||<style="border-style: solid; border-color: rgb(170, 170, 170); padding: 0.2em; ">canceltrade|| |
||<tablebgcolor="#F9F9F9" tablestyle="margin:1em 1em 1em 0px;border-style:solid;border-color:rgb(170, 170, 170);color:rgb(0, 0, 0);font-family:sans-serif;font-size:13px;line-height:19.5px;text-align:start; " tableclass="wikitable"#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Usage: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">canceltrade || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">canceltrade || |
Line 5: | Line 5: |
Cancels all pending trades. | Cancels all pending trades in current city. You can also cancel trades by their tradeId: ||<tablebgcolor="#F9F9F9" tablestyle="margin:1em 1em 1em 0px;border-style:solid;border-color:rgb(170, 170, 170);color:rgb(0, 0, 0);font-family:sans-serif;font-size:13px;line-height:19.5px; " tableclass="wikitable"#F2F2F2 style="padding:0.2em;border-style:solid;border-color:rgb(170, 170, 170); ">Usage: ||<style="padding:0.2em;border-style:solid;border-color:rgb(170, 170, 170);">canceltrade tradeId || ||<#F2F2F2 style="padding:0.2em;border-style:solid;border-color:rgb(170, 170, 170); ">Example: ||<style="padding:0.2em;border-style:solid;border-color:rgb(170, 170, 170);">execute "canceltrade " + city.tradesArray[0].id || This example will cancel the 1st trade in the city's current tradesArray (the oldest trade in the array will be at position 0) |
Line 7: | Line 16: |
CategoryAllScripts | ---- ScriptResource |
Usage: |
canceltrade |
Example: |
canceltrade |
Cancels all pending trades in current city.
You can also cancel trades by their tradeId:
Usage: |
canceltrade tradeId |
Example: |
execute "canceltrade " + city.tradesArray[0].id |
This example will cancel the 1st trade in the city's current tradesArray (the oldest trade in the array will be at position 0)