-
Posts
882 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Gxz
-
if u are want this to fix l2j killer or whatever then you will still have problem... there are always other ways to find ur port... file Edit, netstat /n
-
Index: /Server/GameServer/java/config/other.properties =================================================================== --- /Server/GameServer/java/config/other.properties (revision 2) +++ /Server/GameServer/java/config/other.properties (revision 10) @@ -45,8 +45,20 @@ EnchantChanceArmor = 52 EnchantChanceJewelry = 54 + +# Chance a Crystal Enchant Scroll will succeed after safe enchant. +EnchantChanceWeaponCrystal = 100 +EnchantChanceArmorCrystal = 100 +EnchantChanceJewelryCrystal = 100 + +# Chance a Blessed Enchant Scroll will succeed after safe enchant. +EnchantChanceWeaponBlessed = 85 +EnchantChanceArmorBlessed = 85 +EnchantChanceJewelryBlessed = 85 + # Enchant limit [default = 0 (unlimited)] EnchantMaxWeapon = 0 EnchantMaxArmor = 0 EnchantMaxJewelry = 0 + # if EnchantSafeMax is set to for ex '8' the item will be safly enchanted to '8' # regardless of enchant chance(default = 3 for EnchantSafeMax and default = 4 for EnchantSafeMaxFull) Index: /Server/GameServer/java/net/sf/l2j/Config.java =================================================================== --- /Server/GameServer/java/net/sf/l2j/Config.java (revision 8) +++ /Server/GameServer/java/net/sf/l2j/Config.java (revision 10) @@ -948,4 +948,12 @@ public static int ENCHANT_MAX_ARMOR; public static int ENCHANT_MAX_JEWELRY; + + 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; + /** maximum level of safe enchantment for normal items*/ public static int ENCHANT_SAFE_MAX; @@ -1490,4 +1498,10 @@ ENCHANT_MAX_ARMOR = Integer.parseInt(otherSettings.getProperty("EnchantMaxArmor", "255")); ENCHANT_MAX_JEWELRY = Integer.parseInt(otherSettings.getProperty("EnchantMaxJewelry", "255")); + ENCHANT_CHANCE_WEAPON_CRYSTAL = Integer.parseInt(otherSettings.getProperty("EnchantChanceWeaponCrystal", "100")); + ENCHANT_CHANCE_ARMOR_CRYSTAL = Integer.parseInt(otherSettings.getProperty("EnchantChanceArmorCrystal", "100")); + ENCHANT_CHANCE_JEWELRY_CRYSTAL = Integer.parseInt(otherSettings.getProperty("EnchantChanceJewelryCrystal", "100")); + ENCHANT_CHANCE_WEAPON_BLESSED = Integer.parseInt(otherSettings.getProperty("EnchantChanceWeaponBlessed", "85")); + ENCHANT_CHANCE_ARMOR_BLESSED = Integer.parseInt(otherSettings.getProperty("EnchantChanceArmorBlessed", "85")); + ENCHANT_CHANCE_JEWELRY_BLESSED = Integer.parseInt(otherSettings.getProperty("EnchantChanceJewelryBlessed", "85")); /*limit of safe enchant normal */ ENCHANT_SAFE_MAX = Integer.parseInt(otherSettings.getProperty("EnchantSafeMax", "3")); Index: /Server/GameServer/java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java =================================================================== --- /Server/GameServer/java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java (revision 2) +++ /Server/GameServer/java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java (revision 10) @@ -41,6 +41,9 @@ protected static final Logger _log = Logger.getLogger(Inventory.class.getName()); 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[] ENCHANT_SCROLLS = { 729, 730, 947, 948, 951, 952, 955, 956, 959, 960 }; + 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; @@ -57,4 +60,12 @@ if (activeChar == null || _objectId == 0) return; + if (activeChar.isProcessingTransaction()) + { + activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION)); + activeChar.setActiveEnchantItem(null); + return; + } + + L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId); L2ItemInstance scroll = activeChar.getActiveEnchantItem(); @@ -179,27 +190,93 @@ } - // SystemMessage sm = new SystemMessage(SystemMessageId.ENCHANT_SCROLL_CANCELLED); - // activeChar.sendPacket(sm); - - 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 sm = new + // 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 Credits: L2J Server
-
Blessed enchant rate Interlude
Gxz replied to Gxz's question in Request Server Development Help [L2J]
thx dude, works perfect -
Blessed enchant rate Interlude
Gxz replied to Gxz's question in Request Server Development Help [L2J]
for interlude l2j nop, so how can i change it, java modification or smt? -
very good event but its not automatic? btw only 1 compile error xD at locZ or smt u have to add a "+" before it ;) gj
-
ok i just added the system anw thx
-
hello guys, i want a fix for that to not let pvp botting from same ip from interlude
-
Hello guys, how can i make the enchant rate for blessed different in interlude l2j server?
-
hi guys, i searched in forum i found 2-3 systems for pvp color names but they are for gracia final and i need for interlude
-
he can tell his opinion to a more retarded topic and not here... i am asking for help and not for everyone's opinion
-
well seak understood what i said and he helped me a lot, i already said thx you can lock this why you continue to spam? -reported
-
thx seak, you can lock this now ;)
-
i just want to change the text
-
hello guys so i just added a floodprotector in my interlude server and i edited floodprotector to 100 ms that means 10 seconds... and if u try to flood it says " you cant speak so fast, you have to wait 10 seconds to speak again" when i make it 50 ms = 5 seconds it changes but it steal says " you cant speak so fast, you have to wait 10 seconds to speak again" so i want to make " you cant speak so fast, you have to wait 10 seconds to speak again" to say "You can speak so fast in hero voice" how can i do this?
-
lol? then why to use this fix? it will even HEAL the player... whats the point of this fix? to overpower more the bug?
-
thats the java fix i was looking, this java fix heals right before the match right? so what if i use angelic icon? it will heal me right before the match starts and QQ? right?
-
hello guys i am working in interlude server using l2j server files and i want to fix that olympiad prefrenzy pre whatever things... i search in the forum and i found enough fixes for this thing but i am not sure which one to use for me cause in some shares i saw that it heals before the match starts... so i guess you can use frenzy & zealot and after that you get healed? so its even better... i just dont want them to use frenzy and zealot before the match start which java fix should i use?
-
[Share]All Java Shares, Fixes & Guides Till Today!
Gxz replied to Coyote™'s topic in Server Shares & Files [L2J]
wow Coyote is doing hard job in this forum, i think you deserve gold ;) thx for the guide, i needed that so much ! -
L2J-Infinity - Free Interlude Server Project
Gxz replied to `Rοmeο's topic in Server Development Discussion [L2J]
wow i thought it would be a good project but finally it sucks @ventic & skylancer: ye ye, we wont close it BE SURe for this ! its been 4 days to see them both and that idiot MaCe is deleting your topics without a reason and when i asked again why he is deleting my topics, he deleted that topic too.. dunno why and some people say that even phx works in that project, i dont care if i am a Tester but with such a team you cant work in a serious project and there is not even a list of fixes or custom things for that project... Anw i just let you know before you lose your time bb and gl with that -
oh sry for the double post :( but i found the problem, the problem was in the height at html file :( you can lock this now thx anw ;)
-
not working btw in index.php i see all castles but in the space provided i only see 3 maybe smt limit it?
-
anw i will try later cause this is not so necessary but i must find a fix for the php script for castles...
-
tried that and it didnt worked
-
what i do with this? give me more details
-
its in html/php
