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!"));

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Hello there, Im beyond confused and dont know what path to take. I want to start working on a L2 server, changing some stuff here and there and finally in the future if  im happy with the results, to launch the server, but... L2j or L2off? After all this years, is there a Interlude L2j close to off?   Ive spent some time lookin over this forum, searching what would be better and what files to take but I ain't near to a clear answer.  Most of the time everyone is trowing stones at everyone, "your filles are trash, my filles are good" and viceversa. Therefore, Im reaching out to a knowledge guy, hopefully from a neutral position to all this drama, that can pin point me in a direction.    To explain what I want for a base start is an Interlude with a classic interface (features), low rate. Mostly what this guy TravorJ is describing in his post TravorJ post , and to do some reworks on it, ex: mobs drop, rethink the augment system/interface, rethink learning skills/enchant skills, create some custom potions/buff effects, siege mechanics... Is that possible on off files? or is better to go with L2j? I also want to mention that I have little to none L2 dev experince (13-15yrs ago I had an L2j server running  for a month where I made some basics changes), but I have coding background so Im used to that and more than willing to learn.   So in conclusion, I dont want to get some free shared files without any support, that I need to wrap my head around and fix stuff for long time to make them work, stuff thats already fixed buy someone else. Instead im looking to buy something thats more updated and start working from there. Question is what and from whom? Kinda sux when you go and buy something and u dont know what the hell are you buying (need some guidance here)   Is L2j Orion a good choice? I saw that is regularly updated. Lucera2 I dont think is something that I want cuz they dont sell soruce, prefer to have control and not to be dependent on someone to much...   Big thanks in advance!   
    • L2 INSIDE - HTML DESIGN     Portfolio - protojahdesigns.com You can also join Protojah Designs Discord
    • Server / Discord Live Discord L2Fol Community . you are welcome to join on our latest updates.
    • Hi, for l2jfrozen...   I want Bless Enchat to have a limit.   Example: 7+ to +15 with Bless Enchat.   That for +16, it doesn't allow use.
  • 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