Axino.net

Kingsagex :: version 0.62

by Arxleol on Saturday 05.12.2009, under KingsAgeX, javascript

OK there were a lot of bugs reported since the last version and its been more then two weeks since the last version. So I’ve decided to revise the code and make necessary changes. First of all auto-attacking functions from KingsAgeX are out. Soon I will publish new script that will have single function and that will be auto-attacking. Now let me explain why I have decided on such step. Because KingsAgeX from the beginning was intended as extension of already available functions in kingsage.org and later other servers.

If you were wandering why is there X in the name it was intended as eXtends. However, over the course of time and more and more functions being added into the script it is getting a bit clouded and so I made decision to split functionality and put auto-attacking function in completely separate script and project. Reasons are many but the biggest one is that auto-attacking feature is robust and large and because it is maneuvering trough several web pages there is possibility that in some future update problems might arise. On the other hand having it separated will make it easier for me to update both scripts. Not that my good habit of writing comments for each line of code helped ;) . Soon I will publish auto-attacking script. I know you anxiously await.  Probably during end of next week or beginning of week after next one!

All that being said, I would also like to ask someone with preferably good writing scripts to write short how to guide in hopes to explain functionality of the script. Of course if you are having site link would be provided or some kind of reference will surely be provided. This is not my idea but the problem is that something obvious to me as script writer is not obvious to someone else as script user. And with this I would like to fix the gap between the two. Please contact me about this at: arxleol [at] gmail dot com or leave a comment.

Simple, example of this is the usage of buttons in castle view because many people figure that things should be inversed.

And before you check changes from previous version. Is drop down list neccessery for the premium version? Now that administrators have stolen my idea and provided this as premium feature.

*************
Version 0.62
*************

Feature added: Showing currently selected option for settlement name shortener and drop down list jumping to the same view.

Feature added: Because none premiums couldn’t see options in castle view I’ve decided to add another set for checking whether user has premium or not. So if you do not see options in castle view go to profile->settings->basic settings and click no premium.

Bugfix: Alert that jumped each day saying that there is new version of the script. This will not happen anymore. Now every 25 hours script will check if there is new version.

Bugfix: Options in castle view are now shown correctly for premium users instead overlapping production list.

Bugfix: Runtime calculator wasn’t working for premium users now its fixed. and works.

Feature removed: Auto-attacking executions

Feature removed: Attack panel

Feature removed: Saving delayed attack

P.S. If you are wandering by accident what happened with version 0.61 I jumped it because it was quick update only few hours after 0.60 so it was not noteworthy. Just simple accident in update.

Similar Posts:

:, , ,
32 comments for this entry:
  1. l3gol4s

    I am using a translator excuse errors containing the text

    The function would be:

    XX Player sends me an attack at 12:00

    YY player I see the attack coming at 14:00

    But I was not connected at 12:00 I saw the time you came out the attack. The idea would be that you can see the time when an attack came out so I can calculate my colony which come with Count ….. means what I mean?

    Thanks for the solution of the map ….. works very well now …

  2. Arxleol

    I am sorry but I didn’t understand what you were trying to tell me.

    Can you please elaborate further.

    Ax

  3. l3gol4s

    Good attempt to explain it step by step …

    I see an attack that targets one of my colony

    If you know what time they went out an attack on one of your colonies you can calculate time and distances of the attacks which brings a noble.

    When I connect I see the attack and I question ……?

    At that time did the attack ….?

    The function would be, having registered the time that the attack came out….

    thanks for listening and paying attention ……. sorry for the inconvenience

    thank you very much

  4. Alejandro

    I guess what you are looking for is a feature that continuesly supervises attack panel and saves system’s time when an attack shows up… The problem is that you would need to write a code that refresh the window every minute or so, otherwise the attacks will not show on panel and, therefore, you wont be able to store the accurate time in which were sent. Also, if you dont have a premium acct, you can’t see a sumary of incoming attacks, unless you go settlement by settlement, making imposible for the script to save the coordenates from where the attacks are coming. Now, in case of multiple attacks, it would be useless to have the time in which every attack departed if you can’t match it with any enemy settlement at all.
    Do I make my self clear?

  5. Arxleol

    Well, that would probably be interesting function. However, one would have to leave browser online for that to work.

    On the other hand interesting function would be to provide function that would calculate time or arrival and distance and according to current time provide possible units in the attack.

    I will for sure think about it.

    Ax

  6. Kilro

    I have installed the new version and logged onto KINGSAGE.COM and nothing is working. I had version .60 working fine ?

  7. Kilro

    Is my problem that I play on .COM ?

  8. Arxleol

    Premium or none premium?

  9. Arxleol

    Go to:

    Profile -> Settings and click on No premium and then come back to me whether it works or not!?

    Ax

  10. Kilro

    Working :) Sorry For the Inconvenience. Reading First makes life easier :)

  11. Arxleol

    np glad to be helpful.

    Ax

  12. Alejandro

    I’ve just finished the coordination of 14 offensives, with a 14 sec diference between 1st and last. God, how much i would like having some auto-pilot to send the attack for me.

    Am I putting you under any pressure? jejeje

  13. Arxleol

    I am currently working on auto-farmer hope to finish by the end of day :D

  14. Alejandro

    You rock man!

  15. Arxleol

    Well, its going slower then expected.

    Ax

  16. Alejandro

    Watch out, the new gameforge update screwed up the location of the KingsAgeX’s options panel in the castle.

  17. Arxleol

    OK have you noticed any other errors including Kingsage farmer? Strangely I expected a lot more feedback on that one.

    Ax

  18. P.E.T.J.A

    I modify code for version 0.1.21
    this code shows list of settlements in drop down menu

    [code]
    window.updateList = function(){
    var li='';
    var j = 0;
    var findPattern = "/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[2]/td/div[6]/div/table/tbody/tr/td[4]/a";
    var resultLinks = document.evaluate( findPattern, document, null, XPathResult.ANY_TYPE , null );
    var rst=resultLinks.iterateNext();
    var tmp = false;
    do{
    j++;
    var om = j + 1;
    var findPattern = "/html/body/div[2]/table/tbody/tr/td[2]/table/tbody/tr[2]/td/div[6]/table/tbody/tr["+om+"]/td/a";
    var resultLinks = document.evaluate( findPattern, document, null, XPathResult.ANY_TYPE , null );
    var rst=resultLinks.iterateNext();
    if(rst!=null){
    li=li+''+rst.innerHTML+'';
    }else{
    break;
    }
    }while(rst!=null);
    li=li+'';
    GM_setValue('list',li.toString());
    alert("Updated!");
    }

    var qs=new Array();
    var loc=location.search;
    if (loc){loc=loc.substring(1);
    var parms=loc.split('&');
    for(var i=0;i<parms.length;i++){
    nameValue=parms[i].split('=');
    qs[nameValue[0]]=unescape(nameValue[1]);
    }
    }

    var findPattern = "/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[2]/td/div[4]/div/table/tbody";
    var resultLinks = document.evaluate( findPattern, document, null, XPathResult.ANY_TYPE , null );
    var rst=resultLinks.iterateNext();
    rst.innerHTML=GM_getValue('list');
    var findPattern = "/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[2]/td/div[2]/table/tbody/tr/td/b";
    var resultLinks = document.evaluate( findPattern, document, null, XPathResult.ANY_TYPE , null );
    var rst=resultLinks.iterateNext();
    var curname= rst.innerHTML;
    var findPattern = "/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[2]/td/div[2]/table/tbody/tr/td";
    var resultLinks = document.evaluate( findPattern, document, null, XPathResult.ANY_TYPE , null );
    var rst=resultLinks.iterateNext();
    rst.innerHTML=''+curname+'';

    if(qs['s'].toString()=='overview_villages'.toString()){

    var findPattern = "/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[2]/td/div[2]/table/tbody/tr/td/b";
    var resultLinks = document.evaluate( findPattern, document, null, XPathResult.ANY_TYPE , null );
    var rst=resultLinks.iterateNext();
    rst.innerHTML=rst.innerHTML+'';

    var buttonxpath ='/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[2]/td/div[2]/table/tbody/tr/td/b/input';
    var buttons = document.evaluate(buttonxpath, document, null, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null);
    button=buttons.iterateNext()
    button.addEventListener('click',
    function (event) {
    window.updateList();
    },true);
    }
    [/code] ;)

  19. Alejandro

    To be honest, I haven’t tried it yet. I’m not using farming as one of my estrategies on KA.

  20. l3gol4s

    I’ve not tested the farmer yet.

    I’m not using farming as one of my estrategies on KA.

  21. l3gol4s

    list of settlement in the settlement do not appear with the version 0.1.21.

    upgrading the settlement clears the current list.

    The menu kingsagex shown on top of the page

    Los botones de “no premium” y “yes premium” aparecen en multiples partes….

    http://i50.tinypic.com/2hnx4pd.jpg

    http://i47.tinypic.com/29pu520.jpg

    http://i45.tinypic.com/biwg36.jpg

  22. P.E.T.J.A

    my last modification:
    http://cs.ex.lv/list2.jpg

    need code write mail

  23. 1

    hy.pl update the script because after version game update if i chose to update the drop menu becomes unvailable.thx

  24. Arxleol

    Hi all,

    I will try to update KingsageX as soon as possible, but the problem is that I still do not have access to account with multiple settlements, and therefore I am not able to create update.

    My friend who generously offered his help before is obviously on vacation and I’ll have to wait till he comes back.

    Ax

  25. 1

    check pm on userscripts

  26. Arxleol

    Checked and answered.

    Ax

  27. 1

    userscripts is down now.it’s posssible to send me a message to my email(i don’t know if you can see it)but it’s asking when we write any message here.if you can email me i’ll reply

  28. 1

    it’s up again.check pm on userscripts.good luck

  29. dejagore

    Where do I can find an older version of this script?
    Or when update will be ready?
    This one don`t works fine – all functions which simulates premium doesnt work..

  30. Arxleol

    all elder versions of script are available on userscripts.org

    Ax

  31. 1

    hy.it’s possible to update you’re script version to game version?

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Archives