Jump to content
  • 0

Boats messages.


Question

Posted

Hi everybody

 

I'm changing my vote reward, and I would like to use the normal channels instead of the announcements. For example, I'd that the vote is displayed as the announcement of the departure of the boats in the orange channel .

 

If anyone knows how, can tell me how?

 

Cordially

9 answers to this question

Recommended Posts

  • 0
Posted
sendPacket(new CreatureSay(0, type, "who", "text"));

 

where type is, for example:

 

Say2.CLAN, Say2.ANNOUNCEMENT and so on, your choice.

  • 0
Posted

Think, use brain a bit, I gave you simple examples.

 

Simply chceck Say2.java class for more chat types.

  • 0
Posted

here is the types:

                                                  "ALL  ",
                                          "SHOUT",
                                          "TELL ",
                                          "PARTY",
                                          "CLAN ",
                                          "GM   ",
                                          "PETITION_PLAYER",
                                          "PETITION_GM",
                                          "TRADE",
                                          "ALLIANCE",
                                          "ANNOUNCEMENT", //10
                                          "PARTYROOM_ALL",
                                          "PARTYROOM_COMMANDER",
                                          "HERO_VOICE"

and as matim said...think it's simple

  • 0
Posted

type can (and was on IL) be a number. That still referencing on the list AzuCeMaZem gave. Numbers goes from 0 to 17

public final static int ALL = 0;

public final static int SHOUT = 1; //!

public final static int TELL = 2;

public final static int PARTY = 3; //#

public final static int CLAN = 4;  //@

public final static int GM = 5;

public final static int PETITION_PLAYER = 6;

public final static int PETITION_GM = 7;

public final static int TRADE = 8; //+

public final static int ALLIANCE = 9; //$

public final static int ANNOUNCEMENT = 10;

public final static int BOAT = 11;

public final static int L2FRIEND = 12;

public final static int MSNCHAT = 13;

public final static int PARTYMATCH_ROOM = 14;

public final static int PARTYROOM_COMMANDER = 15; //(Yellow)

public final static int PARTYROOM_ALL = 16; //(Red)

public final static int HERO_VOICE = 17;

 

So far, it's the near complete list, if not the whole list.

  • 0
Posted

Sorry for double post but, there isanother problem :/

Really, isn't a problem but dunno how to fix it.

 

So now, i have

sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "Pvp system", "Player " + getName() + " reached 5 pvp in a row!"));

This code work fine but only for the player who do the pvp. Others players don't get this message. So how can i send this message to all players?

sendPacketToall for example?

 

Cordially

 

  • 0
Posted

use

Broadcast.toAllOnlinePlayers(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "Pvp system", "Player " + getName() + " reached 5 pvp in a row!"));

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

    • 💎 Premium Google AI One features unlocked: Get Gemini Pro workspace integrations and full cloud storage today.
    • Οχι για ενα merge script για 2 λογους   1. οτι καποιος ζηταει κατι, του λες τιμη, σου δινει λιγοτερα και μετα σου λεει θα παρεις τα αλλα στην επομενη πληρωμη κ εξαφανιζεται   2. οτι εσυ του εξηγεις πως δουλευει κατι, του λες τιμη, συμφωνει, σου λεει μπες κανε μου αυτο τζαμπα λιγο για να προχωρησουμε στο merge, του λες οχι πληρωσε με πρωτα για αυτο κ μετα. σου λεει καντο και σε πληρωνω, του το κανεις, σε γραφει για 10 μερες στο chat και ξαφνικα βλεπεις [WTB] δικο του στο maxc κ οταν τον ρωτας λεει "ναι δικο μου ειναι κ εχω αρχισει ηδη και με αλλον dev".    Αρα καταλαβαινεις τι παιζει εδω, επισης τα λεφτα δεν μ τα εδωσε ακομη κ δεν τα θελω απλα τονιζω τον ορκισμο του "scam" κ οχι αυτα τα τοπικ που εκανα εγω ban trades με 15 ατομα απο τα 1,500 που εχω δουλεψει απο το 2014.
    • Όλα αυτά για ένα merge script ρε παιδιά ? 😅  
    • Έχει ψωμάκι εδώ      
    • afto pou akoma 12.5 xronia meta exeis akoma apopsi gia pragmata pou den gnwrizeis den allazei ?
  • 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..