
vagos123
Members-
Posts
453 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by vagos123
-
can someone adapt this set right here to interlude? i would be very grateful thanks in advance !!
-
www.000webhost.com to kalitero p 8a vreis
-
[Help]Blessed Scroll's Rate
vagos123 replied to Oxgn's question in Request Server Development Help [Greek]
megale auto einai to code... egw auto exo perasei stn server m an dn to eixa test dn 8a sto edina -
[Help]Blessed Scroll's Rate
vagos123 replied to Oxgn's question in Request Server Development Help [Greek]
### Eclipse Workspace Patch 1.0 #P l2jasus Index: trunk/gameserver/java/config/other.properties =================================================================== --- trunk/gameserver/java/config/other.properties (revision 5) +++ trunk/gameserver/java/config/other.properties (working copy) @@ -135,4 +135,11 @@ AltSubClassWithoutQuests = True + +EnchantChanceWeaponCrystal = 100 +EnchantChanceArmorCrystal = 100 +EnchantChanceJewelryCrystal = 100 +EnchantChanceWeaponBlessed = 85 +EnchantChanceArmorBlessed = 85 +EnchantChanceJewelryBlessed = 85 \ No newline at end of file Index: trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java =================================================================== --- trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java (revision 2) +++ trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java (working copy) @@ -39,8 +39,10 @@ public final class RequestEnchantItem extends L2GameClientPacket { 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,6 +58,13 @@ 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()) { activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION)); @@ -195,27 +204,96 @@ return; } - SystemMessage sm; + / 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; + } + } + } - 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; - } - if (item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX || (item.getItem().getBodyPart() == L2Item.SLOT_FULL_ARMOR && item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX_FULL)) Index: trunk/gameserver/java/net/sf/l2j/Config.java =================================================================== --- trunk/gameserver/java/net/sf/l2j/Config.java (revision 2) +++ trunk/gameserver/java/net/sf/l2j/Config.java (working copy) @@ -194,6 +194,14 @@ /** maximum level of safe enchantment for full body armor*/ public static int ENCHANT_SAFE_MAX_FULL; + + /** 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 */ public static int ALT_LOTTERY_PRIZE; @@ -924,6 +932,9 @@ ENCHANT_SAFE_MAX_FULL = Integer.parseInt(otherSettings.getProperty("EnchantSafeMaxFull", "4")); + 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")); + -
[Help ] Interlude pack
vagos123 replied to Valve's question in Request Server Development Help [L2J]
even if i shared it is not recommended. i shared it a long time ago and i haven't fixed everything.... so you should try acis when the skills rework is done -
http://www.maxcheaters.com/forum/index.php?topic=34851.0 -> Anti - PHX Enchant http://www.maxcheaters.com/forum/index.php?topic=34850.0 -> Anti - PHX Announce http://www.maxcheaters.com/forum/index.php?topic=45820.0 -> Anti - PHX Multisell Bugg i suppose i am not a magician xD search better next time... hope i helped
-
just search in L2J Server board. You can find fixes for every phx script.. EDIT : search Here put on the search box the word phx and voila! wasn't so difficult
-
Hello guys! It's been 3 years since i started developing l2 but i still haven't found an interlude skill's rework. Does anyone have a patch for this? I would be really grateful SirButton's share lacks the dp part ..... so if anyone has a patch for skills rework i would be really grateful Thanks in advance
-
geia sas paides.. eklisa ta 3 xronia asxoloumenos me developing kai mexri tr dn exo vrei kapio rework gia ta skills (interlude) Checkara auto tou SirButtons alla opos tonise kai o versus lipei to datapack part. Loipon, exei kaneis kapio patch gia skills rework? 8a tou imoun ipoxreos efxaristo prokatavolika
-
oh dn to ksera :S
-
1) kai nai kai oxi vlepeis ta commits sto timeline kai an se ikanopioun anigeis. An oxi mporeis pali na anikseis kai na peraseis ta dika s codes 2) kai vevea . xoris compile dn pas pou8ena 3) prepei na ksanakaneis checkout to project, Auto simenei oti 8a xaseis oti custom codes exeis perasei esi 4) kai vevea 5) o,ti 8es 8a to vreis edw
-
code fixed. sorry for the inconvenience it worked though even like this but shuffled only the first 3 cases thx guys for reporting it
-
Hello ! One share just for fun! I call it lucky coin. When you use it , you bet 100kk adena and there are 5 cases : Case1 : You get the 100kk adena back Case2 : You loose another 100kk. If you don't have to pay you go to jail for 1 minutes ** Case3 : You win 500kk adena. Case4 : You win 1kkk adena Case5 : You just loose the adena you just bet. ### Eclipse Workspace Patch 1.0 #P L2_GameServer_It Index: java/net/sf/l2j/gameserver/GameServer.java =================================================================== --- java/net/sf/l2j/gameserver/GameServer.java (revision 4487) +++ java/net/sf/l2j/gameserver/GameServer.java (working copy) @@ -134,11 +149,13 @@ import net.sf.l2j.gameserver.handler.itemhandlers.Firework; import net.sf.l2j.gameserver.handler.itemhandlers.FishShots; import net.sf.l2j.gameserver.handler.itemhandlers.Harvester; +import net.sf.l2j.gameserver.handler.itemhandlers.LuckyCoin; import net.sf.l2j.gameserver.handler.itemhandlers.MercTicket; @@ -476,6 +499,8 @@ _itemHandler.registerItemHandler(new SpecialXMas()); _itemHandler.registerItemHandler(new SummonItems()); _itemHandler.registerItemHandler(new BeastSpice()); + if (Config.ENABLE_LUCKY_COIN) + _itemHandler.registerItemHandler(new LuckyCoin()); _log.config("ItemHandler: Loaded " + _itemHandler.size() + " handlers."); _skillHandler = SkillHandler.getInstance(); Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 4487) +++ java/net/sf/l2j/Config.java (working copy) @@ -1162,8 +1167,126 @@ /** Vote Reward System */ public static String VOTE_HTML_PATCH; public static int VOTES_FOR_REWARD; public static int VOTE_REWARD1_ID; public static int VOTE_REWARD2_ID; public static int VOTE_REWARD1_COUNT; public static int VOTE_REWARD2_COUNT; + + /** Lucky Coin */ + public static boolean ENABLE_LUCKY_COIN; + public static int LUCKY_COIN_ID; @@ -1963,6 +2094,145 @@ VOTE_HTML_PATCH = customs.getProperty("VoteHtmlPatch", "Null"); VOTES_FOR_REWARD = Integer.parseInt(customs.getProperty("VotesRequiredForReward", "10")); VOTE_REWARD1_COUNT = Integer.parseInt(customs.getProperty("VoteReward1Count", "1000")); VOTE_REWARD2_COUNT = Integer.parseInt(customs.getProperty("VoteReward2Count", "1000")); VOTE_REWARD1_ID = Integer.parseInt(customs.getProperty("VoteReward1Id", "57")); VOTE_REWARD2_ID = Integer.parseInt(customs.getProperty("VoteReward2Id", "57")); + ENABLE_LUCKY_COIN = Boolean.parseBoolean(customs.getProperty("EnableLuckyCoin", "True")); + LUCKY_COIN_ID = Integer.parseInt(customs.getProperty("LuckyCoinID", "6673")); + Index: java/net/sf/l2j/gameserver/handler/itemhandlers/LuckyCoin.java =================================================================== --- java/net/sf/l2j/gameserver/handler/itemhandlers/LuckyCoin.java (revision 0) +++ java/net/sf/l2j/gameserver/handler/itemhandlers/LuckyCoin.java (revision 0) @@ -0,0 +1,207 @@ +/* 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.handler.itemhandlers; + +import net.sf.l2j.Config; +import net.sf.l2j.gameserver.handler.IItemHandler; +import net.sf.l2j.gameserver.model.L2ItemInstance; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; +import net.sf.l2j.gameserver.model.actor.instance.L2PlayableInstance; +import net.sf.l2j.gameserver.serverpackets.InventoryUpdate; +import net.sf.l2j.gameserver.serverpackets.SocialAction; +import net.sf.l2j.util.Rnd; + +/** + * + * @author FelonBIG + */ +public class LuckyCoin implements IItemHandler +{ + private static final int ITEM_IDS[] = + { + Config.LUCKY_COIN_ID + }; + + public void useItem(L2PlayableInstance playable, L2ItemInstance item) + { + if (!(playable instanceof L2PcInstance)) + { + return; + } + + L2PcInstance activeChar = (L2PcInstance)playable; + + if (activeChar.getKarma() > 0) + + { + activeChar.sendMessage("You cannot use the lucky coin now! Go burn your karma!"); + return; + } + + else if (activeChar.getPvpFlag() > 0) + + { + activeChar.sendMessage("You cannot use Lucky Coin while being flagged!"); + return; + } + + else if (activeChar.isInOlympiadMode()) + + { + activeChar.sendMessage("You cannot use the lucky coin in olympiad"); + return; + } + + else if (activeChar.inObserverMode()) + + { + activeChar.sendMessage("You cannot use lucky coin while observing an olympiad match!"); + return; + } + + else if (activeChar.isFestivalParticipant()) + + { + activeChar.sendMessage("You cannot use lucky coin while participating in a festival"); + return; + } + + else if (activeChar.isCastingNow()) + + { + activeChar.sendMessage("You cannot use the lucky coin while casting"); + return; + } + + else if (activeChar.isStunned()) + + { + activeChar.sendMessage("You cannot use the lucky coin while being stunned"); + return; + } + + else if (activeChar.isSleeping()) + + { + activeChar.sendMessage("You cannot use the lucky coin while sleeping"); + return; + } + + else if (activeChar.atEvent) + + { + activeChar.sendMessage("You cannot use the lucky coin while participating in an event!"); + return; + } + + else if (activeChar.isInJail()) + + { + activeChar.sendMessage("You cannot use the lucky coin while being in jail!"); + } + + else if (activeChar.getInventory().getItemByItemId(57).getCount() < 100000000) + + { + activeChar.sendMessage("You do not have 100kk adena to bet ! I am sorry! Go farm"); + return; + } + + /** Enough with the -beep-ing limits xD */ + + else + + { + InventoryUpdate iu = new InventoryUpdate(); + activeChar.getInventory().destroyItemByItemId("Adena", 57, 100000000, activeChar, activeChar.getTarget()); + + String bet = "You have now bet 100k adena! Let's see the outcome !"; + + switch (Rnd.get(5)) + + { + case 0 : + + activeChar.sendMessage(bet); + activeChar.sendMessage("Oops, you lost your money. You were not lucky!"); + activeChar.getInventory().destroyItemByItemId("Lucky Coin", Config.LUCKY_COIN_ID, 1, activeChar, activeChar.getTarget()); + activeChar.sendPacket(iu); + + break; + + case 1 : + + activeChar.sendMessage(bet); + activeChar.getInventory().addItem("Adena", 57, 100000000, activeChar, null); + activeChar.sendMessage("You either won or loose ! You get your precious adena back!"); + activeChar.getInventory().destroyItemByItemId("Lucky Coin", Config.LUCKY_COIN_ID, 1, activeChar, activeChar.getTarget()); + activeChar.sendPacket(iu); + + break; + + case 2 : + activeChar.sendMessage(bet); + activeChar.getInventory().addItem("Adena", 57, 500000000, activeChar, null); + activeChar.sendMessage("Holy crap! You won 500kk adena!"); + activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3)); + activeChar.getInventory().destroyItemByItemId("Lucky Coin", Config.LUCKY_COIN_ID, 1, activeChar, activeChar.getTarget()); + activeChar.sendPacket(iu); + + break; + + case 3 : + + activeChar.sendMessage(bet); + activeChar.getInventory().addItem("Adena", 57, 1000000000, activeChar, null); + activeChar.sendMessage("Holy crap! You won 1kkk adena!"); + activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3)); + activeChar.getInventory().destroyItemByItemId("Lucky Coin", Config.LUCKY_COIN_ID, 1, activeChar, activeChar.getTarget()); + activeChar.sendPacket(iu); + + break; + + case 4 : + + activeChar.sendMessage(bet); + activeChar.getInventory().destroyItemByItemId("Adena", 57, 100000000, activeChar, activeChar.getTarget()); + activeChar.sendMessage("Blame your bad luck! You lost another 100kk adena"); + + if (activeChar.getInventory().getItemByItemId(57).getCount() < 100000000) + { + activeChar.setPunishLevel(L2PcInstance.PunishLevel.JAIL, 15); + activeChar.sendMessage("Blame your bad luck ! You don't have to pay so you are going to jail for 15 minutes"); + } + + activeChar.getInventory().destroyItemByItemId("Lucky Coin", Config.LUCKY_COIN_ID, 1, activeChar, activeChar.getTarget()); + activeChar.sendPacket(iu); + + break; + + + } + } + } + + public int[] getItemIds() + + { + return ITEM_IDS; + } + +} Index: java/config/Customs.properties =================================================================== --- java/config/Customs.properties (revision 0) +++ java/config/Customs.properties (revision 0) @@ -0,0 +1,101 @@ #--------------------------------------------# # Vote Reward System Config # #-------------------------------------------# # Html Patch for Your Vote Site # Works with HopZone/HopZones/TopZone and other HopZone Like # Sample: VoteHtmlPatch = http://l2.hopzone.net/lineage2/moreinfo/RaidFightLowRatePvPServers/69262.html VotesRequiredForReward = 10 VoteReward1Count = 1000 VoteReward2Count = 1000 VoteReward1Id = 57 VoteReward2Id = 57 + +# --------------------------------------------------------------------------- +# Lucky Coin +# --------------------------------------------------------------------------- +# With this coin you bet 100kk adena . There are 4 cases : +# Case 1 : You get back the 100kk +# Case 2 : You lose another 100kk. If you don't have to pay you head to jail for 15 min +# Case 3 : You win 500kk +# Case 4 : You win 1kkk +# Just for fun xD +# Allow lucky coin? +EnableLuckyCoin = True + +# Set lucky coin's ID : +# Default : 6673 ( Festival Adena ) +LuckyCoinID = 6673 ** : NOTE : Tested on l2jinterlude BUT , I have added Gracia's punishment system which means that interlude users will get an error in this line : activeChar.setPunishLevel(L2PcInstance.PunishLevel.JAIL, 15); just change it to activeChar.setInJail(true, 15); As i said nothing too special. A friend of mine requested it and i thought it would be nice to share it with you Regards PS : Code fixed thx for the report
-
dn einai toso tromero na ta fixareis monos s 5-6 grammes code to ka8ena alla tespa... mono gia to walker iparxei config sto l2jinterlude (true - false - gm) opote nmz oti einai fixed alla egw panta to pernao ;)
-
logika dn 8a to kserei ! edw tou elega kapia pragmata gia ta stadia tis ergasias kai me koitage san ili8ios xD sto telos m leei kanto ligo aploika kai ta simperasata p 8a vgaleis na einai katanohta apo olous.. (logika katanohta gia auton 8a ennoouse)..
-
auto to ksero :) ekana install afto ton windows ! apla epidi autos p mas kanei texnologia einai indianos apo pc leei oti einai kalitero na ginei to test sto idio programa akrivws !
-
dn ta exo psaksei ola alla otan koitaksa sto software center dn vrika oute photoshop oute kapia alla progs me ta opia 8elw na doulepso telos panton afou vre8ike i lisi as mn to pedevoume allo
-
[Help]Gia Diafora Themata (Gracia Final)
vagos123 replied to MIMIS400's question in Request Server Development Help [Greek]
oso gia to 3 dokimase na clickareis sto name s kai na proxoriseis -
http://www.oasa.gr/ edw kati 8a vreis
-
to navicat htan paradigma xriazomai ta applications gia mia ergasia texnologias p 8a kano windows vs ubuntu eixa kanei kai sxetiko topic :) kai olo auto gt arketa programata dn iparxoun autousia gia ta linux :)
-
1000 efxaristo file m to dokimasa me to navicat kai einai coble... piga idiotites -> dikaiomata -> ektelesi efarmogis os programa kai meta anigma me wine kai egine coble!! kai pali thx! kapios mod as lock to topic
-
to exo kanei install to wine alla meta apo to site p kitaksa eixe san paradeigma to phtoshop cs4 kai elege na katevaso ena .dll arxeio kai na to valo sto system32 epita edine ena command.... etc ta kano kai ta ipolipa progs i prepei na grafo entoles? gt opote pigena na anikso ena .exe m to anige san compressed file
-
[help]Enchant problems
vagos123 replied to ScRaB4ever's question in Request Server Development Help [Greek]
na rotiso pou einai to provlima? stous perissoterous server p exo mpei etc einai.... -
[GR]Γεια σας παίδες.. Άκουσα ότι υπάρχει ένα πρόγραμμα για Ubuntu (linux) με το οποίο μπορώ να τρέξω τα applications των windows...Ισχύει αυτό? αν ναι, ξέρετε πού μπορώ να το βρώ γιατί στο software center δεν είχε κάτι... [ENG] Hello guys, i heard that there is a program for ubuntu linux with which i can run windows applications on ubuntu? does smthing like that exist? If yes, where can i find it? I searched in ubuntu software center but didn't find anything...
-
[help]Grade penalty
vagos123 replied to ScRaB4ever's question in Request Server Development Help [Greek]
oxi akrivws.. sto altsettings.properties psakse auto # Allows grade penalty GradePenalty = True kai vevea kanto false