Jump to content
  • 0

Error While Adding Code


mikemaster

Question

i use acis interlude pack revision 310 and while i am trying to add this code:

// 'Both way war' -> 'PvP Kill'
- increasePvpKills(targetPlayer);
+ if (addPvp((L2Playable)target))
+ {
+ increasePvpKills(targetPlayer);
+ }
return;
}

@@ -4419,13 +4594,65 @@
if (targetPlayer.getKarma() > 0)
{
if (Config.KARMA_AWARD_PK_KILL)
- increasePvpKills(targetPlayer);
+ {
+ if (addPvp((L2Playable)target))
+ {
+ increasePvpKills(targetPlayer);
+ }
+ }
}
else if (targetPlayer.getPvpFlag() == 0)
increasePkKillsAndKarma(targetPlayer.getLevel());
}
}

+ private boolean addPvp(L2Playable vp)
+ {
+ if (!Config.ANTI_FARM_ENALBED)
+ {
+ return true;
+ }
+ 
+ if (Config.ANTI_FARM_SUMMON && vp instanceof L2Summon)
+ {
+ return false;
+ }
+ 
+ L2PcInstance v = (L2PcInstance)vp;
+ 
+ if (Config.ANTI_FARM_PARTY && v.getParty() == getParty())
+ {
+ return false;
+ }
+ 
+ if (Config.ANTI_FARM_CLAN_ALLY && (v.getClan() == getClan() || v.getAllyId() == getAllyId()))
+ {
+ return false;
+ }
+ 
+ if (Config.ANTI_FARM_IP && v.getClient().getConnection().getInetAddress().getHostAddress() == getClient().getConnection().getInetAddress().getHostAddress())
+ {
+ return false;
+ }
+ 
+ if (Config.ANTI_FARM_LVL_DIFF && (v.getLevel()-getLevel() >= Config.ANTI_FARM_MAX_LVL_DIFF || getLevel()-v.getLevel() >= Config.ANTI_FARM_MAX_LVL_DIFF))
+ {
+ return false;
+ }
+ 
+ if (Config.ANTI_FARM_PATK_DIFF && (v.getStat().getPAtk(null)-getStat().getPAtk(null) >= Config.ANTI_FARM_MAX_PATK_DIFF || getStat().getPAtk(null)-v.getStat().getPAtk(null) >= Config.ANTI_FARM_MAX_PATK_DIFF))
+ {
+ return false;
+ }
+ 
+ if (Config.ANTI_FARM_PDEF_DIFF && (v.getStat().getPDef(null)-getStat().getPDef(null) >= Config.ANTI_FARM_MAX_PDEF_DIFF || getStat().getPDef(null)-v.getStat().getPDef(null) >= Config.ANTI_FARM_MAX_PDEF_DIFF))
+ {
+ return false;
+ }
+ 
+ return true;
+ } 

 i get errors  in these sections
public boolean addPvp(L2Playable vp)  -----> illegal modifier for the variable addPvp; only final is permitted
and the method addPvp(L2Playable vp) is undefined for the type L2PcInstance

Edited by mikemaster
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


  • Posts

    • Add Support ShortCutPanel https://jumpshare.com/s/VTm9x1wvHmPokrqomNun
    • Καλησπερα μαγκες θα ηθελα εναν Dev ( που να γνωριζει καλα την δουλεια ) να ξεκινησουμε εξολοκληρου ενα Interlude PVP σερβερ που εχω στο μυαλο μου! Παρακαλω πολυ στειλτε μου προσωπικο στο προφιλ μου εδω για περαιτερω πληροφοριες! Ευχαριστω!
    • Open github. Find sdark94 account. Enter sdark94/trinity repository. Search for the DB backup. It is still there. I would've posted it here, if there was a HIDE_FOR_USER(S) feature, but there isn't one. You can DM me on Discord and I'll slip you a STRUCTURE-only DB export.   Yall lazy to even search the web bro. 😄 See the old videos from 3 years ago -> YOUTUBE Regarding java version, it is also visible in the source:
    • Welcome to my store : https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 60.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore11 Whatsapp ; +212614849119 Welcome to my store : https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 60.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore11 Whatsapp ; +212614849119 Welcome to my store : https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 60.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore11 Whatsapp ; +212614849119
    • hello all sorry about this question . but what game play is this ? High Five? Interlude? Clasic? Esennce and what kind of Java using this server 8jdk? or
  • Topics

×
×
  • Create New...