Caighan

Commodities Capture

Jul 27th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. Pattern:
  2. ^Commodities: (.+)$
  3.  
  4. local ingredients = {}
  5. %1:gsub("(%w+) (%d+)",function(ingredient, amount)
  6.   ingredients[ingredient] = tonumber(amount)
  7. end)
  8.  
  9. for i, v in pairs(ingredients) do
  10.     Send("outr "..v.." "..i)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment