Jump to content

S-T-I-N-K-Y

Legendary Member
  • Posts

    1,041
  • Joined

  • Last visited

  • Days Won

    21
  • Feedback

    100%

Posts posted by S-T-I-N-K-Y

  1. 15 minutes ago, Elfo said:

    It's cool, but this would be better on a website. The CB doesn't lend itself to the full potential of what you're trying to do.

    SHHHHHH... don't ruin it 😉 

    Our original concept was to develop this as a website, but we decided to first assess the level of interest to determine if there’s enough engagement to justify enhancing it to its full potential.

  2. 22 minutes ago, protoftw said:

     

    Never doubted it's your or not, customer had it and wanted to "refine it". He got it refined. I do a lot of redesigns as well 😉

     

    I'm also glad you still like it, it looks good 4 years later. If it bothers you , let me know we can add a text on top of it saying , Originally Made: by StinkyMadness.

    No worries at all about the credits! Just a quick question on who the customer is. Could you send me their name in a private message? Only three people should have access to the CommunityBoard I coded a few years back. 😄

  3. With NPCDialogWnd.uc modification of Interface.u you can change the size of the window for each HTML:

    Use this: https://pastebin.com/iYs8AQQ7

    and you will need also this one on UICommonAPI.uc::

    function String StringBetween(String param, String iString1, String iString2)
    {
        local int varInt;
        
        varInt = InStr(param, iString1) + Len(iString1);
        return Mid(param, varInt, InStr(param, iString2) - varInt);
    }

    Inside the <html> tag you can add "WIDTH=X", "HEIGHT=X" or "IMAGE=X"

    • Like 1
  4. 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
  5. 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
  6. 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
  7. 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 :)

  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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..