so guys i managed to learn how announcements class works with showing the announcements.txt on enterwolrld and i had an idea to create autoannouncer in 5 lines of code but i got stack xD so here is my idea
in the announcements class i created the method
public void showAnnouncement(L2PcInstance activeChar)
{
CreatureSay csay = new CreatureSay(0, Say2.ANNOUNCEMENT, activeChar.getName(), "Dont Forget To Vote For The Server");
activeChar.sendPacket(csay);
}
and then in the enterworld runImpl method i added this
ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable()
{
@Override
public void run()
{
Announcements.getInstance().showAnnouncement(activeChar)
}
}, 5000, 5000); //5000 is for testing
and then the compiler made me realize that run() runs in the new runnable class so i cant access the activechar temporary instance of the runImpl
On April 11 at 18:00 server time (GMT +2), the open beta test of our upcoming Chronicle 2 update will begin!
We invite everyone to join, explore the world of C2 ahead of the official launch, and share your feedback.
📌 Players who find bugs during OBT will receive CoL as a reward:
- 1 CoL for each staticmeshes bug For example, passing through textures, stairs, etc.
- 2 CoL or more for server-side bugs (depending on severity).
You can report bugs via support on Discord or on the forum.
Open beta testing will last approximately until 15.04 20:00 (GMT +2).
Your activity and input will help us improve the game!
The download links will be available later.
Question
Nitzamc
so guys i managed to learn how announcements class works with showing the announcements.txt on enterwolrld and i had an idea to create autoannouncer in 5 lines of code but i got stack xD so here is my idea
in the announcements class i created the method
and then in the enterworld runImpl method i added this
and then the compiler made me realize that run() runs in the new runnable class so i cant access the activechar temporary instance of the runImpl
and now im upset :( so any ideas? ??????
using l2j interlude latest revision
Edited by Nitzamc2 answers to this question
Recommended Posts