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!
Im looking for help, don know its even possible, I made some alterations in chat window sizes for NPC-s.
My problem is the QuestHTMLWnd is working, but cant find a way to resize the rewards icons back grounds.
Some one have any idea for change it?
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hoodservices
https://campsite.bio/utchihaamkt
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hoodservices
https://campsite.bio/utchihaamkt
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
Link to comment
Share on other sites
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.