|
|
General discussion Topics related to various aspects of Champions of Regnum |
|
Thread Tools | Display Modes |
04-22-2010, 12:56 AM | #21 | |
Initiate
Join Date: Mar 2009
Location: San Francisco
Posts: 117
|
Quote:
|
|
04-22-2010, 09:41 PM | #22 |
Count
Join Date: Jun 2007
Location: Jippy's Mom's House
Posts: 1,286
|
Thx a ton...I added this to my conky - cool. I did make some changes to the python file just for asthetics on my side.
__________________
Compost (60 Hunter) Alsius Compoundious (Dead and gone...) |
04-26-2010, 05:00 AM | #23 |
Apprentice
Join Date: Oct 2008
Posts: 72
|
I'm coding on the Titanium framework, so right now it only supports Android, ipod touch, iphone, and ipad, with up coming blackberry support. So Symbian will have to come a little later.
If I'm thinking straight Symbian run python applications, so I'd just need to port the GUI toolkit. Again since I'm using the Titanium framework I could easily port it to iPod/phone/pad upon request, but its still not done, most of the coding is but my development environment went to shit, and I can't seem to get it running in an emulator for the life of me. Once I do I still need to add some features but it's coming in less than a month if I'm not to busy. |
04-26-2010, 05:03 AM | #24 | |
Apprentice
Join Date: Oct 2008
Posts: 72
|
Quote:
If you want to remove it go ahead its opensource. |
|
11-11-2010, 06:00 PM | #25 |
Apprentice
Join Date: Oct 2008
Posts: 72
|
UPDATE:
Do to recent changes, the Regnum Stats scripts broke due to changes in Regnum Warstatus section. So today I just changed a few things and got it working again. So now the downloads can be found here: |
11-14-2010, 07:39 PM | #26 |
Baron
Join Date: Nov 2009
Location: The netherlands
Posts: 722
|
Wauw this is verry nice
regards, |
11-16-2010, 03:57 AM | #28 |
Apprentice
Join Date: Oct 2008
Posts: 72
|
Well they keep changing the War Stats page. Fixing it just means its going to break again in another week...
I'm going to have to request an actual API from NGD, doubt they'll do it however. Maybe I'll just have to find a new way to parse the page. If you have a fix, please post it and I'll have a look at it. |
11-16-2010, 06:06 AM | #29 |
Pledge
Join Date: May 2009
Location: Hollywood, CA. USA
Posts: 30
|
A desktop gadget for Windows 7 and Vista
|
11-16-2010, 06:23 AM | #30 | |
Marquis
Join Date: Jan 2007
Location: RA
Posts: 1,897
|
Quote:
Code:
#!/usr/bin/ruby require 'net/http' require 'uri' %x( kdialog --passivepopup 'Script Initialized' ) castles = [] forts = [] fortNames = %w[ Aggersborg Trelleborg Menirah Samal Algaros Herbred ] castleNames = %w[ Imperia Shaanarid Eferias ] while 1 == 1 do url = URI.parse( 'http://91.123.197.144' ) data = Net::HTTP.start( url.host, url.port ) { |http| http.get( '/ranking/index.php?l=1&opt=1&realm=2012&world=ra' ) }.body.split( "\n" ) castlesData = data.find_all { |i| i[ 'images/keep' ] } fortsData = data.find_all { |i| i[ 'images/fort' ] } count = 0 castlesData.each do |current| @changed = true if not current[ castles[ count ].to_s.downcase ] castles[ count ] = "Alsius" if current[ 'alsius' ] castles[ count ] = "Syrtis" if current[ 'syrtis' ] castles[ count ] = "Ignis" if current[ 'ignis' ] %x( kdialog --passivepopup '#{castles[ count ]} has captured the building #{castleNames[ count ]} castle' 5 --title 'Warstatus' ) if @changed == true @changed = false count += 1 end count = 0 fortsData.each do |current| @changed = true if not current[ forts[ count ].to_s.downcase ] forts[ count ] = "Alsius" if current[ 'alsius' ] forts[ count ] = "Syrtis" if current[ 'syrtis' ] forts[ count ] = "Ignis" if current[ 'ignis' ] %x( kdialog --passivepopup '#{forts[ count ]} has captured the building #{fortNames[ count ]} fort' 5 --title 'Warstatus' ) if @changed == true @changed = false count += 1 end sleep 60 end Basically, I look at the filename of the gif images and check their index
__________________
Winning a fight is not what makes you a good player, it's how you do it.
http://home.znur.re/screenshot%20201...2011_39_37.jpg |
|
|
|