Hello , i recently added a code to protect newbies from attack of other players,depends at level difference of players.
"player is getting skill(anchor)" when hit player with 10+ level difference.
but this is based on "TARGET" and player is also paralyzed when they use buff to other player with 10level difference. I want to allow buffs to other players no matter the level difference .
code:
Spoiler
public void newbieProtectionSystem (L2Character target)
{
if (L2Config.ENABLE_NEWBIE_PROTECTION_SYSTEM)
{
int targetLevel = target.getLevel ();
int playerLevel = L2PcInstance.this.getLevel ();
if (playerLevel - targetLevel> Config.PROTECTION_DIFFERENCE_LEVEL)
{
int skillId = Config.PROTECTION_SKILL_ID;
int skillLevel = Config.PROTECTION_SKILL_LVL;
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.
It's impossible to explain things to someone completely stupid like you.
You really are very dumb; I never imagined someone with such severe psychological issues could exist on a forum.
You should go to a doctor immediately, as this stupidity might be contagious to others.
You should feel ashamed. 🤣🤣🤣🤣🤣🤣🤣🤣
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/bDVQYKMUb3
https://campsite.bio/utchihaamkt
2 clients:
StyleA: Original client
test1: Unity client
Monster kills are displayed correctly on both clients. Soon it will be possible to kill mobs in a party on 2 different clients
Question
Irrelevant
Hello , i recently added a code to protect newbies from attack of other players,depends at level difference of players.
"player is getting skill(anchor)" when hit player with 10+ level difference.
but this is based on "TARGET" and player is also paralyzed when they use buff to other player with 10level difference.
I want to allow buffs to other players no matter the level difference .
code:
public void newbieProtectionSystem (L2Character target)
{
if (L2Config.ENABLE_NEWBIE_PROTECTION_SYSTEM)
{
int targetLevel = target.getLevel ();
int playerLevel = L2PcInstance.this.getLevel ();
if (playerLevel - targetLevel> Config.PROTECTION_DIFFERENCE_LEVEL)
{
int skillId = Config.PROTECTION_SKILL_ID;
int skillLevel = Config.PROTECTION_SKILL_LVL;
L2Skill skill;
skill = SkillTable.getInstance (). getInfo (skillId, skillLevel);
if (skill != null)
skill.getEffects (L2PcInstance.this, L2PcInstance.this);
sendMessage (Config.PROTECTION_MESSAGE);
return;
}
i could add restriction skill ids but i think is simplier way than add every skill id :/ .
L2jfrozen last rev
Thanks in advance!
2 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.