Ikariam 100 CRs

By Overkill Last update Jun 25, 2009 — Installed 17,638 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 15 posts, 9 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
bad4ever User

to be more specific I paste here the bashing rule written on ikariam.ro rulles.. it's in romanian but you can paste it into an online translation tool to have it in english..
"Un jucator nu are voie sa atace un oras detinut de un alt jucator de mai mult de 6 ori in 24 de ore, bashingul incluzand si atacurile cu nave de razboi. Se calculeaza de la ora 1 a.m. care reprezinta ora de incepere a unei noi zile in joc pana la ora 1 a.m. (ora Romaniei) urmatoarea zi. Regula de incalcare a bashingului se verifica tinand cont de rapoartele care contin data si ora atacurilor respective."

As you can say in the text it's about 1.00am-1.00am, this is because the server is 1 hour behind our local time in Romania...

 
bad4ever User

In romania the rule is is liek I said! 00.00-23.59 server time. I asked 3 GO's I don't know where are you playing... on what servers but I can tell you how is where I play.. so if overkill can make a version that counts as I said I will be very happy..

 
Fungah Scriptwright

No, bad4ever, the bashing rule applies to a rolling 24 hour period. Go check the rules.

 
bad4ever User

I can't understaind why u made this counter to check the atacks in the last 24 hour when the bashing rule is about atacks betwen 00:00 - 23:59 server time each day... Maybe you can make one that really helps..

 
shnnn User

It would be great to have a script to sort CR entries by number of resources gained and by amount of gold gained. This would help to identify good targets more qiickly.

 
Overkill Script's Author

There's another configuration variable you can edit to ultimately affect how many pages of combat reports show up. It's not exactly intuitive, but it works. It's the "pagesToLoad" variable.

As far as only showing the past 24 hours, I did think about doing that as well, but it would be a lot of coding for little reward in my opinion. I would have to write in a control loop feedback mechanism to detect if I loaded too many or too few pages, and then throw out the excess CRs. Right now, my script is very simple and stupid, and I like that.

I really don't have the free time to do things like that, but I'd like to.

Of course, if anyone wanted to modify my potion of this script they're free to do so.

 
Fungah Scriptwright

Excellent, it works perfectly with the Ikariam Attack Calculator now! Thanks for the prompt update!

How would I go about making it display more than 100 CRs on a single page? Or every attack made within the last 24 hours? I pillage a lot... :p

 
Overkill Script's Author

@Fungah, I added a variable at the top so you don't have to manually remove the bracketed numbers.

 
Fungah Scriptwright

This script seems to work fine with Ikariam Attack Calculator. If I copy/paste the CR page into Notepad and remove the bracketed numbers next to the town names, I can then paste it all into the IAC page and get an accurate reading.

Can anyone confirm this?

 
noob007 User

Would be kewl if you could extend it to count 200 cr's...or for the last 24 hrs ...

Seems like a few bugs on it - it mixes the lists and dont count all attacks thats on the front side. And now it dont count sea attacks.

 
Overkill Script's Author

That was probably in the original Attack Calculator code. I was trying to avoid changing it as much as possible, because I really don't feel like maintaining someone else's code. However, I'll see if I can do a quick fix.

I just ended up subtracting 1 from the month before trying to convert it to a Date object

 
Wiisley User

Great script, but i noticed a small error:

new Date(...)
Months begins counting at 0-11. You didn't take that into account ;)
There for you need to take 1 from the month. And for that you might want to remove the 0 form the months below 10 ;)

here a function, though you'll probably know how to write one on your own ;)

/**
* Parses a number to a correct int (so 01 becomes 1)
*/
function toInt(number)
{
while (number.charAt(0) == '0')
number = number.substring(1,number.length);
return parseInt(number);
}

regards

 
frechi User

very good job.
thanks a lot for this script ...

 
Bitflyermeister User

very nice , thx for that

mfg

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel