-I have found a code for Newbie zone depends by level but i want to depends by echant of amor/weapon/jewel (no more than +6)
also getflag on enter and setflag(0) on exit.
\
Code:
Spoiler
protected void onEnter (final L2Character character)
{
if (character instanceof L2PcInstance)
{
if ((((L2PcInstance) character) .isNewbie ()))
{
((L2PcInstance) character) .sendMessage ("You entered the Newbie Zone.");
((L2PcInstance) character) .sendMessage ("This area is protected up to level" + Config.MAX_LEVEL_NEWBIE_STATUS + ", from level" + (Config.MAX_LEVEL_NEWBIE_STATUS + 1) + "the player who attempts to enter will be removed from the area . ");
}
}
else
Spoiler
protected void onExit (final L2Character character)
{
((L2PcInstance) character) .sendMessage ("You left the Newbie Zone.");
}
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/uthciha-services
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/uthciha-services
https://campsite.bio/utchihaamkt
Question
scraw
-Hello once again . I have an issue:
-I have found a code for Newbie zone depends by level but i want to depends by echant of amor/weapon/jewel (no more than +6)
also getflag on enter and setflag(0) on exit.
\
Code:
protected void onEnter (final L2Character character)
{
if (character instanceof L2PcInstance)
{
if ((((L2PcInstance) character) .isNewbie ()))
{
((L2PcInstance) character) .sendMessage ("You entered the Newbie Zone.");
((L2PcInstance) character) .sendMessage ("This area is protected up to level" + Config.MAX_LEVEL_NEWBIE_STATUS + ", from level" + (Config.MAX_LEVEL_NEWBIE_STATUS + 1) + "the player who attempts to enter will be removed from the area . ");
}
}
else
protected void onExit (final L2Character character)
{
((L2PcInstance) character) .sendMessage ("You left the Newbie Zone.");
}
19 answers to this question
Recommended Posts