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.
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
Statique
if(target instanceof L2Npc)
{
L2Npc moob = ((L2Npc)target);
if(Config.KS_PROTECT_MOOBS.contains(moob.getNpcId()))
{
L2PcInstance player = attacker.getOwner();
if(moob._attackedBy.contains(player))
moob._attackedByDmg.set(moob._attackedBy.indexOf(player), (moob._attackedByDmg.get(moob._attackedBy.indexOf(player))+damage));
else
{
moob._attackedBy.add(player);
moob._attackedByDmg.add(damage);
}
}
}
----
I'm trying to add a code on my pack, I added everything without any errors except the at the above part of the code. (GetOwner)
It is based on the Equal Project everything works fine except that little detail.
Thanks in advance,
Static
8 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.