Module:Inventory: Difference between revisions

Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 26: Line 26:


local result = cargo.query('ItemsTable=IT,GeneralData=GD',
local result = cargo.query('ItemsTable=IT,GeneralData=GD',
'PlainName,Vibro,MaxPV,BasePV,Damage,GD._pageName=Page',
'PlainName,Vibro,MaxPV,BasePV,Damage,GD.JoinKey=Page',
{ where='(GD._pageNamespace="0" OR GD._pageNamespace="10002") AND GD.ObjectID="' .. objname .. '"',
{ where='(GD._pageNamespace="0" OR GD._pageNamespace="10002") AND GD.ObjectID="' .. objname .. '"',
default='0',
default='0',
limit='1',
limit='1',
join='GD._pageName=IT._pageName'} )
join='GD.JoinKey=IT.JoinKey'} )


if not next(result) then
if not next(result) then