Jump to content

StinkyMadness

Legendary Member
  • Posts

    1,036
  • Credits

  • Joined

  • Last visited

  • Days Won

    20
  • Feedback

    100%

Posts posted by StinkyMadness

  1. private int _killCount;
    private long _killTime;
     

    public void increasePvpKills(L2Character target)
    {
        if (target instanceof L2PcInstance && AntiFeedManager.getInstance().check(this, target))
        {

            if (_killTime < System.currentTimeMillis())
                _killCount = 0;
     

            _killCount++;
            _killTime = System.currentTimeMillis() + 60000L;

     
    There is no need for any task @MegaCheat

    • Like 1
    • Thanks 1
    • Upvote 1
  2. On 1/5/2023 at 11:32 PM, Nightw0lf said:

    why all skills say icon.skill0000

    The skill you seeing are used by NPC and on client side they have default "icon.skill0000" icon so that one is parsed.
    If the skill icon equals to skill id the parser skip it on parsing as the java itself is generating that icon.
    "_icon = set.getString("icon", String.format("icon.skill%04d", _id));"

    • Like 1
  3. 2 hours ago, Charm3R said:

    Hello once again. Recently tried to apply this skin code:(https://pastebin.pl/view/61885863), but with no success since as it seems is written for previous versions of aCis. This code is written by StinkyMadness and Williams, but, is there any chance of helping me adapt it for the current versions, like 401+ ? If so i would be so glad.

     

     

    Thanks in advance.

    The code is not written by me... I just give him some hints on private messages to fix some major issue on his code.. Williams code it.. not me. Gosh... xD

    • Thanks 1
  4. 2 hours ago, Nightw0lf said:

    ...

    Reading whole HTML result its not the best way to find votes when the site support JSON results ofc.. but not all sites share JSON information's for global results.
    Also the Jsoup lib can be used for finding any information from URL not only votes and the class I shared its an simple example.

    You can grab any info with simple inspect line you want to grab.
    image.png.2822a1fcca7dcf3d0cc6c03434831b37.png

    Anyway... its just a guide for jsoup, not code share.
    I hope one day all toplist sites provide JSON results for global votes like your site. GJ :)

  5. 6 hours ago, Kara said:

     

    Why you afraid you won't have the latest source and you gonna miss the ultra super duper crazy features?

    Silly people...

    No just newer "revisions" has more stolen codes adapted on this crappy source, Vilmis was adapting payed codes from client to his source and then include that features on his updates.

    Include Augment System ( VIDEO ) and old version of my Achievement System xD

  6. 11 minutes ago, splicho said:

    Well It's not only on him if there are more devs contributing, pushing fixes and what not..

    I already told you why there are people helping the project.. that does not change the fact that the aCis is one-man project..

  7. 5 hours ago, Dexus said:

    It's not Acis where all team works on it. Vilmis worked alone

    First of all, aCis its one-man project too (@Tryskell). Just he is not acting like he has secret files of NASA.. so he is/was sharing his files/edits and motivate people's to participate and contribute on his project, there are people that are not money grabbers and sell coal for gold.

    • Like 1
    • Haha 1
    • Upvote 1
  8. So, I found in my old HDD some files and maybe someone want to use this one.
    You can use the code to find current votes of vote sites.
    Here is the Java Class : https://pastebin.com/EtTxVrM4

    And here are some example's for few sites:

    System.out.println("l2topzone.com: " + new ContentURL("https://l2topzone.com/lineage/server-info/6084/l2damage", "span.label.label-info").toInt());
    System.out.println("l2.hopzone.net: " + new ContentURL("https://l2.hopzone.net/lineage2/details/93067/l2-damage", "span.rank.tooltip.hidden").toInt());
    System.out.println("l2network.eu: " + new ContentURL("https://l2network.eu/details/346/L2Exilium-World/", "span.btn-label.btn-label-right").toInt());
    System.out.println("topservers200.com : " + new ContentURL("https://topservers200.com/lineage2/1/l2mad", "a#vote-btn.btn-vote > span").toInt());
    System.out.println("l2.topgameserver.net : " + new ContentURL("https://l2.topgameserver.net/lineage/server-detail/250/L2Reborn", "div.votes-count > strong").toInt());
    System.out.println("l2top.co : " + new ContentURL("https://l2top.co/server-info/L2Unity", "li.text4").toInt());
    System.out.println("top.l2jbrasil.com: " + new ContentURL("https://top.l2jbrasil.com/index.php?a=stats&u=djvogans", "div#adminctt b:contains(Entradas(Total):)").next().toInt());
    System.out.println("l2votes.com : " + new ContentURL("https://l2votes.com/serverPage.php?sid=8", "a.votes").toInt());
    System.out.println("itopz.com : " + new ContentURL("https://itopz.com/info/325312", "span.btn.badge.badge-secondary").toInt());
    System.out.println("l2jtop.com : " + new ContentURL("https://l2jtop.com/server/exiliumworld/info/", "div.votes").toInt());
    System.out.println("l2top.gr : " + new ContentURL("https://l2top.gr/?a=details&u=l2kot", "span.badge.badge-light").toInt());
    
    // Example Output
    // l2topzone.com: 4878
    // l2.hopzone.net: 21588
    // l2network.eu: 11658
    // topservers200.com : 4221
    // l2.topgameserver.net : 50228
    // l2top.co : 8418
    // top.l2jbrasil.com: 36593
    // l2votes.com : 2649
    // itopz.com : 544
    // l2jtop.com : 12897
    // l2top.gr : 504


    I guess everyone that is not lazy is able to add any website he want and create basic system for rewarding the players.

    To use the class you should import Jsoup.jar on your project : https://jsoup.org/download

    • Like 2
    • Thanks 2
  9. I don't see why its so complicated and have 3 pages on how should be.. every Raking system shared until today was ThreadPool + Connection each X minutes. I just shared one different approach to avoid as many useless task and mostly be updated each time player reach it.. that's all 😄

    There can be boolean for _requestToView and avoid update as far its false.. but its way more simple with one timestamp I guess.

     

    @LordPanic

    7 hours ago, LordPanic said:

    On server start: Feed the List with the first top x players from the database.

    You have to feed the CHM with all kills information's.

    That's how its was one of my previews systems but this one its way more simple I think...

     

  10. 11 minutes ago, SweeTs said:

    @StinkyMadnessofc 1h delay is NOT a shit, you could even make it update once a day. Its like saying olympiad ranking is shit bcs it updates only once.

    Ofc that's shit for PvP server 😛 I had many requests to update it after every match 😄 haha

    5 hours ago, Kara said:

    The lack of knowledge in this topic is monstrous.

    Nobody said that its something super heavy to update it each one hour.
    The point is to update as quick is possible (as if you are the only person that visit that page last 1 minute you will see it directly updated).

    The point of timestamps its that works and player can see more updated statistic than waiting 1 hour for an info he is looking right away avoiding as many useless connections.. that's all.

  11. Thanks for the offtopic.

     

    //On topic

    @SweeTs the only reason of timestamp is because statistic page its the most abandon page of CB.

    In case of ThreadPool of 1-5 minutes it will do connection w/o reason.. as it will visited a lot of less times.

    In case of ThreadPool of 1 hour.. then its not statistic its sh!t 😄

    With timestamp you avoid the ThreadPool and useless database connection each X time.

×
×
  • Create New...