Editing Module:AlchemistPassiveList
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 20: | Line 20: | ||
'?Activity duration = duration', |
'?Activity duration = duration', |
||
'?Value = sell', |
'?Value = sell', |
||
'?Activity coins = coins', |
|||
'sort = Profession Level A', |
'sort = Profession Level A', |
||
'limit = 500' |
'limit = 500' |
||
Line 69: | Line 68: | ||
item.intermediates = {} |
item.intermediates = {} |
||
item.buy = 0 |
item.buy = 0 |
||
item.sell = item.coins |
|||
-- "sell price" is replaced with the coins that the activity gives |
|||
local shopPriceQuery = '[[Name::' .. item.name .. ']]|?Activity coins#-' |
|||
local shopPriceResult = mw.smw.ask(shopPriceQuery) or {} |
|||
local shopPrice = 0 |
|||
if shopPriceResult[1] and shopPriceResult[1]["Activity coins"] then |
|||
item.sell = tonumber(shopPriceResult[1]["Activity coins"]) or 0 |
|||
end |
|||
else |
else |
||