-
Posts
363 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by BlackDevilDev
-
is need for l2jserver ?(freya)
-
Error with compiled
BlackDevilDev replied to BlackDevilDev's question in Request Server Development Help [Greek]
ENTAXEI FILE MOU TO EFTIAXA EUXARIST POLI:) -
Γεια σας παιδια σκεφτηκα ενα παιχνιδι ,και ειπα να το μοιραστω μαζι σας ,δεν νομιζω να υπαρχει μεσα :P Πως παιζεται? Θα ξεκινησουμε απο το πρωτο γραμμα της αλφαβητου και θα πηγαινουμε με την σειρα! Θα πρεπει να σκεφτειται ενα ονομα,ζωο κ.τ.λ να βρειτε λεξεις οσες μπωρειται .. Αλλα για να μην γινεται μπερδεμα επειδει θα καθηστερειται θα γραφεται το γραμμα που ειναι στην σειρα σας και θα το κανεται post και μετα θα το κανεται Confing . Κανονες? Νο GREEKLISH( Ο σκοπος του topic ειναι να φτιαξουμε την ορθογραφια μας και να θυμωμαστε την ελληνικη γλωσσα που ειναι πολυ σπουδαια! και εγω κανω ορθογραφικα μην νομιζεται!) Και στην διαρκεια του παιχνιδιου θα παρατειρησεται μια δυσκολια. Τελως Παντων ασ ξεκινησει το παιχνιδι Α Αναστασια,Αννα,Αντωνης,Ανεστης Ανακοντα, Αλασκα, (και μετα αν εχεται καποιο σχολιο το κανεται ετσι οπως το παρακατω,το σχολιο να γινεται κατω απο της λεξεις που γραψαται!) Σχολιο. πχ.Ασε ρε φιλε!
-
Γεια σας παιδια σκεφτηκα ενα παιχνιδι ,και ειπα να το μοιραστω μαζι σας ,δεν νομιζω να υπαρχει μεσα :P Πως παιζεται? Θα ξεκινησουμε απο το πρωτο γραμμα της αλφαβητου και θα πηγαινουμε με την σειρα! Θα πρεπει να σκεφτειται ενα ονομα,ζωο κ.τ.λ να βρειτε λεξεις οσες μπωρειται .. Αλλα για να μην γινεται μπερδεμα επειδει θα καθηστερειται θα γραφεται το γραμμα που ειναι στην σειρα σας και θα το κανεται post και μετα θα το κανεται Confing . Κανονες? Νο GREEKLISH( Ο σκοπος του topic ειναι να φτιαξουμε την ορθογραφια μας και να θυμωμαστε την ελληνικη γλωσσα που ειναι πολυ σπουδαια! και εγω κανω ορθογραφικα μην νομιζεται!) Και στην διαρκεια του παιχνιδιου θα παρατειρησεται μια δυσκολια. Τελως Παντων ασ ξεκινησει το παιχνιδι Α Αναστασια,Αννα,Αντωνης,Ανεστης Ανακοντα, Αλασκα, (και μετα αν εχεται καποιο σχολιο το κανεται ετσι οπως το παρακατω,το σχολιο να γινεται κατω απο της λεξεις που γραψαται!) Σχολιο. πχ.Ασε ρε φιλε!
-
help sto anigma eclipse dite foto
BlackDevilDev replied to l22expert's question in Request Server Development Help [Greek]
file exeis kanei instal to JDK(Java) ? :P -
Deite ligo auto to topic to ekana se lathos section an mporeite metafereto edw... http://maxcheaters.com/forum/index.php?topic=209993.new#new
-
Error with compiled
BlackDevilDev replied to BlackDevilDev's question in Request Server Development Help [Greek]
ox sorry paidia lathos section!!! metafora plz! -
Description Resource Path Location Type 1) Project 'L2J_DataPack' is missing required Java project: 'L2J_Server' L2J_DataPack Build path Build Path 2) Project 'L2J_DataPack' is missing required library: '\L2J_Server\lib\javolution-5.5.1.jar' L2J_DataPack Build path Build Path 3) Project 'L2J_DataPack' is missing required library: '\L2J_Server\lib\mmocore.jar' L2J_DataPack Build path Build Path 4) Project 'L2J_DataPack' is missing required library: '\L2J_Server\lib\netcon.jar' L2J_DataPack Build path Build Path 5)Project 'L2J_DataPack' is missing required library: '\L2J_Server\lib\trove-2.1.0.jar' L2J_DataPack Build path Build Path 5)Project 'L2J_DataPack' is missing required library: 'lib/jogl.jar' L2J_DataPack Build path Build Path 6)Project 'L2J_DataPack' is missing required library: 'lib/worldwind.jar' L2J_DataPack Build path Build Path 7)The project cannot be built until build path errors are resolved L2J_DataPack Unknown Java Problem Thank you
-
Freya code se High Five???/
BlackDevilDev replied to BlackDevilDev's question in Request Server Development Help [Greek]
ok thnx paidia lock topic plz :) -
Acis Project
BlackDevilDev replied to BlackDevilDev's question in Request Server Development Help [Greek]
thnx you re paidia ...:P -
Ti rate proteinetai gia x100 server
-
acis.i-live.eu re paidia akouw gia auto to project (mmcore) ti akribws exei gia kati asfaleia kai kati tetoia exw akousei....mporei kapoios na mou xekatharisei ti akribws einai?
-
Help buff time programm
BlackDevilDev replied to G1annhs08's question in Request Server Development Help [Greek]
kai mia symbouli min baleis etoima id psaxe bres ta id apo ta buffs pou akribws theleis dld na ta kaneis ena ena ... i mporeis na breis apo edw ta etoima id http://maxcheaters.com/forum/index.php?topic=198292.0 kai blepe poia thes na einai ektos (px.merikoi to Chant of Victory to bazoun pio ligo) -
Help buff time programm
BlackDevilDev replied to G1annhs08's question in Request Server Development Help [Greek]
file den kserw akribws gia auto alla an einai Freya i High Five ... ta arxeia xml an exoyn annaneothei den ginetai na xrisimopoiiseis to programa alla parto na to dokimaseis einai to MusicMaker http://maxcheaters.com/forum/index.php?topic=105731.0 nai omws emena pou exw Pack L2jserver Freya den mporw na xrisimopoiiso to programma gia auton ton logo ton rotisa -
Help buff time programm
BlackDevilDev replied to G1annhs08's question in Request Server Development Help [Greek]
ti pack exeis file mou? -
[HELP] Skills 81 lvl
BlackDevilDev replied to djorestis's question in Request Server Development Help [Greek]
me forgeten books pernoun auta ta skill kai kalitera tha itan na ta afiseis etsi kai tha mporoyses na ta ebazes na ta pernoun me vote -
oloi nomizw file to gnorizoun den yparxei atomo edw mesa pou na min to xerei
-
high rate giati interlude einai kai gamo pvp file !
-
{SHARE}EPIC SHOP FOR INTERLUDE
BlackDevilDev replied to Dev_PhoeniX's topic in Server Shares & Files [L2J]
eyxaristw file moy poli kalo share ! -
Den briskw mia diadromi sto compiled...
BlackDevilDev replied to BlackDevilDev's question in Request Server Development Help [Greek]
euxaristw file mou lock topic pplz (lithike i aporia mou) -
Den briskw mia diadromi sto compiled...
BlackDevilDev posted a question in Request Server Development Help [Greek]
java/net/sf/l2j/Config.java <----- autin tin diadromi den briskw sto compiled mou ....kai einai Freya L2Jserver oriste kai to code pou thelw na balw Index: java/config/l2jmods.properties =================================================================== --- java/config/l2jmods.properties (revision 2814) +++ java/config/l2jmods.properties (working copy) @@ -170,4 +170,25 @@ # - mana potion (item id 728), using skill id 2005 # Please, notice this is just core support, server administrator is requested to # edit skill 2005 on DataPack to get them working -EnableManaPotionSupport = False \ No newline at end of file +EnableManaPotionSupport = False + +#--------------------------------------------------------------- +# PK protection +#--------------------------------------------------------------- +# Disables attacking char if the attacker's lvl minus victim's lvl is over +# specified difference and the target is not flagged. For example, if you want +# to disable PK'ing chars that are more than 20 lvls below attacker's lvl, set +# the value to 20. Setting the value to 0 disables the feature. +DisableAttackIfLvlDifferenceOver=0 +# If player has more than specified number of PKs in the monitored period, +# he/she is automatically punished. If set to zero, this feature is disabled. +PunishPKPlayerIfPKsOver=0 +# For what period (in seconds) the PKs should be monitored +PKMonitorPeriod=3600 +# Punisment type: +# jail - char will be jailed +PKPunishmentType=jail +# Punishment length (in seconds) +# If punishment type is jail then the punishment period should be divisable by +# 60 as jail punishment is counted in minutes +PKPunishmentPeriod=3600 \ No newline at end of file Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 2814) +++ java/net/sf/l2j/Config.java (working copy) @@ -561,6 +561,11 @@ public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE; public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT; public static boolean L2JMOD_ENABLE_MANA_POTIONS_SUPPORT; + public static int L2JMOD_DISABLE_ATTACK_IF_LVL_DIFFERENCE_OVER; + public static int L2JMOD_PUNISH_PK_PLAYER_IF_PKS_OVER; + public static long L2JMOD_PK_MONITOR_PERIOD; + public static String L2JMOD_PK_PUNISHMENT_TYPE; + public static long L2JMOD_PK_PUNISHMENT_PERIOD; /** ************************************************** **/ /** L2JMods Settings -End **/ @@ -1768,6 +1773,12 @@ L2JMOD_ENABLE_WAREHOUSESORTING_CLAN = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingClan", "False")); L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingPrivate", "False")); L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingFreight", "False")); + + L2JMOD_DISABLE_ATTACK_IF_LVL_DIFFERENCE_OVER = Integer.parseInt(L2JModSettings.getProperty("DisableAttackIfLvlDifferenceOver", "0")); + L2JMOD_PUNISH_PK_PLAYER_IF_PKS_OVER = Integer.parseInt(L2JModSettings.getProperty("PunishPKPlayerIfPKsOver", "0")); + L2JMOD_PK_MONITOR_PERIOD = Long.parseLong(L2JModSettings.getProperty("PKMonitorPeriod", "3600")); + L2JMOD_PK_PUNISHMENT_TYPE = L2JModSettings.getProperty("PKPunishmentType", "jail"); + L2JMOD_PK_PUNISHMENT_PERIOD = Long.parseLong(L2JModSettings.getProperty("PKPunishmentPeriod", "3600")); if (TVT_EVENT_PARTICIPATION_NPC_ID == 0) { @@ -2310,6 +2321,13 @@ // L2JMod Mana potion else if (pName.equalsIgnoreCase("EnableManaPotionSupport")) L2JMOD_ENABLE_MANA_POTIONS_SUPPORT = Boolean.parseBoolean(pValue); + // L2JMOD Disable PK'ing Low Lvls + else if (pName.equalsIgnoreCase("DisableAttackIfLvlDifferenceOver")) L2JMOD_DISABLE_ATTACK_IF_LVL_DIFFERENCE_OVER = Integer.parseInt(pValue); + else if (pName.equalsIgnoreCase("PunishPKPlayerIfPKsOver")) L2JMOD_PUNISH_PK_PLAYER_IF_PKS_OVER = Integer.parseInt(pValue); + else if (pName.equalsIgnoreCase("PKMonitorPeriod")) L2JMOD_PK_MONITOR_PERIOD = Long.parseLong(pValue); + else if (pName.equalsIgnoreCase("PKPunishmentType")) L2JMOD_PK_PUNISHMENT_TYPE = pValue; + else if (pName.equalsIgnoreCase("PKPunishmentPeriod")) L2JMOD_PK_PUNISHMENT_PERIOD = Long.parseLong(pValue); + // PvP settings else if (pName.equalsIgnoreCase("MinKarma")) KARMA_MIN_KARMA = Integer.parseInt(pValue); else if (pName.equalsIgnoreCase("MaxKarma")) KARMA_MAX_KARMA = Integer.parseInt(pValue); Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 2814) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -307,10 +307,16 @@ @Override public void doAttack(L2Character target) { + if (target instanceof L2PcInstance && + isPKProtected((L2PcInstance) target)) { + sendMessage("You cannot attack player with too low level."); + sendPacket(ActionFailed.STATIC_PACKET); + } else { super.doAttack(target); // cancel the recent fake-death protection instantly if the player attacks or casts spells getPlayer().setRecentFakeDeath(false); + } } @Override @@ -760,6 +766,9 @@ private boolean _marryrequest = false; private boolean _marryaccepted = false; + /** L2JMOD PK protection **/ + private List<Long> _pKsCounter = new FastList<Long>(); + /** Skill casting information (used to queue when several skills are cast in a short time) **/ public class SkillDat { @@ -5334,6 +5343,32 @@ // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); + + /** Mass PK protection stuff **/ + if (Config.L2JMOD_PUNISH_PK_PLAYER_IF_PKS_OVER > 0) { + // Remove expired PKs + for (final Long pKTime : _pKsCounter) { + if (System.currentTimeMillis() - pKTime.longValue() > + Config.L2JMOD_PK_MONITOR_PERIOD * 1000) { + _pKsCounter.remove(pKTime); + } else { + // We reached timestamps that are still valid + break; + } + } + + // Add new timestamp + _pKsCounter.add(Long.valueOf(System.currentTimeMillis())); + + // If PK count is greater than limit then punish the char + if (_pKsCounter.size() > Config.L2JMOD_PUNISH_PK_PLAYER_IF_PKS_OVER) { + if ("jail".equals(Config.L2JMOD_PK_PUNISHMENT_TYPE)) { + setPunishLevel(PunishLevel.JAIL, + (int) (Config.L2JMOD_PK_PUNISHMENT_PERIOD / 60)); + sendMessage("Jailed for excessive PK."); + } + } + } } public int calculateKarmaLost(long exp) @@ -8042,6 +8077,14 @@ break; } + if (target != this && target instanceof L2PcInstance && + skill.isOffensive() && isPKProtected((L2PcInstance) target)) { + setIsCastingNow(false); + sendMessage("You cannot attack player with too low level."); + sendPacket(ActionFailed.STATIC_PACKET); + return; + } + // Notify the AI with AI_INTENTION_CAST and target getAI().setIntention(CtrlIntention.AI_INTENTION_CAST, skill, target); } @@ -8578,6 +8621,43 @@ return true; } + /** + * Checks whether <code>target</code> is PK protected when attacking + * by <code>this</code>. <code>target</code> is PK protected if it is + * not flagged, has no karma and difference between players lvl and + * target's lvl is above {@link + * net.sf.l2j.Config#L2JMOD_DISABLE_ATTACK_IF_LVL_DIFFERENCE_OVER}. + * <code>target</code> is not protected if in mutual war with attacker's + * clan or if in siege zone or pvp zone. + * + * @param target attack target + * + * @return true if target is PK protected, otherwise false + */ + public boolean isPKProtected(final L2PcInstance target) { + if (Config.L2JMOD_DISABLE_ATTACK_IF_LVL_DIFFERENCE_OVER > 0 && + target instanceof L2PcInstance) { + final L2PcInstance targetPlayer = (L2PcInstance) target; + + if (targetPlayer.isInsideZone(L2Character.ZONE_SIEGE) || + targetPlayer.isInsideZone(L2Character.ZONE_PVP) || + (getClan() != null && targetPlayer.getClan() != null && + targetPlayer.getClan().isAtWarWith(getClanId()))) { + return false; + } + + if (targetPlayer.getPvpFlag() == 0 && + targetPlayer.getKarma() == 0 && + targetPlayer.getLevel() + + Config.L2JMOD_DISABLE_ATTACK_IF_LVL_DIFFERENCE_OVER < + getLevel()) { + return true; + } + } + + return false; + } + /** * Return True if the L2PcInstance is a Mage.<BR><BR> */ -
to mafia einai oraios server otan thes na xotheis se pvp alla to kako einai oti ta palia member rixnoyn ta nea member kai tha itan kalo na isoropoiwsoi kapws auto :P Filika panta i gnomi mou
