Guest User

Untitled

a guest
Apr 25th, 2013
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Convert the meta to a table, including the userdata.
  2. function DOM_meta_para_tabela(meta)
  3. local retorno ={}
  4. local t_r = meta:to_table()
  5. local t = {}
  6.  
  7. if t_r.inventory ~= nil then
  8. i = t_r.inventory
  9.  
  10. if i.main ~= nil then
  11. local contagem =1
  12. t.inventory = {}
  13. t.inventory.main = {}
  14.  
  15. for contagem=1,#(i.main),1 do
  16. interno = i.main[contagem]:to_table()
  17.  
  18. t.inventory.main[tostring(contagem)] = interno
  19. end
  20.  
  21. end
  22.  
  23. if i.fields ~= nil then
  24. i.inventory.fields = {}
  25. t.inventory.fields = i.fields:to_table()
  26. end
  27. end
  28.  
  29. retorno = t
  30. return retorno
  31. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×