I need help with my AIOs since restrict them from leaving towns is hard
so I would know how to use a punishment for such
In L2TownZone.java this
protected void onExit(L2Character character)
{
// TODO: there should be no exit if there was possibly no enter
if (_isPeaceZone)
character.setInsideZone(L2Character.ZONE_PEACE, false);
character.setInsideZone(L2Character.ZONE_TOWN, false);
if (character instanceof L2PcInstance)
{
if (((L2PcInstance)character).isDonator() && getTownId() == 7)
{
((L2PcInstance)character).sendMessage("AIOs can't leave town. You are now back.");
((L2PcInstance)character).teleToLocation(MapRegionTable.TeleportWhereType.Town);
}
else if (((L2PcInstance)character).isDonator() && getTownId() == 8)
{
((L2PcInstance)character).sendMessage("AIOs can't leave town. You are now back.");
((L2PcInstance)character).teleToLocation(MapRegionTable.TeleportWhereType.Town);
}
else
((L2PcInstance)character).sendMessage("You have entered a non-restricted area.");
}
}
It works, but the restriction also applies when it goes to Town to Town .. here's how to limit access only to towns with ID 1-13!?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
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
bjorkker02
Hello folks then .. :-[
I need help with my AIOs since restrict them from leaving towns is hard
so I would know how to use a punishment for such
In L2TownZone.java this
It works, but the restriction also applies when it goes to Town to Town .. here's how to limit access only to towns with ID 1-13!?
thx
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.