-
Posts
273 -
Credits
0 -
Joined
-
Last visited
-
Days Won
2 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Cronia
-
pouprepi na rto vallw omws ayto?? Pes oti to item ine ayto : <item id='1' name="short_sword"> <for> <set val='8' order='0x08' stat='pAtk'/> <set val='6' order='0x08' stat='mAtk'/> <set val='8' order='0x08' stat='rCrit'/> <add val='0' order='0x10' stat='accCombat'/> <set val='379' order='0x08' stat='pAtkSpd'/> <enchant val='0' order='0x0C' stat='pAtk'/> <enchant val='0' order='0x0C' stat='mAtk'/> </for> </item>
-
Kalispera paidia opws kai leei kai to titl tha ithela na m dwsete opoios 3eri - theli dld ea tutorial pws na kanw dimiourgisw ena item limited px.me to p to pernis na ginete delete se mia wra se 2 i oses exw epile3i egw....Eyxaristo poly ek ton proteron
-
I check...
-
Ena mikro help re paidia..Exw katevasi ena website gia l2 interlude (pou periexei display sources index.php kai sxetika) Iparxi kapoio programa(iparxi apla thew na m protinete) pou mporw na to epexergazome to site sto pc mou prin to anevasw na 3erw ti tha anevasw...
-
up
-
Rixte mia matia re paidia edw prospatw na kanw compile ayto edw Me Maven ola kala mexri na kanw build me maven mou petaei ayto (Ola ta vimata opws mou ta grafi apla den katalavenw giati m petaei auto) Oi odigies ine aytes : 1) Install Java JDK 1.7 - download from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html - install downloaded file: - ATTENTION before this step: - REMOVE any installed JRE on your machine - DO NOT INSTALL JRE during JDK installation - (take care of Installation Path, for latest jdk is C:\Program Files\Java\jdk1.7.0_45) - Set JAVA_HOME System Variable properly: check guide here http://javarevisited.blogspot.it/2012/02/how-to-set-javahome-environment-in.html 2) Install Eclipse: - download from http://www.eclipse.org/downloads/ - extract Eclipse if any folder you like - start Eclipse 3) Clone L2jFrozen GIT Repository: - Window->Open Perspective->Other..->Git Repository Exploring - Into open Perspective click on "Clone Git Repository" - as URI specify "https://bitbucket.org/Shyla/l2jfrozen" and go Next - as Branch use "master" and go Next - Select Local Destination: - it is your "Git Repository Clone folder", so it will contains your projects checkout (usually c:\Users\NAME_OF_USER\git\l2jfrozen) - Go Next to start clone 3.1) If you haven't Maven installed - Help -> Eclipse Marketplace. - Find Marven and click Go. - Select "Maven Integration for Eclipse" and click Install. 4) Import L2jFrozen Git Repository Maven Projects inside the Workspace - File->Import->Maven->Existing Maven Projects - Browse Root Directory to your "Git Repository Clone folder" (usually c:\Users\NAME_OF_USER\git\l2jfrozen) - select all projects and finish - wait until all bulding phase is completed.. - This will take long time, take a coffie :) 5) compile the whole Server project: * - Right click on "l2jfrozen" Project->Maven->Maven Build.. - write or select "install" Goals and check "Skip-Tests" checkbox ** - Run it - You can find the Compilation Outputs (for Gameserver and LoginServer inside the "game/target" and "login/target" folders)) IMPORTANT Notes: * as you are going to build anything with Maven, you have to call Maven Install build over "server" project: it will produce compiled "jars" for each module that you will find inside each module "target" folder ** if you have not yet installed any Database, I suggest to start install checking the box "without tests", or building will fail due to error on database module unit test *** If you got an error while compiling, remember to use JDK and not JRE.
-
Re guys prospathw na kanw adapt afton ton kodika gia frozen alla ayta ta 2 den iparxoun sta import : import net.sf.l2j.gameserver.skills.AbnormalEffect; import net.sf.l2j.gameserver.templates.skills.L2SkillType; 3erei kanenas ti imports tha valw??
-
Request New Class
Cronia replied to BlackDevilDev's question in Request Server Development Help [Greek]
Pes mas ligo perrisotera a 3eroume ti tha katevasoume...Se ti project tha doulespoume....Px Apo Explosion (bots , Walker ) exei protections, Ti codes exei...?? (merikes plirofories toulaxiston -
yea is not for last revision But Anyway Easy to inside...I give Credits...Is not my Code...I found Frozen Project...Because I found errors in my Console I fix for work...:)
-
Request Code For Change Subclass
Cronia replied to SQL Developer's question in Request Server Development Help [Greek]
Ti project doulevis??? -
Loipwn trexa sto C:\server\loginserver\RegisterGameServer i opou ine tou project s anixe to k molis anixi patise clean Kai meta 3ana anoi3e to kai pata 1 kai des 3ana
-
Ok Guys I found This Code And Because I found Errors And A lot Of Peoples Can't Inside This Code I Share For Help The Peoples : CREDITS IS BY L2JFROZEN PROJECT REWORK BY ME (TEST BY ME) This is Java Code : Index: head-src/com/l2jfrozen/Config.java =================================================================== --- head-src/com/l2jfrozen/Config.java (wersja 669) +++ head-src/com/l2jfrozen/Config.java (kopia robocza) @@ -2239,6 +2239,7 @@ public static String FARM2_CUSTOM_MESSAGE; public static String PVP1_CUSTOM_MESSAGE; public static String PVP2_CUSTOM_MESSAGE; + public static boolean SHOW_NPC_CREST; //============================================================ public static void loadL2JFrozenConfig() @@ -2357,6 +2358,7 @@ FARM2_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("Farm2CustomMeesage", "You have been teleported to Farm Zone 2!"); PVP1_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("PvP1CustomMeesage", "You have been teleported to PvP Zone 1!"); PVP2_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("PvP2CustomMeesage", "You have been teleported to PvP Zone 2!"); + SHOW_NPC_CREST = Boolean.parseBoolean(L2JFrozenSettings.getProperty("ShowNpcCrest", "False")); } catch(Exception e) { Index: config/functions/l2jfrozen.properties =================================================================== --- config/functions/l2jfrozen.properties (wersja 669) +++ config/functions/l2jfrozen.properties (kopia robocza) @@ -275,4 +275,8 @@ # ----------------------------------------- # Protector System Config - # ----------------------------------------- # Protector activate when a player this PK ProtectorPlayerPK = False # Protector activate when a player is flaged ProtectorPlayerPVP = False # Radius of action ProtectorRadiusAction = 5000 # Skill ID used for the npc ProtectorSkillId = 1170 # Skill Level used for npc ProtectorSkillLevel = 13 ProtectorSkillTime = 600 # Npc Protector Message ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules! + +#------------------------------------------------- +# Show clan, alliance crests for territory NPC's. +#------------------------------------------------- +# Default: False +ShowNpcCrest = True \ No newline at end of file Index: head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java =================================================================== --- head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java (wersja 669) +++ head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java (kopia robocza) @@ -19,11 +19,15 @@ package com.l2jfrozen.gameserver.network.serverpackets; import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.datatables.sql.ClanTable; +import com.l2jfrozen.gameserver.managers.TownManager; import com.l2jfrozen.gameserver.model.L2Character; +import com.l2jfrozen.gameserver.model.L2Clan; import com.l2jfrozen.gameserver.model.L2Summon; import com.l2jfrozen.gameserver.model.actor.instance.L2MonsterInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2NpcInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PetInstance; +import com.l2jfrozen.gameserver.model.zone.type.L2TownZone; /** * This class ... @@ -46,6 +50,10 @@ private int _collisionHeight, _collisionRadius; private String _name = ""; private String _title = ""; + int _clanCrest = 0; + int _allyCrest = 0; + int _allyId = 0; + int _clanId = 0; /** * @param _characters @@ -99,6 +107,32 @@ _title = t; } + if(Config.SHOW_NPC_CREST) + { + if(cha instanceof L2NpcInstance && cha.isInsideZone(L2Character.ZONE_PEACE) && cha.getCastle().getOwnerId() != 0) + { + int _x,_y,_z; + _x = cha.getX(); + _y = cha.getY(); + _z = cha.getZ(); + L2TownZone Town; + Town = TownManager.getInstance().getTown(_x, _y, _z); + if(Town != null) + { + int townId = Town.getTownId(); + if(townId != 33 && townId != 22) + { + L2Clan clan; + clan = ClanTable.getInstance().getClan(cha.getCastle().getOwnerId()); + _clanCrest = clan.getCrestId(); + _clanId = clan.getClanId(); + _allyCrest = clan.getAllyCrestId(); + _allyId = clan.getAllyId(); + } + } + } + } + _x = _activeChar.getX(); _y = _activeChar.getY(); _z = _activeChar.getZ(); @@ -187,12 +221,23 @@ writeD(0000); // hmm karma ?? writeD(_activeChar.getAbnormalEffect()); // C2 - writeD(0000); // C2 - writeD(0000); // C2 - writeD(0000); // C2 - writeD(0000); // C2 - writeC(0000); // C2 + if(Config.SHOW_NPC_CREST) + { + writeD(_clanId); + writeD(_clanCrest); + writeD(_allyId); + writeD(_allyCrest); + } + else + { + writeD(0000); + writeD(0000); + writeD(0000); + writeD(0000); + writeC(0000); + } + writeC(0x00); // C3 team circle 1-blue, 2-red writeF(_collisionRadius); writeF(_collisionHeight); Index: head-src/com/l2jfrozen/gameserver/model/entity/siege/Castle.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/entity/siege/Castle.java (wersja 669) +++ head-src/com/l2jfrozen/gameserver/model/entity/siege/Castle.java (kopia robocza) @@ -90,6 +90,7 @@ private int _taxPercent = 0; private double _taxRate = 0; private int _treasury = 0; + private boolean _showNpcCrest = false; private L2CastleZone _zone; private L2CastleTeleportZone _teleZone; private L2Clan _formerOwner = null; @@ -364,6 +365,7 @@ } updateOwnerInDB(clan); // Update in database + setShowNpcCrest(false); if(getSiege().getIsInProgress()) { @@ -552,6 +554,7 @@ _taxPercent = rs.getInt("taxPercent"); _treasury = rs.getInt("treasury"); + _showNpcCrest = rs.getBoolean("showNpcCrest"); } rs.close(); @@ -854,6 +857,20 @@ return _treasury; } + public final boolean getShowNpcCrest() + { + return _showNpcCrest; + } + + public final void setShowNpcCrest(boolean showNpcCrest) + { + if(_showNpcCrest != showNpcCrest) + { + _showNpcCrest = showNpcCrest; + updateShowNpcCrest(); + } + } + public FastList<SeedProduction> getSeedProduction(int period) { return period == CastleManorManager.PERIOD_CURRENT ? _production : _productionNext; @@ -1324,6 +1341,36 @@ } } + public void updateShowNpcCrest() + { + Connection con = null; + PreparedStatement statement; + try + { + con = L2DatabaseFactory.getInstance().getConnection(); + + statement = con.prepareStatement("UPDATE castle SET showNpcCrest = ? WHERE id = ?"); + statement.setString(1, String.valueOf(getShowNpcCrest())); + statement.setInt(2, getCastleId()); + statement.execute(); + statement.close(); + } + catch (Exception e) + { + _log.info("Error saving showNpcCrest for castle " + getName() + ": " + e.getMessage()); + } + finally + { + try + { + con.close(); + } + catch (Exception e) + { + } + } + } + public boolean isNextPeriodApproved() { return _isNextPeriodApproved; And Execute This File : ALTER TABLE castle ADD showNpcCrest enum('true','false') DEFAULT 'false' NOT NULL; (Don't Spam Please I Hope To Help People With This Topic)
-
Nice!!!
-
Help L2Jfrozen Build Server
Cronia replied to FrozenVampire's question in Request Server Development Help [Greek]
Ti enoeis agori mou loipwn poio rev frozen exeis?? -
Lock it to eftia3a...
-
Can't Login To My Server
Cronia replied to dr3am3r's question in Request Server Development Help [L2J]
Check the Protocol Server Change Min 1 Max 999 -
Help Ubuntu : Mysql Edit?
Cronia replied to lampros1996's question in Request Server Development Help [Greek]
Re agori mou to server apo oti katalava ton exis se eteria p exei linux... swsta???Den sou edwsan kamia vasi dedomenon na mpenis apo ekei einai kati san localhost sti navicat apla ftiaxnis ena new p to onomazis Server k apla vazis port kai kodiko p sou dinoun ayti p sindeete me to server dld ayta p exi mesa to Gameserver.properties ns ta allazis apo ekei...? -
agori mou akou ti tha kaneis kane uninstal to mysql kai trexa kai sto C:\Program Files\MySQL diegrapse to fakelo kai episeis trexa sto C:\Program Files(x86)(x64)\MySQL kai diegrapse kai apo ekei to fakelo kai episis mpes C:\Program data\MySQL kai apo ekei diagrafi kai 3ana kanto egkatastasi..
-
File mou dikola tha vris kapoion na diathesi xrimata gia na sinergasti me kapoion pou den 3erei....Oso gia eteria iparxoun ena swro kai me 50 euro vriskis eykola apla psa3e (Exw na s protinw an thes mia filou me kali timi)
-
Help Problem With Java Code (All Sieges In One Npc)
Cronia replied to Cronia's question in Request Server Development Help [Greek]
Eyxariston ton ExCaLiBuR® (kai olous osous endiaferthikan) mporei kapoios na lock -
Help Linux Ubuntu 13.10 ( Fail ? ) Help!
Cronia replied to lampros1996's question in Request Server Development Help [Greek]
Agori m an o server ine me fillezilla anoixe ton kai opou katalixi .sh Kane dexi klik file premision k kanta 777 meta anixe to putty vale kodiko kai username kai tha se vgali sto server meta logika pata auta : cd Server/loginserver ./startLoginServer.sh cd cd Server/gameserver ./startGameServer.sh *(mia mia tis entoles oxi copy opws ine) Prosoxi omws o server p exis anevasi mpori na mn ine Server alla server (me mikra dld ) opote cd server/loginserver ./startLoginServer.sh cd cd server/gameserver ./startGameServer.sh Vasikes Entoles : cd name : mpeni ston fakelo name cd name/name : mpeni ston ipofakelo name p ine mesa sto fakelo name cd : Back reboot : Epanekinisi Server (to reboot to patas molis vazis username k password (meta prepi na 3ana kanis ta vimata apo tin arxi gia na ton 3ana anixis : cd server/loginserver ./startLoginServer.sh cd cd server/gameserver ./startGameServer.sh -
Help Question About Price
Cronia replied to powerboy2's question in Request Server Development Help [Greek]
+1 ena site mporeis na vris kai free tosa dinoun edw pera alla sigoura peripou (10 to xrono domain dld katalixi .com .net ) kai mia kali eteria me 5 euro to mina to hosting (gia to site gia na mn sou kanoun attack)