-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.");
}
Lineage II Classic Einhovant new project is looking for a skilled Java Developer to join our team!
If you're passionate about game development and eager to contribute to this project, we'd love to hear from you.
For more details, feel free to send us a message. Let’s create something amazing together!
DISCORD :
https://discord.com/users/325653525793210378
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