-
Posts
2,865 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Flash™
-
Prob me ton server...
Flash™ replied to trousaki's question in Request Server Development Help [Greek]
ayto ti einai <define subnet="192.168.1.67" address="192.168.1.67" /> pou exeis alla3ei ? koita to diko mou poio pano den to exw alla3ei egw katholou ayto... -
Prob me ton server...
Flash™ replied to trousaki's question in Request Server Development Help [Greek]
file trousaki blepeis exw na to ekana opws to ekanes esu ? -
Kapio kalo pack gia l2 interlude server?
Flash™ replied to thepsolartek's question in Request Server Development Help [Greek]
to l2jfrozzen einai ena pack me full custom java code.. den einai kalo pack giati exei tosa polla customs mesa einai to xirotero ena pack na exei para polla custom java code gia ton logo oti tha exei perisotero lag kai perisotera provlima kai error kai bug :) -
Prob me ton server...
Flash™ replied to trousaki's question in Request Server Development Help [Greek]
etsi prepei na einai file mou.. <?xml version="1.0" encoding="UTF-8"?> <!-- Externalhost here (Internet IP) or Localhost IP for local test --> <gameserver address="no-ip" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd"> <!-- Localhost here --> <define subnet="127.0.0.0/8" address="no-ip" /> <!-- Internalhosts here (LANs IPs) --> <define subnet="10.0.0.0/8" address="10.0.0.0" /> <define subnet="172.16.0.0/19" address="172.16.0.0" /> <define subnet="192.168.0.0/16" address="192.168.2.2" /> </gameserver> edw file mou tha valeis tin ip tou pc sou diladi tin 192.168.2.2 px. kai me ayth tha mpeis apo to pc sou ston server... ama theleis na mpoun kai i fili sou apo to spiti tous i genika tha tous doseis tin no-ip <define subnet="192.168.0.0/16" address="192.168.0.0" /> -
[share]Bless+Crystal Chance [Interlude]
Flash™ replied to Flash™'s topic in Server Development Discussion [Greek]
akoma ena dwraki gia esas magkes.. einai kati aplos alla ma fou to exw kai einai gia Interlude oriste.. Index: trunk/Gameserver/java/net/gp/gameserver/handler/itemhandlers/ScrollOfEscape.java =================================================================== --- trunk/Gameserver/java/net/gp/gameserver/handler/itemhandlers/ScrollOfEscape.java (revision 52) +++ trunk/Gameserver/java/net/gp/gameserver/handler/itemhandlers/ScrollOfEscape.java (revision 58) @@ -84,4 +84,11 @@ return; } + + if (Config.ALLOW_SOE_IN_PVP && activeChar.getPvpFlag() != 0) + { + activeChar.sendMessage("You can't use SOE if you're flagged!"); + return; + } + // Check to see if the player is in a festival. Index: trunk/Gameserver/java/net/gp/Config.java =================================================================== --- trunk/Gameserver/java/net/gp/Config.java (revision 57) +++ trunk/Gameserver/java/net/gp/Config.java (revision 58) @@ -874,4 +874,5 @@ public static int L2JMOD_WEDDING_DIVORCE_COSTS; public static boolean ALLOW_GK_IN_PVP; + public static boolean ALLOW_SOE_IN_PVP; @@ -1924,4 +1925,5 @@ L2JMOD_WEDDING_DIVORCE_COSTS = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20")); ALLOW_GK_IN_PVP = Boolean.parseBoolean(L2JModSettings.getProperty("AllowGkInPvP", "True")); + ALLOW_SOE_IN_PVP = Boolean.parseBoolean(L2JModSettings.getProperty("AllowSoEInPvP", "True")); Index: trunk/Gameserver/config/l2jmods.properties =================================================================== --- trunk/Gameserver/config/l2jmods.properties (revision 57) +++ trunk/Gameserver/config/l2jmods.properties (revision 58) @@ -137,2 +137,6 @@ # Default : True AllowGkInPvP = True + +# If is set to False , players can't use SOE when they are flagged! +# Default : True +AllowSoEInPvP = True -
poblem with start game/login server
Flash™ replied to kostari's question in Request Server Development Help [Greek]
emena giati mou fenete oti den exeis kanei tpt kai aplos theleis na sto kanei kapoios ? perase ayta pou sou eipa kai kane rr to pc sou -
poblem with start game/login server
Flash™ replied to kostari's question in Request Server Development Help [Greek]
kane ayto edw file mou part[1] kai perase aythn tin java part [2] ama kaneis ayta kai sou to bgalei pali kati kaneis lathos.. -
poblem with start game/login server
Flash™ replied to kostari's question in Request Server Development Help [Greek]
kane uninstall tin java kai meta pali install kai tha eisai ok -
File •MeLe• den asxoloume poia me C6 mono me Freya :)
-
[share]Bless+Crystal Chance [Interlude]
Flash™ replied to Flash™'s topic in Server Development Discussion [Greek]
File PsychoSquad* eleos pragmatika.. :) to ekana post gia ton logo oti den to briskhs kai giati to eixa perasei para poly palia otan asxoliomouna me to Interlude na les pali kala pou exw to palio mou svn... :) -
Πώς να αλλάξω το Blessed Scoll of Enchant rate;
Flash™ replied to PsychoSquad*'s question in Request Server Development Help [Greek]
pare peraseto kai tha eisai ok -
Ayto to Share to kanw giati blepw kapoies fores san kai ayto edw to post giati i perisoterh den kanoun seacrh Index: trunk/gameserver/java/config/players.properties =================================================================== --- a/trunk/gameserver/java/config/players.properties +++ b/trunk/gameserver/java/config/players.properties @@ -137,2 +137,9 @@ MaxbuffAmount = 24 StoreSkillCooltime = True + +EnchantChanceWeaponCrystal = 100 +EnchantChanceArmorCrystal = 100 +EnchantChanceJewelryCrystal = 100 +EnchantChanceWeaponBlessed = 85 +EnchantChanceArmorBlessed = 85 +EnchantChanceJewelryBlessed = 85 Index: trunk/gameserver/java/net/sf/l2j/Config.java =================================================================== --- a/trunk/gameserver/java/net/sf/l2j/Config.java +++ b/trunk/gameserver/java/net/sf/l2j/Config.java @@ -195,4 +195,12 @@ public static boolean WEDDING_FORMALWEAR; public static int WEDDING_DIVORCE_COSTS; + + /** Chance blessed-crystal enchants */ + public static int ENCHANT_CHANCE_WEAPON_CRYSTAL; + public static int ENCHANT_CHANCE_ARMOR_CRYSTAL; + public static int ENCHANT_CHANCE_JEWELRY_CRYSTAL; + public static int ENCHANT_CHANCE_WEAPON_BLESSED; + public static int ENCHANT_CHANCE_ARMOR_BLESSED; + public static int ENCHANT_CHANCE_JEWELRY_BLESSED; /** Lottery */ @@ -925,4 +933,7 @@ WEDDING_DIVORCE_COSTS = Integer.parseInt(eventsSettings.getProperty("WeddingDivorceCosts", "20")); + + /* if different from 100 (ie 100%) heal rate is modified acordingly */ + ALT_LOTTERY_PRIZE = Integer.parseInt(eventsSettings.getProperty("AltLotteryPrize","50000")); ALT_LOTTERY_TICKET_PRICE = Integer.parseInt(eventsSettings.getProperty("AltLotteryTicketPrice","2000")); @@ -1073,4 +1084,11 @@ ENCHANT_SAFE_MAX_FULL = Integer.parseInt(playersSettings.getProperty("EnchantSafeMaxFull", "4")); + ENCHANT_CHANCE_WEAPON_CRYSTAL = Integer.parseInt(playersSettings.getProperty("EnchantChanceWeaponCrystal", "100")); + ENCHANT_CHANCE_ARMOR_CRYSTAL = Integer.parseInt(playersSettings.getProperty("EnchantChanceArmorCrystal", "100")); + ENCHANT_CHANCE_JEWELRY_CRYSTAL = Integer.parseInt(playersSettings.getProperty("EnchantChanceJewelryCrystal", "100")); + ENCHANT_CHANCE_WEAPON_BLESSED = Integer.parseInt(playersSettings.getProperty("EnchantChanceWeaponBlessed", "85")); + ENCHANT_CHANCE_ARMOR_BLESSED = Integer.parseInt(playersSettings.getProperty("EnchantChanceArmorBlessed", "85")); + ENCHANT_CHANCE_JEWELRY_BLESSED = Integer.parseInt(playersSettings.getProperty("EnchantChanceJewelryBlessed", "85")); + KARMA_PLAYER_CAN_BE_KILLED_IN_PZ= Boolean.valueOf(playersSettings.getProperty("KarmaPlayerCanBeKilledInPeaceZone", "False")); KARMA_PLAYER_CAN_SHOP = Boolean.valueOf(playersSettings.getProperty("KarmaPlayerCanShop", "True")); Index: trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java =================================================================== --- a/trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java +++ b/trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java @@ -40,6 +40,8 @@ { protected static final Logger _log = Logger.getLogger(Inventory.class.getName()); + private static final int[] ENCHANT_SCROLLS = { 729, 730, 947, 948, 951, 952, 955, 956, 959, 960 }; private static final String _C__58_REQUESTENCHANTITEM = "[C] 58 RequestEnchantItem"; private static final int[] CRYSTAL_SCROLLS = { 731, 732, 949, 950, 953, 954, 957, 958, 961, 962 }; + private static final int[] BLESSED_SCROLLS = { 6569, 6570, 6571, 6572, 6573, 6574, 6575, 6576, 6577, 6578 }; private int _objectId; @@ -56,4 +58,11 @@ L2PcInstance activeChar = getClient().getActiveChar(); if (activeChar == null || _objectId == 0) return; + + if (activeChar.isProcessingTransaction()) + { + activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION)); + activeChar.setActiveEnchantItem(null); + return; + } if (activeChar.isProcessingTransaction()) @@ -195,25 +204,93 @@ return; } - - SystemMessage sm; - - int chance = 0; - int maxEnchantLevel = 0; - - if (item.getItem().getType2() == L2Item.TYPE2_WEAPON) - { - chance = Config.ENCHANT_CHANCE_WEAPON; - maxEnchantLevel = Config.ENCHANT_MAX_WEAPON; - } - else if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR) - { - chance = Config.ENCHANT_CHANCE_ARMOR; - maxEnchantLevel = Config.ENCHANT_MAX_ARMOR; - } - else if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY) - { - chance = Config.ENCHANT_CHANCE_JEWELRY; - maxEnchantLevel = Config.ENCHANT_MAX_JEWELRY; - } + + // SystemMessage(SystemMessageId.ENCHANT_SCROLL_CANCELLED); + // activeChar.sendPacket(sm); + SystemMessage sm; + int chance = 0; + int maxEnchantLevel = 0; + if (item.getItem().getType2() == L2Item.TYPE2_WEAPON) + { + maxEnchantLevel = Config.ENCHANT_MAX_WEAPON; + for (int scrollId : ENCHANT_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_WEAPON; + break; + } + } + for (int scrollId : CRYSTAL_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_WEAPON_CRYSTAL; + ; + break; + } + } + for (int scrollId : BLESSED_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_WEAPON_BLESSED; + break; + } + } + } else if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR) + { + maxEnchantLevel = Config.ENCHANT_MAX_ARMOR; + for (int scrollId : ENCHANT_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_ARMOR; + break; + } + } + for (int scrollId : CRYSTAL_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_ARMOR_CRYSTAL; + break; + } + } + for (int scrollId : BLESSED_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_ARMOR_BLESSED; + break; + } + } + } else if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY) + { + maxEnchantLevel = Config.ENCHANT_MAX_JEWELRY; + for (int scrollId : ENCHANT_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_JEWELRY; + break; + } + } + for (int scrollId : CRYSTAL_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_JEWELRY_CRYSTAL; + break; + } + } + for (int scrollId : BLESSED_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_JEWELRY_BLESSED; + break; + } + } + } if (item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX
-
mesa apo to system file mou ginete ayto....
-
[help]kamia ftini eteria dedicate?
Flash™ replied to Kafros_Gr's question in Request Server Development Help [Greek]
File tsoutsisoeo i perisoterh edw mesa pernoun ena pack l2frozen kai lene exw anti ddos otan sikoso ton server mou se linux... to pack tis l2frozen einai ena pack gia to @@ einai full java code kai ektos apo ayto anti ddos mesa sto pack server den ginete na peraseis.. gia ton logo den einai atack sto pack kai to rixnei... einai atack gia ip oste na tin rixnei ama den exei protection... ta linux einai ena logismiko pou enas l2j server tha trexi poio grigora alla den pavi na einai ena logismiko pou den mporei na apotrepei ta ddos atack.,. -
file mou apo oti blepw den exei perasei tin java mesa sto eclipse oste na diavasei ta arxia... des ayto edw
-
[help]kamia ftini eteria dedicate?
Flash™ replied to Kafros_Gr's question in Request Server Development Help [Greek]
File TheVip pisteyeiso ti exeis Custom anti DDOS protetion (IPT - linux) alithia twra ? gia na exeis protection anti ddos prepei na agoraseis apo eteria anti ddos... ta linux den exoun anti ddos oute sto pack ama perasei ena ilithio java code pou uparxei tha mporeseis na to prwstatepseis giati den den xtupa ton server alla tin ip sou to ddos atack ... -
Code Anti-Pk Protection For Low Level Characters
Flash™ replied to Emrys's topic in Server Shares & Files [L2J]
fix for freya :P 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; + return false; } -
vale photo re bro
-
sorry bro sou ekana copy duo fore to idio set mysqlBinPath=%ProgramFiles%\MySQL\MySQL Server 5.5\bin set lsuser=root set lspass= set lsdb=l2jdb set lshost=localhost set cbuser=root set cbpass= set cbdb=l2jcb set cbhost=localhost set gsuser=root set gspass= set gsdb=l2jdb set gshost=localhost set cmode=c set backup=. set logdir=. etsi einai to pali to to new einai epano...
-
File mou den einai mono to l2jdb ama deis sto database_installer sou leei ayto edw ama to kaneis open... set config_version=2 if NOT %upgrade_mode% == 2 ( set fresh_setup=1 set mysqlBinPath=%ProgramFiles%\MySQL\MySQL Server 5.5\bin set lsuser=root set lspass= set lsdb=l2jls set lshost=localhost set cbuser=root set cbpass= set cbdb=l2jcs set cbhost=localhost set gsuser=root set gspass= set gsdb=l2jgs set gshost=localhost set cmode=c set backup=. set logdir=. ektos apo ayto twra sto new update tis l2j einai etsi call :colors 17 title L2JDP Installer - Setup cls set config_version=2 if NOT %upgrade_mode% == 2 ( set fresh_setup=1 set mysqlBinPath=%ProgramFiles%\MySQL\MySQL Server 5.5\bin set lsuser=root set lspass= set lsdb=l2jls set lshost=localhost set cbuser=root set cbpass= set cbdb=l2jcs set cbhost=localhost set gsuser=root set gspass= set gsdb=l2jgs set gshost=localhost set cmode=c set backup=. set logdir=. den einai l2jdb opws prin...
-
se ti client to perases file mou ? to perases ayto edw custom/50300_PKlist/__init__.py
-
[Share]CrystalEnchant [Freya]
Flash™ replied to Flash™'s topic in Server Development Discussion [Greek]
edw einai com.l2jserver.gameserver.network.clientpackets kai edw to kaneis edit if (_isWeapon) chance = Config.BLESSED_ENCHANT_CHANCE_WEAPON; else if (isAccessory) chance = Config.BLESSED_ENCHANT_CHANCE_JEWELRY; else chance = Config.BLESSED_ENCHANT_CHANCE_ARMOR; } else + if (_isCrystal) + { + // Crystal scrolls does not use support items + if (supportItem != null) + return -1; + + if (_isWeapon) + { + if (enchantItem.getWeaponItem().isMagicWeapon()) + chance = Config.CRYSTAL_ENCHANT_CHANCE_WEAPON_MAGE; + else + chance = Config.CRYSTAL_ENCHANT_CHANCE_WEAPON_WARRIOR; + } + else if (isAccessory) + chance = Config.CRYSTAL_ENCHANT_CHANCE_JEWELRY; + else + chance = Config.CRYSTAL_ENCHANT_CHANCE_ARMOR; + } + else { if (_isWeapon) if (Config.ENCHANT_STEP_ENABLED) { -
[WTN]Developer For My Server(Good Developer)
Flash™ replied to thomasqqq's question in Request Server Development Help [Greek]
File thomasqqq pisteyw na se boi8isan twra ta paidia oste na matheis ti einai to anti ddos.. eyxaristo re magkes pou tou to eipate eseis giati o filos mas gurise kai mou leei oti nane kai oti eimai skatonoumpo kai to epaize e3ipnos :) ante na doume ti allo tha doume edw mesa kai den einai to thema oti den 3eroun to thema einai oti tous to peis to sosto se lene kai nooba apo pano.. :) -
[HELP] Skills 81 lvl
Flash™ replied to djorestis's question in Request Server Development Help [Greek]
nai file zake den uparxoun giati den ta exoun perasei ta skill tou 81 ama pws na tha to deis ta pernas esu :) ama psa3eis sto forum tha deis oti uparxei ena share me ta skill tou 81 gia to freya etsi einai kai tou EPILOGUE -
[HELP] Skills 81 lvl
Flash™ replied to djorestis's question in Request Server Development Help [Greek]
zake den exei sxesei ama exei se ola ta pack to autolearnskills to autolearnskills einai gia ta skill pou pernei to class to normal oxi ta skill tou 81 giati ayta theloun na peraseis to sql oste na ta perasei mesa sto kathe class :)