Hello maxcheaters..! so i have an idea about 2 fixes for my server but i need your usefull help to do it right..!
so the first code is about Olympiad... i was thinking how to avoid the prefrenzy, angelic icon and other things like that...!
so i was thinking... if i can put a code that when you are in Oly before start the match, the hp will cannot drop down...! i mean... as much as hp you receive (from buffs or armors, weapons etc.)
the HP cannot drop down! just to staying full! can we do that?!
the second code is something about the drain from mobs while in flag...!
i've tried this code on L2PcInstance.java:
public void doAttack(L2Character target)
{
super.doAttack(target);
+ if ((getPlayer().getPvpFlag() > 0) && target.isMonster())
+ {
+ getPlayer().stopSkillEffects(false, 310);
+ return;
+ }
// cancel the recent fake-death protection instantly if the player attacks or casts spells
getPlayer().setRecentFakeDeath(false);
}
It's working as i want, but... with the command:
getPlayer().stopSkillEffects(false, 310);
the skill is getting removed! what method i have to put for the skill to just don't work while player if flaged but doesn't getting removed?! can we fix that too?!
(if the "false" in stopSkillEffects means that the buff will not removed and if "true" will removed... i checked it and doesn't work.!)
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
Question
xXObanXx
Hello maxcheaters..!
so i have an idea about 2 fixes for my server but i need your usefull help to do it right..!
so the first code is about Olympiad... i was thinking how to avoid the prefrenzy, angelic icon and other things like that...!
so i was thinking... if i can put a code that when you are in Oly before start the match, the hp will cannot drop down...! i mean... as much as hp you receive (from buffs or armors, weapons etc.)
the HP cannot drop down! just to staying full! can we do that?!
the second code is something about the drain from mobs while in flag...!
i've tried this code on L2PcInstance.java:
It's working as i want, but...
with the command:
the skill is getting removed!
what method i have to put for the skill to just don't work while player if flaged but doesn't getting removed?! can we fix that too?!
(if the "false" in stopSkillEffects means that the buff will not removed and if "true" will removed... i checked it and doesn't work.!)
23 answers to this question
Recommended Posts