Jump to content

Question

Posted

Έφτιαξα αυτόν τον κώδικα και δεν ξέρω γιατί δεν εμφανίζει στους GM το Html, ενώστους άλλους το δέιχνει κανονικά.

 

        if (Config.SERVER_NEWS)
       {
           String serverNews = HtmCache.getInstance().getHtm("data/html/servnews.htm");
           if (activeChar.getAccessLevel() > 0 )
           {
               serverNews = HtmCache.getInstance().getHtm("data/html/servgmnews.htm");
           }
           if (serverNews != null)
               sendPacket(new NpcHtmlMessage(1, serverNews));
       }

14 answers to this question

Recommended Posts

  • 0
Posted

    if (Config.SERVER_NEWS)

        {

            String serverNews = HtmCache.getInstance().getHtm("data/html/servnews.htm");

            if (activeChar.getAccessLevel() > 0 )

            {

                serverNews = HtmCache.getInstance().getHtm("data/html/servgmnews.htm");

            }

            if (serverNews != null)

                sendPacket(new NpcHtmlMessage(1, serverNews));

        }

 

Γιατι το διχνει μονο σε οσους εχουν 0 access level ειναι απλο.

  • 0
Posted

OFFTOPIC: όταν είναι κάτι σε code δεν μπορείς να βάλεις χρώματα.

 

ONTOPIC: θέλω να βλέπει όποιος έχει access παραπάνω από 0 διαφορετικό html από ότι όσοι έχουν 0. Ο κώδικας είναι σωστός και το compile γίνεται κανονικά. Όταν μπαίνω με simple char δείχνει κανονικά το html αλλά όταν μπαίνω με GM δεν δείχνει καν το παράθυρο.

  • 0
Posted

OFFTOPIC: όταν είναι κάτι σε code δεν μπορείς να βάλεις χρώματα.

 

ONTOPIC: θέλω να βλέπει όποιος έχει access παραπάνω από 0 διαφορετικό html από ότι όσοι έχουν 0. Ο κώδικας είναι σωστός και το compile γίνεται κανονικά. Όταν μπαίνω με simple char δείχνει κανονικά το html αλλά όταν μπαίνω με GM δεν δείχνει καν το παράθυρο.

ΕΝοω οτι το 0 να το κανεις 100 ( οσο ειναι τα access) γιαυτο το εχω κοκκινο
  • 0
Posted

ΕΝοω οτι το 0 να το κανεις 100 ( οσο ειναι τα access) γιαυτο το εχω κοκκινο

activeChar.getAccessLevel() > 0

 

αν το κάνω 100 θα πρέπει να αλλάξω και τον τελεστή και εγώ θέλω να το βλέπει και πχ ο event manager που έχει accesslevel80...

  • 0
Posted

activeChar.getAccessLevel() > 0

 

αν το κάνω 100 θα πρέπει να αλλάξω και τον τελεστή...

Πο δεν παιζει να βγαλω ακρια με σενα καντο οπως σου ειπα αμα θες καταλαβε αυτο ειναι αλλα επιδει εισαι λιγο χαζουλης δεν παιζει να βγαλεις ευκολα ακρια.
  • 0
Posted

Πο δεν παιζει να βγαλω ακρια με σενα καντο οπως σου ειπα αμα θες καταλαβε αυτο ειναι αλλα επιδει εισαι λιγο χαζουλης δεν παιζει να βγαλεις ευκολα ακρια.

Ρε φίλε τι δεν καταλαβαίνεις δηλαδή; και που είμαι χαζός;

 

Έχω 1 βρόγχο που ρώταει αν ο παίχτης έχει access πάνω από 0 ( δηλαδή 1,2,3, ... ,+οο ) να του δείχνει το GM html.

Εσύ μου λές να πάω να βάλω στον βρόχο να ρωτάει αν ο παίχτης έχει access πάνω απο 100 ( δηλαδή 101,102,103, ... , +οο ) και σου απαντάω ότι δεν θέλω γιατί έχω πχ. gm με access 80 και με 85 και με 90. Στην τελική ποιος είναι ο χαζούλης;

  • 0
Posted

Ρε φίλε τι δεν καταλαβαίνεις δηλαδή; και που είμαι χαζός;

 

Έχω 1 βρόγχο που ρώταει αν ο παίχτης έχει access πάνω από 0 ( δηλαδή 1,2,3, ... ,+οο ) να του δείχνει το GM html.

Εσύ μου λές να πάω να βάλω στον βρόχο να ρωτάει αν ο παίχτης έχει access πάνω απο 100 ( δηλαδή 101,102,103, ... , +οο ) και σου απαντάω ότι δεν θέλω γιατί έχω πχ. gm με access 80 και με 85 και με 90. Στην τελική ποιος είναι ο χαζούλης;

ε περνα 3 φορες αυτο τον κωδικο

Π.χ

πρωτο για αcc 0 meta 20,meta 40 k paei legontas

  • 0
Posted

ε περνα 3 φορες αυτο τον κωδικο

Π.χ

πρωτο για αcc 0 meta 20,meta 40 k paei legontas

Το πρόβλημα δεν είναι ότι δεν μπαίνει μέσα στον βρόγχο. Αν δεν έμπαινε θα μου έδειχνε το κανονικό ( servnews )...

Το πρόβλημα είναι ότι δεν ΕΜΦΑΝΙΖΕΙ το servGmNews.html.

 

 

 

ΥΓ: άστο γάμησετο καλύτερα. Δεν μου φένεται να μπορείς να με βοηθήσεις...

ΥΓ: more code=fewer performance=coder can't understand the code.

  • 0
Posted

if (Config.SERVER_NEWS)
       {
           if (activeChar.getAccessLevel() > 0 )
           {
               String newsGM = HtmCache.getInstance().getHtm("data/html/servgmnews.htm");
               if (newsGM != null)
                   sendPacket(new NpcHtmlMessage(1, newsGM));
           }
           else
           {
               String newsNormal = HtmCache.getInstance().getHtm("data/html/servnews.htm");
               if (newsNormal != null)
                   sendPacket(new NpcHtmlMessage(1, newsNormal));
           }
       }

 

try.

 

ΥΓ: Μια παρακληση.. Αν δεν εχετε ιδεα για το τι λετε, μην πετατε μαλακιες. Ευχαριστω πολυ =)

  • 0
Posted

if (Config.SERVER_NEWS)
       {
           if (activeChar.getAccessLevel() > 0 )
           {
               String newsGM = HtmCache.getInstance().getHtm("data/html/servgmnews.htm");
               if (newsGM != null)
                   sendPacket(new NpcHtmlMessage(1, newsGM));
           }
           else
           {
               String newsNormal = HtmCache.getInstance().getHtm("data/html/servnews.htm");
               if (newsNormal != null)
                   sendPacket(new NpcHtmlMessage(1, newsNormal));
           }
       }

 

try.

 

ΥΓ: Μια παρακληση.. Αν δεν εχετε ιδεα για το τι λετε, μην πετατε μαλακιες. Ευχαριστω πολυ =)

το έχω δοκιμάσει κι έτσι. πάλι τα ίδια έκανε. Τέσπα thanks για το help.

  • 0
Posted

το έχω δοκιμάσει κι έτσι. πάλι τα ίδια έκανε. Τέσπα thanks για το help.

 

Δοκιμασε να γραψεις ΑΚΡΙΒΩΣ οτι σου εδωσα. Παρατηρησα ενα βασικο λαθος στον κωδικα που εδωσες, και καταλαβα τι δεν εχεις καταλαβει. Ξαναδοκιμασε να βαλεις ΑΚΡΙΒΩΣ οτι σου εδωσα και πες μας το αποτελεσμα. Μην ξεχασεις φυσικα να δημιουργησεις το νεο htm για τους GMs.

  • 0
Posted

Δοκιμασε να γραψεις ΑΚΡΙΒΩΣ οτι σου εδωσα. Παρατηρησα ενα βασικο λαθος στον κωδικα που εδωσες, και καταλαβα τι δεν εχεις καταλαβει. Ξαναδοκιμασε να βαλεις ΑΚΡΙΒΩΣ οτι σου εδωσα και πες μας το αποτελεσμα. Μην ξεχασεις φυσικα να δημιουργησεις το νεο htm για τους GMs.

σωστός. λειτούργησε έτσι.

 

Το δοκίμασα έτσι και δεν καταλαβαίνω τι είχα γράψει λάθος ( με 2 sting name κτλπ )... Thanks!

  • 0
Posted
if (Config.SERVER_NEWS)

       {

           String serverNews = HtmCache.getInstance().getHtm("data/html/servnews.htm");

           if (activeChar.getAccessLevel() > 0 )

           {

               serverNews = HtmCache.getInstance().getHtm("data/html/servgmnews.htm");

           }

           if (serverNews != null)

               sendPacket(new NpcHtmlMessage(1, serverNews));

       }

 

if (Config.SERVER_NEWS)

       {

           if (activeChar.getAccessLevel() > 0 )

           {

               String newsGM = HtmCache.getInstance().getHtm("data/html/servgmnews.htm");

               if (newsGM != null)

                   sendPacket(new NpcHtmlMessage(1, newsGM));

           }

           else

           {

               String newsNormal = HtmCache.getInstance().getHtm("data/html/servnews.htm");

               if (newsNormal != null)

                   sendPacket(new NpcHtmlMessage(1, newsNormal));

           }

       }

 

Θα σε αφησω να καταλαβεις μονος το λαθος σου ;~) Θα σε βοηθησει να μην το επαναλαβεις την επομενη φορα. Καλη επιτυχια.

 

ΥΓ: Οσα υπογραμμισα ειναι ενα μερος του προβληματος.. Υπαρχει κι αλλο ενα, πολυ βασικοτερο. Αυτο το αφηνω σε εσενα.

  • 0
Posted

σωστός. λειτούργησε έτσι.

 

Το δοκίμασα έτσι και δεν καταλαβαίνω τι είχα γράψει λάθος ( με 2 sting name κτλπ )... Thanks!

Guest
This topic is now closed to further replies.


  • Posts

    • I wouldn't expect something less, since you work with Psadek (or I maybe mistake you with NightW0lf from itopz, in that case soz) Let's throw rocks at Java Golds and elevate "original L2OFF Golds", no?
    • We are delighted to announce our partnership with the leading resource, Active Anticheat, specializing in protection against bot programs, clickers, and additional modules for the game client that enhance the experience for both you and the players!   When you purchase Active Anticheat for our product, you will also receive a $50 discount.   Here's a brief overview of the features of Active Anticheat: Best protection against bots, including private and premium versions. Window limitation. HWID spoofing protection. Virtual machine protection. File hash protection for client files, preventing players from modifying them (e.g., interface files). Encryption of any game files. Integration with Discord to attract new players! Additional plugins: - Window with saved player logins/passwords. Players no longer need to enter them every time! - HWID sending to the game server. - Game window optimizer for quick switching. - Background FPS adjustment. - Window name customization in the format "%character_name% - %server_name%". - Ctrl+C/V permission. - Login and password saving (for Interlude -> High Five). - Launching the browser via server packets. - Launching interface events via server packets. - Interlude: fixing a known game bug (History: UpdateAnimation <- AActor::Tick <- TickAllActors <- ULevel::Tick <- (NetMode=0) <- TickLevel <- UGameEngine::Tick <- UpdateWorld <- MainLoop). - Interlude: debuff feature. 9) All of this is available without modifying the game server code (some plugins may require minor changes). Take note of newest plugin, which is highly useful: Guides section
    • The Lucera2 Multiprotocol is an advanced server branch for Lineage 2 that enables seamless support for multiple client versions on a single server instance. This allows players to connect and play using either the legacy (old) client or the newer Classic client simultaneously, without any compatibility issues or loss of functionality. Key Benefits Dual Client Support: Both the old Interlude client and Classic: Secret of Empire 2.6 client can run concurrently on the same server. All features from the Classic client (e.g., enhanced UI, new mechanics) remain fully available, while the old client retains its alternative features (e.g., simplified interfaces for lower-end hardware). Expanded Player Base: Ideal for regions with limited access to modern gaming setups, as it accommodates a wider range of devices and preferences, merging Legacy and Classic communities into one forum section for unified discussions. No Functionality Gaps: Extensive testing ensures zero disruptions—players on either client experience complete game integrity, including quests, PvP, raids, and custom Lucera2 subsystems. You can fully test and explore all aspects of Multiprotocol on the dedicated Test Server. Supported Protocols C6 (Old Client): Protocol versions 740–770. Classic Client (Secret of Empire 2.6): Protocol versions 166–192.
    • Connect to the server you need to >>>download<<< game client launch from /system_en/. Login server setup on auto registration, admin rights in game by default . Or you can use a patch specifying the l2.ini Connect to address classic.lucera2.com if you already have a game client Download updated patch All major/minor subsystems operate in a proper view. Absolutely ready to combat the server.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock