Jump to content

Recommended Posts

Posted

Καλησπέρα , ένα απλό note πιο πολύ για κάτι που μπορεί να σας προβληματίσει στην γλώσσα java σχετικά με το L2 ..

 

θα εξηγήσουμε τον κώδικα εδώ , ώστε να τον χρησιμοποιήσετε στους δικούς σας

 

 

Αρχίζουμε ,

 

 if (activeChar.getPvpKills() >= 5000)
        {
        	activeChar.sendMessage("You are now a server hero for beign so great fighter!");
      Announcements.getInstance().announceToAll(activeChar.getName() + "Is now a server's hero!");
        	activeChar.setHero(true); 
        }

 

αυτός είναι ο κώδικας μας , δίνουμε έμφαση εδώ

 

[b]Announcements.getInstance().announceToAll(activeChar.getName() + "Is now a server's hero!");
        	activeChar.setHero(true); [/b]

 

Λοιπόν ,

 

Announcements.getInstance () = μας συνδέει στο announcements instance (πάντα το βάζουμε)

AnnounceToAll = να σταλεί σε όλους

(activeChar.getName() = το ποιό σημαντικό , με βάση αυτού , το L2 θα βρεί το όνομα του παίχτη που έκανε τα παραπάνω

if (activeChar.getPvpKills() >= 5000)

, πρέπει πάντα να το βάζουμε για να προσδιορίζουμε τι όνομα θα βγεί στην ανακοίνωση

+ "xxx" = μετά το getName , μπένει αυτό που είναι το ΤΙ να ανακοινώσει το L2

 

 

Attention

 

Όταν δουλεύουμε στο L2PcInstance η οπουδήποτε αλλού μπορεί να μας βγάλει error στο

Announcements

, κάνουμε δεξί κλικ , και πολύ απλά το περνάμε (2 κλικ είναι)

 

 

Γρήγορα και καλά

Posted

oreo gia kapion p dn 3erei :D

otan les 8a bgalei error sto announcements i dexi click quick fix i pas panw sto error kai patas import

Posted

oreo gia kapion p dn 3erei :D

otan les 8a bgalei error sto announcements i dexi click quick fix i pas panw sto error kai patas import

No2 answer :P
Posted

8a s dina +1 gia to guide file HaroC ala eimai newbie member :DD

 

 

Parakaleite o administrator na me kanei globar moderator gia toso kairo pou eimai sto site kai sas anexomai oloos zwa

 

Posted

Poly oraio Revenger exeis oreksi teleutaia blepo :P mia xara ante synexise etc na ma8ainoume k emeis apo esas gt monoi mas ligo dyskolo xD Thnx again

  • 7 months later...
Posted

κωδικα* afto einai to lathos pou exeis sto title sou file m. ;)

 

btw mpravo poli kalo guide.

«  on: December 16, 2009, 01:39:31 PM » -.-

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • QR code recognition has been added when logging into Google services that include this request. Instructions have been added to product descriptions; this only works for items that include this information.
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
  • Topics

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