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
Hello. You may encounter the Push item fail error when trying to pick up an item dropped on the ground by a mob.
or
You can throw something out of your inventory and pick it up again, several times.
Probably this is a quantum dependency) I don't understand at what point this happens, sometimes two items one after another experience push item errors, and sometimes I don't have enough thousands of attempts to repeat this trick)
In any case, this is just a visual error and after the relog, the item appears in the inventory. I think first i need to disconnect the extender and check it on a bare server. I still need time to check this, maybe it's not even about the autoloot function.
https://youtu.be/6mcfmdImofE
-----------
In general, I would like to thank our wonderful Emca Eressea for her deep knowledge in programming and reverse engineering. And for the fact that her work is open to everyone, this is very amazing, and incredibly valuable.
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