Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from reverence import blue
- import json
- eve = blue.EVE('c:\program files (x86)\ccp\eve')
- cfg = eve.getconfigmgr()
- f = blue.ResFile()
- f.Open('res:/UI/Shared/Maps/mapcache.dat')
- mapcache = blue.marshal.Load(f.Read())
- visits = []
- for row in eve.RemoteSvc('map').GetSolarSystemVisits(500149661):
- # skip anything but wormholes
- x = str(row.solarSystemID)[1]
- if x != '1':
- continue
- visit = {
- 'solarSystemID': row.solarSystemID,
- 'visits': row.visits,
- 'systemName': cfg.evelocations.Get(row.solarSystemID).locationName
- }
- visits.append(visit)
- visits.sort(key=lambda x: x['visits'])
- print json.dumps(visits, indent=4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement