Jump to content

ExCaLiBuR®

Members
  • Posts

    3,654
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by ExCaLiBuR®

  1. ti enweis den sou kanei ? katevases to RPS gia freya kai pou se evgale provlima ? apla apply patch kantw twra ston kwdika pou sou edwse kane auto pou sou eipe o Cobra prospatha na to peraseis kai opou exeis errors apla postare edw
  2. se esteila se pm enan kwdika dokimasetw kai pes mou
  3. eixes ksana anoikse ena topic me to idio thema.. kai se eixa dwsei enan kwdika na to dwkimaseis ti egine den doulepse ? dokimase auto edw java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java public boolean addSubClass ( int classId , int classIndex ) { if ( getTotalSubClasses () == 3 | | classIndex == 0 ) return false ; @ - 8430 , 4 + 8432 , 8 @ if ( GetSubclasses (). containsKey ( classIndex )) return false ; + + startAbnormalEffect ( L2Character . ABNORMAL_EFFECT_HOLD_1 ); + setIsParalyzed ( true ); + sendMessage ( "You are paralized untill your subclass load." ); / / Note: Never change _classIndex in any method other than setActiveClass (). @ - 8492 , 4 + 8498 , 8 @ if ( Config . DEBUG ) _log . info ( getName () + "was Given" + getAllSkills (). length + "Their skills for new sub class." ); + + setIsParalyzed ( false ); + stopAbnormalEffect ( L2Character . ABNORMAL_EFFECT_HOLD_1 ); + sendMessage ( "You are unparalized." ); return true ; source exeis ? episis sto frozen den eimai kai sigouros alla prepei na exei config gia auto pou psaxneis
  4. pes mas ti project exeis kai ti client wste na se voethisoume. px sto frozen exei configs gia auto pou psaxneis
  5. http://www.maxcheaters.com/topic/141971-rank-pvp-system-374-il-h5l2jserver-frozen-acis/?hl=system exei kai PvP Pk Color system auto edw kai einai kai gia freya opote den tha xreiasteis na to kaneis kai adapt twra mono gia pvp pk color system dokimase auto edw Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 82) +++ java/net/sf/l2j/Config.java (working copy) @@ -34,6 +34,7 @@ import java.util.logging.Logger; import javolution.util.FastList; +import javolution.util.FastMap; import net.sf.l2j.util.StringUtil; /** @@ -60,6 +61,7 @@ public static final String SERVER_FILE = "./config/server.properties"; public static final String SIEGE_FILE = "./config/siege.properties"; public static final String TELNET_FILE = "./config/telnet.properties"; + private static final String PVP_COLOR_SYSTEM_CONFIG_FILE = "./config/pvpcolorsystem.properties"; /**-------------------------------------------------- // Variable Definitions @@ -642,6 +644,11 @@ public static int CLIENT_PACKET_QUEUE_MAX_UNKNOWN_PER_MIN = 5; // default 5 //-------------------------------------------------- + + public static String PVPS_COLORS; + public static FastMap<Integer, Integer> PVPS_COLORS_LIST; + public static String PKS_COLORS; + public static FastMap<Integer, Integer> PKS_COLORS_LIST; /** * This class initializes all global variables for configuration.<br> @@ -653,6 +660,60 @@ { _log.info("Loading gameserver configuration files."); + try + { + Properties pvpcolor = new Properties(); + InputStream is = new FileInputStream(new File(PVP_COLOR_SYSTEM_CONFIG_FILE)); + pvpcolor.load(is); + is.close(); + + PVPS_COLORS = pvpcolor.getProperty("PvpsColors", ""); + PVPS_COLORS_LIST = new FastMap<Integer, Integer>(); + + String[] splitted_pvps_colors = PVPS_COLORS.split(";"); + + for(String iii:splitted_pvps_colors) + { + + String[] pvps_colors = iii.split(","); + + if(pvps_colors.length != 2) + { + System.out.println("Invalid properties."); + } + else + { + PVPS_COLORS_LIST.put(Integer.parseInt(pvps_colors[0]), Integer.decode("0x" + pvps_colors[1])); + } + + } + + PKS_COLORS = pvpcolor.getProperty("PksColors", ""); + PKS_COLORS_LIST = new FastMap<Integer, Integer>(); + + String[] splitted_pks_colors = PKS_COLORS.split(";"); + + for(String iii:splitted_pks_colors) + { + + String[] pks_colors = iii.split(","); + + if(pks_colors.length != 2) + { + System.out.println("Invalid properties."); + } + else + { + PKS_COLORS_LIST.put(Integer.parseInt(pks_colors[0]), Integer.decode("0x" + pks_colors[1])); + } + + } + } + catch (Exception e) + { + e.printStackTrace(); + throw new Error("Server failed to load "+PVP_COLOR_SYSTEM_CONFIG_FILE+" file."); + } // Clans settings try { Index: java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminEditChar.java =================================================================== --- java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminEditChar.java (revision 82) +++ java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminEditChar.java (working copy) @@ -33,6 +33,7 @@ import net.sf.l2j.L2DatabaseFactory; import net.sf.l2j.gameserver.GmListTable; import net.sf.l2j.gameserver.ai.CtrlIntention; +import net.sf.l2j.gameserver.anarchy.PvPColorSystem; import net.sf.l2j.gameserver.datatables.ClanTable; import net.sf.l2j.gameserver.handler.IAdminCommandHandler; import net.sf.l2j.gameserver.model.L2Object; @@ -638,7 +639,10 @@ player.setCurrentCp(cpval); player.setPvpFlag(pvpflagval); player.setPvpKills(pvpkillsval); + PvPColorSystem pvpcolor = new PvPColorSystem(); + pvpcolor.updateNameColor(player); player.setPkKills(pkkillsval); + pvpcolor.updateTitleColor(player); // Save the changed parameters to the database. player.store(); Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 82) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -50,6 +50,7 @@ import net.sf.l2j.gameserver.ai.CtrlIntention; import net.sf.l2j.gameserver.ai.L2CharacterAI; import net.sf.l2j.gameserver.ai.L2PlayerAI; +import net.sf.l2j.gameserver.anarchy.PvPColorSystem; import net.sf.l2j.gameserver.cache.HtmCache; import net.sf.l2j.gameserver.communitybbs.BB.Forum; import net.sf.l2j.gameserver.communitybbs.Manager.ForumsBBSManager; @@ -4640,6 +4641,10 @@ { // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); + + PvPColorSystem pvpcolor = new PvPColorSystem(); + pvpcolor.updateNameColor(this); + pvpcolor.updateTitleColor(this); // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); Index: java/net/sf/l2j/gameserver/anarchy/PvPColorSystem.java =================================================================== --- java/net/sf/l2j/gameserver/anarchy/PvPColorSystem.java (revision 0) +++ java/net/sf/l2j/gameserver/anarchy/PvPColorSystem.java (revision 0) @@ -0,0 +1,53 @@ +/* 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 2, 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, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * http://www.gnu.org/copyleft/gpl.html + */ +package net.sf.l2j.gameserver.anarchy; + +import java.util.Set; + +import net.sf.l2j.Config; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; + +/** + * + * @author Anarchy + */ +public class PvPColorSystem +{ + public void updateNameColor(L2PcInstance player) + { + Set<Integer> pvpscolors = Config.PVPS_COLORS_LIST.keySet(); + for (Integer i : pvpscolors) + { + if (player.getPvpKills() >= i) + { + player.getAppearance().setNameColor(Config.PVPS_COLORS_LIST.get(i)); + } + } + } + public void updateTitleColor(L2PcInstance player) + { + Set<Integer> pkscolors = Config.PKS_COLORS_LIST.keySet(); + for (Integer i : pkscolors) + { + if (player.getPkKills() >= i) + { + player.getAppearance().setTitleColor(Config.PKS_COLORS_LIST.get(i)); + } + } + } +} Index: java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 82) +++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (working copy) @@ -27,6 +27,7 @@ import net.sf.l2j.gameserver.Olympiad; import net.sf.l2j.gameserver.SevenSigns; import net.sf.l2j.gameserver.TaskPriority; +import net.sf.l2j.gameserver.anarchy.PvPColorSystem; import net.sf.l2j.gameserver.cache.HtmCache; import net.sf.l2j.gameserver.datatables.AdminCommandAccessRights; import net.sf.l2j.gameserver.datatables.MapRegionTable; @@ -85,6 +86,10 @@ { L2PcInstance activeChar = getClient().getActiveChar(); + PvPColorSystem pvpcolor = new PvPColorSystem(); + pvpcolor.updateNameColor(activeChar); + pvpcolor.updateTitleColor(activeChar); + if (activeChar == null) { _log.warning("EnterWorld failed! activeChar is null..."); Index: config/pvpcolorsystem.properties =================================================================== --- config/pvpcolorsystem.properties (revision 0) +++ config/pvpcolorsystem.properties (revision 0) @@ -0,0 +1,9 @@ +# Advanced pvp/pk color system, by Anarchy. + +# PvP Name color System. +# It works like: pvps,color;pvps,color, eg. 100,00FF00;200,FF0000;300,0000FF;. +PvpsColors = 100,00FF00; + +# Pk Title color System. +# It works like: pks,color;pks,color, eg. 100,00FF00;200,FF0000;300,0000FF;. +PksColors = 100,00FF00; \ No newline at end of file einai o kwdikas tou anarchy
  6. to balance den einai kati toso eukola kai eidika sto interlude. gia ta skills ta poio polla tha ta kaneis fix otan o server sou gunei online kai oi players tha se kanoun balance mporeis monos sou na testareis ta skills apo ta class px to Frenzy Zealot kai alla tetoia skills na deis posi wra kratane. gia na vales to swsto time. epeisis mporeis na deis ta lethal poso % einai. to lethal tou bishop ean thumame kala legete Hold Undead. exei anevasmeno Rate kai ta mobs feuvgoun 1 hit. prepei na to koitakseis auto sto palio revision pou frozen egw eixa provlima me auto to skill. twra gia ta class apla vgale to bow na min mporoun na to fwrane oi titan,paladin kai apo tous daggers archers kantous na min fwrane heavy.. ta upoloipa tha ta vreis stin poroia. mn perimeneis na vreis ales apantiseis panw se auto to thema
  7. nai mpes skype alla den sou uposxomai tpt
  8. pare to kanoniko walker root kai ksanaperasetw
  9. sto frozen den einai se Sql ean thumame kala einai se .xml arxeio apla des edw gameserver\data\xml ean uparxei kapoio arxeio me onoma walker_routes i des stin database ean uparxei kapoio table me auto to onoma kai ean lupei apla perase to arxiko
  10. 1. Select your prefered payment method. Paypal $1,000 Minimum 1k dollard for cash out ? http://www.youtube.com/watch?v=XhfKSqdJLXg
  11. Ksekinise to baby boom sto game. mpeite oloi mesa kai tha sas deinoume paroxes gia na pate level 10 episis ean ferete mazoi sas filois kai pane kai autoi level 10 tha parete 5 GOLD apo to kratos + items q1 kai +q2 . mpeite sto game apo link pou sas deinw poio epanw kai oti voitheia xreiasteite kanteme ena Pm sto game
  12. entaksei kleidwstetw to topic
  13. mipws enweis THC ? tespa euxaristw paidia kantetw lock
  14. diladi ean kaneis eksetaseis aimatos den fenete etsi ?mono sta oura.. kai sta oura ean kanei eksetaseis sto xarti pou tha dwsoun pws akrivos tha to leei diladi ?
  15. kalispera.. aposo oloi ligo polu kserete oti ean kapoios kanei mauro fenete sto aimatou gia peripou 4-5 isws kai 6 evdomades. auto pou tha ithela na mathw einai ean fenete stis aples eksetaseis aimatos i ean thelei kapoies ales eksetaseis.
  16. source exei ?? mporeis na dwkimaseis kai auton edw ton kwdika java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java public boolean addSubClass ( int classId , int classIndex ) { if ( getTotalSubClasses () == 3 | | classIndex == 0 ) return false ; @ - 8430 , 4 + 8432 , 8 @ if ( GetSubclasses (). containsKey ( classIndex )) return false ; + + startAbnormalEffect ( L2Character . ABNORMAL_EFFECT_HOLD_1 ); + setIsParalyzed ( true ); + sendMessage ( "You are paralized untill your subclass load." ); / / Note: Never change _classIndex in any method other than setActiveClass (). @ - 8492 , 4 + 8498 , 8 @ if ( Config . DEBUG ) _log . info ( getName () + "was Given" + getAllSkills (). length + "Their skills for new sub class." ); + + setIsParalyzed ( false ); + stopAbnormalEffect ( L2Character . ABNORMAL_EFFECT_HOLD_1 ); + sendMessage ( "You are unparalized." ); return true ;
  17. o frozen exei sta configs pou leei gia CheckSkillsInEnter kantw true.. osoi exoun skills pou den einai gia ta class tou char tha ta kanei delete. mexri na vreis ton kwdika pou psaxneis einai mia lusi
  18. lol tha tou pouliseis ena aplo npc ? eleos twra gia auto pou zeitas den exei gunei share edw sto mxc kai eina java code... i zeita apo kapoion pou kserei kala apo java na sto ftiaksei. an kai den nomizw tha prepei na plirwseis
  19. kaneme add sto skype tasos4444 ExCaLiBuR*
  20. poia script re file ? multisell einai steile se Pm to skype sou na se ftiaksw to shop pou thes meso tv
  21. oxi den einai swsta....... <!-- Tattoo Magic LvL3 --> <ingredient id="6393" count="150" /> <<-- auto pou tou zeitas na se dwsei <ingredient id="9995" count="1" /> <production id="6393" count="150" /> <<-- tou ta duneis ksana pisw <production id="9994" count="1" /> </item> pes mou ti akrivos thes na kanes gia na sto ftiaksw egw...
  22. auto gia ta tatto to multisell.... apla addare ta ID pou thes <?xml version='1.0' encoding='utf-8'?> <list xmlns="http://l2jhellas.eu" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="../templates/multisell.xsd" maintainEnchantment="true"> <item id="1"> <ingredient id="To ID Apo To Tattoo Lv 1" count="1" /> <ingredient id="To Id Apo To Alo Item Pou Thes Na Pairnei" count="Edw vale posa na zeitaei" /> <production id="To Id Apo To Tatto Lv 2" count="1" /> </item>
  23. den eimai kai sigouros alla anoikse to gameserver.bat kai dokimasemase na alakseis ta Xmx + Xms se kati megalutero px apo 512 se 1024
  24. gia to prwto dustixos den kserw kai den exei gunei kati tetoio share sto mxc.. twra gia ta tattoo ti akrivos enweis ? kanta anazitisi stin database me to onoma kai des ta ID kai peraseta sto shop
×
×
  • 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