Jump to content
  • 0

[equest] vote reward system


Question

Posted

looking for a freya vote system,i tied 1 or 2 from here, but i want one that the votes count is displayed on screen,and not as anannouncement,if someone knows of one plz point me to the corect topic

1 answer to this question

Recommended Posts

  • 0
Posted

Really simple.

 

You said displayed on screen, so i suppose you expect big text such as for example ExShowScreenMessage

 

So simply replace sending announcement with iterate sending ExShowScreenMessage packet for L2World players.

 

Something like:

 

for (L2PcInstance player: L2World.getInstance().getAllPlayers())
{
       player.sendPacket(new ExShowScreenMessage("TEXT", 5000);
}

 

Where 5000 is delay in ms, in this case it equals to 5 sec.

 

I could make syntax mistake, because it was written here, not by using eclipse, and i dont remember each code : )

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


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