Advertisement
p33j4y

IITC_ExportPortals2Console

Jul 10th, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var p = portals;
  2. var res = [];
  3. for (var id in p)
  4. {
  5.  var result = [];
  6.  result.push(p[id].options.data.title.replace(/,/g,"_"));
  7.  result.push(p[id].options.data.latE6/1000000);
  8.  result.push(p[id].options.data.lngE6/1000000);
  9.  result.push(p[id].options.data.image);
  10.  result.push(id);
  11.  res.push(result.join(','));
  12. }
  13. console.log(res.join('\n'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement