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
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
hello
I need help with how to make the Mod Champion " Modified champion monster system. When dying, the champion monster gains experience. As it revives, it becomes increasingly stronger, until it reaches level 20 and then the boss is summoned!"
I don't care what these random rats are typing to me. I will ruin their business for scamming other people's work. I'm very good at it, no matter what protection or obfuscation they add to their files. I will break them and share everything for free with the community that's what they deserve.
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 NitzamcLink to comment
Share on other sites
2 answers to this question
Recommended Posts