Jump to content
  • 0

Help Problem with announcement.


sotid
 Share

Question

l2jfrozen 1004 interlude

 

Broadcast.toAllOnlinePlayers(new CreatureSay(2, Say2.HERO_VOICE, "[Hopzone]", "Current Votes: " + hopzone_votes));

 

image.png.6af8d11633ca55f6c78cb53a72f388f3.png

 

 "[Hopzone]", "Current Votes: "

Here where the coma is appears an extra " : "

how can I fix  that?

Edited by sotid
Link to comment
Share on other sites

Recommended Posts

  • 0

Try this one:

Broadcast.toAllOnlinePlayers(new CreatureSay(0,3,"[Hopzone] Current Votes", +currentVotes+"."));

This will appear like -> [Hopzone] Current Votes: 2313.

Link to comment
Share on other sites

  • 0
1 hour ago, sotid said:

you showed me how to move it , I already know how to do that .
Is there a way to delete it?

What do you want to do now exactly? What delete exactly?

Edited by Vilmis
Link to comment
Share on other sites

  • 0

You can make it with systemmsg.dat and choose any color you want in rgb

example:

	SystemMessage sm = new SystemMessage(2033); // 2033 - id from systemmsg-e.dat
	sm.addString(Integer.toString(hopzone_votes));
	Broadcast.toAllOnlinePlayers(sm);
	
// example 2033, add this line to systemmsg-e.dat
// 2033	1	[Hopzone] Current Votes: $s1	0	79	CC	E5	FF			0	0	0	0	0		none
// R = 79, G = CC , B = E5 , aplha = FF

with this shit u can save and server bandwidth. :D

Link to comment
Share on other sites

  • 0
47 minutes ago, wongerlt said:

You can make it with systemmsg.dat and choose any color you want in rgb

example:


	SystemMessage sm = new SystemMessage(2033); // 2033 - id from systemmsg-e.dat
	sm.addString(Integer.toString(hopzone_votes));
	Broadcast.toAllOnlinePlayers(sm);
	
// example 2033, add this line to systemmsg-e.dat
// 2033	1	[Hopzone] Current Votes: $s1	0	79	CC	E5	FF			0	0	0	0	0		none
// R = 79, G = CC , B = E5 , aplha = FF

with this shit u can save and server bandwidth. :D

 

 

How can I make it show in the bottom window without checking system from filtering?

https://ibb.co/n775kg0

 

Link to comment
Share on other sites

  • 0
5 minutes ago, sotid said:

 

 

How can I make it show in the bottom window without checking system from filtering?

https://ibb.co/n775kg0

 

 

2033    1    [Hopzone] Current Votes: $s1    0    79    CC    E5    FF            0    0    0    0    0        none

 

change to 2

 

2033    1    [Hopzone] Current Votes: $s1    2    79    CC    E5    FF            0    0    0    0    0        none

Link to comment
Share on other sites

  • 0
14 minutes ago, wongerlt said:

 

2033    1    [Hopzone] Current Votes: $s1    0    79    CC    E5    FF            0    0    0    0    0        none

 

change to 2

 

2033    1    [Hopzone] Current Votes: $s1    2    79    CC    E5    FF            0    0    0    0    0        none

https://ibb.co/T8P510f

 

Only down not possible?

 

Link to comment
Share on other sites

  • 0
12 minutes ago, sotid said:

https://ibb.co/T8P510f

 

Only down not possible?

 

hmm i think not possible, but what point to flood on down? :D

very nervous while you chating and server messages start going to bottom tab.

Link to comment
Share on other sites

  • 0

Thanks , reason is that many things appear on the upper window and they may miss it but I guess but at the end noone cares, we all want the reward.
 

 

By the way for anyone who may use this make sure you add these lines at the beggining

 


import com.l2jfrozen.gameserver.network.SystemMessageId;
import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage;

Edited by sotid
Link to comment
Share on other sites

  • 0
19 minutes ago, sotid said:

Thanks , reason is that many things appear on the upper window and they may miss it but I guess but at the end noone cares, we all want the reward.
 

 

By the way for anyone who may use this make sure you add these lines at the beggining

 


import com.l2jfrozen.gameserver.network.SystemMessageId;
import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage;

then u can make like this:

2033	1	[Hopzone] Current Votes: $s1	0	79	CC	E5	FF			8	0	3	1	0	[Hopzone] Current Votes: $s1	server

100% all will see :D

Link to comment
Share on other sites

  • 0
import com.l2jfrozen.gameserver.network.SystemMessageId;
import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage;


under 


import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;

 

I cant edit code to my prev reply so there.

Link to comment
Share on other sites

  • 0

God. It's obvious you need the import, eclipse will scream and throw errors. You don't have to post obvious things, do you?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



  • Posts

    • Html Design  -  FOR SALE! There will be a total of 5 copies.   "Alchemist's Mystery Gm-Shop"   Alchemist's Mystery Preview PM for more info.
    • Can you help me with this problem when running the gameserver.      
    • Rates  Exp/Sp : 5000x  Adena : 50x  Drop : 50x  Safe Enchant : +6  Max Enchant : +40 Normal enchant scroll rate = 55% till +30 Blessed enchant scroll rate = 80% till +30 Crystal scrolls rate = 90% from +30 to +40 Game Features Auto loot Ranking System Starting level 79 Unique farm zones for adena and server currency Starting pack - A grade items GM Shop for Adena Custom items shop for server currency Auto Learn all skills Custom Mage and Fighter Tattoo No weight limit Subclass without quest Max Subclasses 5 Reworked all Skills/Items and class balance C4/C5/Interlude features/skills tested and working 99% PvP / Pk Announcer PvP Color System Castle Sieges Unique Enocnomy System Max Level 80 Weapon Augmentations Dueling System Offline Shop Heroes every 1 week Custom instances NPC Global Gateekeper Custom Items Shop Buffer Skill Enchanter Augment Manager Vote Manager Exchanger Top 20 PvP/Pk/Clan Boss Manager Castle Manager Password Changer Events  DeathMatch Team vs  Team Domination Double Domination Last man Standing Lucky Chest Simon Says Vip Team vs Team Capture the flag Mutant Korean TvT Commands   .info .menu .vote .repair .stats .bank .online .away & .back .offline_shop Raid / Epic bosses Every 6/8 hours - drops server currency . All info in Boss Manager NPC Donate You dont need to donate to have the best gear ingame, you need just play more time, and be better then others. Web and Discord You can find us here : www.wyB.lt Discord : https://discord.gg/hTEN7uKXNg OPENING DECEMBER 7 AT 20:00 GTM +3
    • It's happening today!   https://www.lineage2.gold/home
  • 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 Disbaled AdBlock