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.!)
L2jMobius has a variety of servers, that all are actively developed.
https://gitlab.com/MobiusDevelopment/L2J_Mobius
Better version if you donate 200 euros to the project? Yes.
https://l2jmobius.org
A tutorial is provided.
https://l2jmobius.org/forum/index.php?topic=3231.0
Please do not come if you cannot compile and test on your own.
MidnightSell team WTB/WTS GOLD TWW EU/US all servers
Cataclysm all servers
Payment Visa/Master/Btc/Eth/Trc-20/Erc-20 (all payments within 10 min)
For all question pls dm
Discord https://discord.gg/h8AN57qJjK
Or Telegram @MidnightSell
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