Jump to content

`NeverMore

Legendary Member
  • Posts

    4,038
  • Credits

  • Joined

  • Last visited

  • Days Won

    17
  • Feedback

    100%

Everything posted by `NeverMore

  1. ;) Yes it should work and for latest rev ;) If you have any prob , post it here to help you !
  2. για τον Κωστάκη τον γείτονα λες ε? είναι διακοπές .. άμα γυρίσει θα το καρφώσω εγώ
  3. Μας σάλιωσες ! Εγώ περιμένω να ακούσω πιο ακριβώς θα είναι το όφελος μου ! Δεν είναι πως δεν εμπιστεύομαι ! Απλώς ποιος ο λόγος να κάνω κάτι τέτοιο χωρίς όφελος ;)
  4. Εγώ τι ακριβώς όφελος θα έχω από όλο αυτό ? Δηλαδή ε'αν σου δώσω το pack μου και συνεργαστούμε
  5. Welcome to MaxCheaters Forum, First of all , read our forum rules, share things , learn things and Have fun !
  6. Σίγουρα κανένα preconf pack δεν είναι άξιο να κρατήσει σέρβερ ανοιχτώ για το λόγο ότι εάν χρειαστείς να κάνεις μια αλλαγή δεν θα μπορείς ! (Λέγοντας αλλαγή εννοούμε στο core του σέρβερ και όχι τα config ) Εάν θέλεις να κάνεις έναν σέρβερ για την πλάκα σου και μέσα από αυτό να μάθεις τότε σίγουρα θα ξεκινήσεις από pack και σιγά σιγά θα μάθεις να κάνεις και δικό σου ! Ότι πρόβλημα έχεις μπορείς να κάνεις τόπικ εδώ να σε βοηθάμε ..! Καλή τύχη
  7. Thanks for the guide ;) It will help a lot , newbies ^_^
  8. nice share m8 ! Thanks for sharing it ;) I will test it ....
  9. First of all , i dont use IL and i even not have an account on this forum ... ( l2j frozen ) Second, .Res command can be made this way . . . if you know something more edvance then tell me ;) (For Example if i ask some1 make me this command he will make it this way) [ i quess ] And about Gp share is completely different ... if you know java and read my code you will understand what i mean ! I am not a leeacher and everyone here know it ;) Thanks for reply !
  10. o l22expert έγραψε το κείμενο αυτο ? Κάπως μπερδεύτηκα λίγο .... αυτο στο έκανε έτσι ξαφνηκά ?
  11. yes ! I am 100% sure , that 17heroes weapons are shared here ! about l2 pride armor i don't know ... Search on client section !
  12. Np ! Report me any prob , to fix it ;) Done ! Thanks for good words !
  13. Aplo kai xrisimo ...an kai exei ksana ginei share kati tetio ..! Thanks
  14. Works 100 % because i use it ..! But ok , if any1 tested reply with results ;)
  15. Hello again ! I decided to re-share this code , ( i got many pm's requesting it ) So : I want to share here , a mod i used to use on my server ! It is a custom PvP Zone That have some nice features to enjoy PvP's ! This Zone have : 1)Auto Nobless every time you die 2)Auto Flag on Enter 3)When you die , you have the oportunity to write .res and automatically you will respawed into the PvP zone on random locations ! For Example , Player2 got killed from player1 Then he have 2 options ! 1st ) Is to press to village , and go to nearest town 2nd) is to write .res and re-spawned ( with auto noblesse ) into pvp zone in different location each time ! In order to use .res feature player will need some Gold knight ( You can change this ) Ok , credits are mine (*NeverMore*) How to apply ? 1) Create a new voicedcommandhandler with name Res.java and inside put this code : /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package handlers.voicedcommandhandlers; import com.l2jserver.gameserver.handler.IVoicedCommandHandler; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; /** * *NeverMore* * */ public class Res implements IVoicedCommandHandler { private static final String[] VOICED_COMMANDS = { "res" }; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("res")) { if (!activeChar.isAlikeDead()) { activeChar.sendMessage("You cannot be ressurected while alive."); return false; } if(activeChar.isInOlympiadMode()) { activeChar.sendMessage("You cannot use this feature during olympiad."); return false; } if(activeChar.isInJail()) { activeChar.sendMessage("You cannot use this command while you are in Jail."); return false; } if(activeChar.isInDuel()) { activeChar.sendMessage("You cannot use this feature during Duel."); return false; } if(activeChar.isFestivalParticipant()) { activeChar.sendMessage("You cannot use this feature during a Festival."); return false; } if(activeChar.inObserverMode()) { activeChar.sendMessage("You cannot use this feature during Observer Mode."); return false; } if(activeChar.getInventory().getItemByItemId(3483) == null) { activeChar.sendMessage("You need 500 or more Gold Knights to use the .res"); return false; } if(activeChar instanceof L2PcInstance && ((L2PcInstance)activeChar).getWorldRegion().containsZone(5555)) { activeChar.sendMessage("You have been ressurected!"); activeChar.getInventory().destroyItemByItemId("root", 3483, 500, activeChar, activeChar.getTarget()); activeChar.doRevive(); activeChar.broadcastUserInfo(); activeChar.sendMessage("Good Fight !"); } else { activeChar.sendMessage(".res can only be used in PvP Area"); } } return true; } public String[] getVoicedCommandList() { return VOICED_COMMANDS; } } 2)Now we need to import the vcm , so go to data/scripts/handlers/MasterHandler.java apply this code : @@ -250 +258 @@ import handlers.voicedcommandhandlers.Lang; +import handlers.voicedcommandhandlers.Res; import handlers.voicedcommandhandlers.Wedding; @@ -555 +570 @@ private static void loadVoicedHandlers() { +VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Res()); if (Config.L2JMOD_ALLOW_WEDDING) VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Wedding()); 3)Create a new zone type with name L2CustomPvP.java and inside put this code : (+++ java/com/l2jserver/gameserver/model/zone/type/L2CustomPvP.java) /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package com.l2jserver.gameserver.model.zone.type; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.zone.L2SpawnZone; import com.l2jserver.util.Rnd; /** * An Custom PvP Zone * * @author NeverMore */ public class L2CustomPvP extends L2SpawnZone { //Ramdom Locations configs private static int[] _x = {11551, 10999, 10401}; private static int[] _y = {-24264, -23576, -24030}; private static int[] _z = {-3644, -3651, -3660 }; public L2CustomPvP(int id) { super(5555); } @Override protected void onEnter(L2Character character) { character.setInsideZone(L2Character.ZONE_PVP, true); character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, true); if (character instanceof L2PcInstance) { ((L2PcInstance) character).sendMessage("You enter a PvP Area"); ((L2PcInstance) character).setPvpFlag(1); } } @Override protected void onExit(L2Character character) { character.setInsideZone(L2Character.ZONE_PVP, false); character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, false); if (character instanceof L2PcInstance) { ((L2PcInstance) character).stopNoblesseBlessing(null); ((L2PcInstance) character).setPvpFlag(0); ((L2PcInstance) character).sendMessage("You exit from a PvP Area"); } } static class BackToPvp implements Runnable { private L2Character _activeChar; BackToPvp(L2Character character) { _activeChar = character; } @Override public void run() { int r = Rnd.get(3); _activeChar.teleToLocation(_x[r] , _y[r], _z[r]); } } @Override public void onDieInside(L2Character character) { if (character instanceof L2PcInstance) { } } @Override public void onReviveInside(L2Character character) { ThreadPoolManager.getInstance().scheduleGeneral(new BackToPvp(character), 500); ((L2PcInstance) character).isNoblesseBlessed(); } } 4) Now we should change the Zone Type of the area ( I use Primeval Isle Warf ) go to : data/zones/peace_zones.xml and aply this code : @@ -834 +847 @@ - <zone name="primeval_peace1" type="PeaceZone" shape="NPoly" minZ="-4290" maxZ="-1290"> <!-- [20_17] --> - <node X="10408" Y="-27395" /> - <node X="12065" Y="-25334" /> - <node X="12223" Y="-23159" /> - <node X="10424" Y="-22340" /> - <node X="9566" Y="-23131" /> - <node X="9290" Y="-24261" /> - </zone> - <zone name=" primeval_peace2" type="PeaceZone" shape="NPoly" minZ="-4792" maxZ="208"> <!-- [20_17] --> - <node X="4850" Y="-4736" /> - <node X="7294" Y="-4712" /> - <node X="8529" Y="-820" /> - <node X="3615" Y="-737" /> - </zone> + <zone name="primeval_peace1" type="CustomPvP" shape="NPoly" minZ="-4290" maxZ="-1290"> <!-- [20_17] --> + <node X="10408" Y="-27395" /> + <node X="12065" Y="-25334" /> + <node X="12223" Y="-23159" /> + <node X="10424" Y="-22340" /> + <node X="9566" Y="-23131" /> + <node X="9290" Y="-24261" /> + </zone> + <zone name=" primeval_peace2" type="CustomPvP" shape="NPoly" minZ="-4792" maxZ="208"> <!-- [20_17] --> + <node X="4850" Y="-4736" /> + <node X="7294" Y="-4712" /> + <node X="8529" Y="-820" /> + <node X="3615" Y="-737" /> + </zone> Here is an example , on how to add the coordinates you should make it like this private static int[] _x = {1, 4, 7}; private static int[] _y = {2, 5, 8}; private static int[] _z = {7, 8, 9 }; UPDATE 1 I test it on H% and it is not working as it is So Here is the new coded with simple changes to work fine at H5 ! [3rd Step ONLY] /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package com.l2jserver.gameserver.model.zone.type; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.util.Rnd; /** * An Custom PvP Zone * * @author NeverMore */ public class L2CustomPvP extends L2RespawnZone { //Ramdom Locations configs private static int[] _x = {11551, 10999, 10401}; private static int[] _y = {-24264, -23576, -24030}; private static int[] _z = {-3644, -3651, -3660 }; public L2CustomPvP(int id) { super(5555); } @Override protected void onEnter(L2Character character) { character.setInsideZone(L2Character.ZONE_PVP, true); character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, true); if (character instanceof L2PcInstance) { ((L2PcInstance) character).sendMessage("You enter a PvP Area"); ((L2PcInstance) character).setPvpFlag(1); } } @Override protected void onExit(L2Character character) { character.setInsideZone(L2Character.ZONE_PVP, false); character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, false); if (character instanceof L2PcInstance) { ((L2PcInstance) character).stopNoblesseBlessing(null); ((L2PcInstance) character).setPvpFlag(0); ((L2PcInstance) character).sendMessage("You exit from a PvP Area"); } } static class BackToPvp implements Runnable { private L2Character _activeChar; BackToPvp(L2Character character) { _activeChar = character; } @Override public void run() { int r = Rnd.get(3); _activeChar.teleToLocation(_x[r] , _y[r], _z[r]); } } @Override public void onDieInside(L2Character character) { if (character instanceof L2PcInstance) { } } @Override public void onReviveInside(L2Character character) { ThreadPoolManager.getInstance().scheduleGeneral(new BackToPvp(character), 500); ((L2PcInstance) character).isNoblesseBlessed(); } } UPDATE 2 Here is a small fix if you want players to stay Flagged 10 seconds after they exit my Custom Pvp Zone Index: trunk/L2J_Server/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- trunk/L2J_Server/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 308) +++ trunk/L2J_Server/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 309) @@ -657,13 +657,17 @@ { updatePvPFlag(1); - _PvPRegTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new PvPFlag(), 1000, 1000); + if (_PvPRegTask == null) + _PvPRegTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new PvPFlag(), 10000, 10000); } public void stopPvpRegTask() { if (_PvPRegTask != null) + { _PvPRegTask.cancel(true); + _PvPRegTask = null; + } } public void stopPvPFlag() PS: Dont forget to Start Flag onExit !
  16. `NeverMore

    HAI

    TWUOI
  17. Όχι αυτή ρε βλάκα ! Η αληθινή ! που σε παράτησε στα σκαλοπάτια ενός μπουρδέλου μόλις σε γέννησε !
  18. εκεί όμως έχει πολλούς μαύρους ! Google Chrome φταίει Δεν την βλέπω εδώ , θες να πω στη δικιά σου να έρθει εκεί ??
  19. @@ Εσύ τι θα έλεγες ? αφού μαζί το γλεντάγατε εχθές
  20. Είμαι μισητός ε΄δω μέσα για αυτό και δέχομαι επιθέσεις από παντού ! Αλώστε το διασκεδάζω ! Όποτε θέλω να γελάσω μπαίνω Mxc !
  21. Ε τι ? Σαν την δικιά σου είναι ? που σε παράτησε για να πάει με Πακιστάνους στην Ουγκάντα ?
  22. Μην ανοίγεις πολύ το στόμα σου όταν γελάς θα σου μπει καμιά πούτσα !
  23. Όχι καμία σχέση ! Φλωράκη σαν εσένα είμαι ! ΟΥΣΤ ΡΕ
  24. Όσο για εσένα ακόμη πρέπει να σου αδειάζουν το κώλο από το κρέας (ζωντανό) που έφαγες εχθές !
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock