-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.");
}
Not any training model, i should fix that, just a very well done bot engine. As we use it on a local Internet Cafe spot and people join to test server, they don't seem to understand they are bots. Their behaviour is really well done. Many actions that other bots can't do are possible and the are complicated patterns that can be done due to structure of the engine such as Pick items of dead party pk member and later on trade them back to owner. So i'll fix later the title to Bot Engine rather than A.I.
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