Jump to content
  • 0

Change Announcement Color


Question

13 answers to this question

Recommended Posts

  • 0
Posted

Announcements.getInstance().announceToAll("BlaBLA: "+activeChar.getName()+" has BlaBla.");

 

with this announce with blue letters. i want change the color from announcements or i want make the critical announcement with yellow letters

 

so what pack has critical announces for search something 

 

It's easy to take it from h5.

If this feature is missing, you can use other options from Say2, for instance:

Broadcast.toAllOnlinePlayers(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, player.getName(), "is lame!"));
  • 0
Posted

 

I don't remember if freya has critical announcements implemented.

Announcements.announceToAll("", true);

Announcements.getInstance().announceToAll("BlaBLA: "+activeChar.getName()+" has BlaBla.");

 

with this announce with blue letters. i want change the color from announcements or i want make the critical announcement with yellow letters

 

so what pack has critical announces for search something 

  • 0
Posted

 

It's easy to take it from h5.

If this feature is missing, you can use other options from Say2, for instance:

Broadcast.toAllOnlinePlayers(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, player.getName(), "is lame!"));

ty for info i will try it

  • 0
Posted

 

It's easy to take it from h5.

If this feature is missing, you can use other options from Say2, for instance:

Broadcast.toAllOnlinePlayers(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, player.getName(), "is lame!"));

new CreatureSay(0

what is the 0??? i ask cuz with this code : Broadcast.toAllOnlinePlayers(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, player.getName(), "is lame!")); announce correct but announce in red. and in say2.java have this :

 

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; // used for petition
public final static int PETITION_GM = 7; //* used for petition
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;
public final static int CRITICAL_ANNOUNCE = 18;
public final static int SCREEN_ANNOUNCE = 19;
public final static int BATTLEFIELD = 20;
public final static int MPCC_ROOM = 21;
  • 0
Posted (edited)

It's red cuz you use Say2.PARTYROOM_COMMANDER

 

Move your cursor over the CreatureSay -> int objectId

Edited by SweeTs
  • 0
Posted

i cant understund what you mean..can you write the fully code for announce something with yellow letters?

 

Try Say2.GM or Say2.ALLIANCE instead.

Guest
This topic is now closed to further replies.


  • Posts

    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
    • I think you should check the video more carefully you missing something very important 😛      
    • Im responding to an anonymous account with 3 posts, almost no background, and practically zero useful information added to the discussion. On top of that, the topic title is misleading  calling it "Lucera Source Code" gives a completely different impression from what is actually being presented.   I didn’t say anything different. Therefore, I have no clue how his process produces the same desirable result.   And here you are creating drama. Your topic title clearly says "Lucera Source Code," which is not actually the case, or at least that’s how it looked when I first clicked on it, so I don’t think I was completely off. There’s also no significant information about your process like  what difficulties you faced, what tools you used, or anything else meaningful. Yet you still expect others to provide value based on what? I’m not talking about your project itself which, by the way, good job. I’m talking about the topic itself as a source of value for this forum, because right now it doesn’t really offer much in that regard. So regarding the semantics, yes, wording does matter.  
    • You are funny guy! 😄 😄 😄    I was working with Lucera long before “AI apps” became fashionable. This was not something I generated in one day with a prompt. It took me years of work, testing, debugging and fixing broken decompiled code.   Of course a decompiled source is not the original private repository with the original comments, history and developer structure. Nobody said it is the same Git repository. But saying it is only “guesses” is also wrong.   When you decompile, rebuild, fix thousands of compile/runtime issues, restore broken logic, reconnect scripts, fix bad casts, repair database calls, compile it again and run it in-game, at that point it is no longer just a guess.   It becomes a working reconstructed source base!   The important part is not whether it is byte-for-byte identical to the original private source. The important part is that I can now work directly inside the code, change core logic, rebuild scripts, fix bugs and continue development without being locked behind closed binaries.   Does it compile? Yes. Does it run in-game? Yes. Can I modify core systems directly? Yes. Can I continue development independently? Yes.   So call it reconstructed, decompiled, cleaned, restored or whatever name you prefer. The result is still the same: I have a working source environment that gives me control over the lucera2 project.   And that was exactly the goal!   🙂 
  • 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..