Template:DropTable/append: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
imported>Kiokurashi
No edit summary
Line 1: Line 1:
{{#cargo_query:tables=DropTables
{{#invoke:LuaVar|varDefine|name=AppendRate|value={{{2|}}}}}<includeonly>{{#cargo_query:tables=DropTables
|fields=OrderNumber=ordernumber, TableName=tablename, TableType=tabletype, DropItem=1, DropQuantity=3, CONCAT("{{#expr: {{{2|}}} *",  Droprate, "}}")=2
|fields=OrderNumber=ordernumber, TableName=tablename, TableType=tabletype, DropItem=1, DropQuantity=3, DropRate=subrate
|where=TableName="{{{1|}}}"
|where=TableName="{{{1|}}}"
|format=template
|format=template
Line 6: Line 6:
|named args=yes
|named args=yes
|default=
|default=
}}
}}</includeonly>{{#invoke:LuaVar|varDefine|name=AppendRate|value=NULL}} <!-- Just in case. -->

Revision as of 01:35, 29 September 2021