Jump to content

AlexHack

Members
  • Posts

    254
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by AlexHack

  1. ### Eclipse Workspace Patch 1.0#P elfobitchIndex: /gameserver/model/L2Attackable.java ===================================================================--- /gameserver/model/L2Attackable.java (revision 903) +++ /gameserver/model/L2Attackable.java (working copy) @@ -244,12 +244,22 @@ protected int _itemId; protected int _count; + private int _enchant = -1; + private int _chance = 0; + public RewardItem(int itemId, int count) { _itemId = itemId; _count = count; } + public RewardItem(int itemId, int count, int enchant, int chance) + { + this(itemId, count); + _enchant = enchant; + _chance = chance; + } + public int getItemId() { return _itemId; @@ -259,6 +269,9 @@ { return _count; } + + public int getEnchant() { return _enchant; } + public int getEnchantChance() { return _chance; } } /**@@ -1560,7 +1573,7 @@ } if(itemCount > 0) - return new RewardItem(drop.getItemId(), itemCount); + return new RewardItem(drop.getItemId(), itemCount, drop.getEnchant(), drop.getEnchantChance()); else if(itemCount == 0 && Config.DEBUG) { _log.fine("Roll produced 0 items to drop..."); @@ -1845,7 +1858,7 @@ } if(itemCount > 0) - return new RewardItem(drop.getItemId(), itemCount); + return new RewardItem(drop.getItemId(), itemCount, drop.getEnchant(), drop.getEnchantChance()); else if(itemCount == 0 && Config.DEBUG) { _log.fine("Roll produced 0 items to drop..."); @@ -2503,6 +2516,16 @@ // Init the dropped L2ItemInstance and add it in the world as a visible object at the position where mob was last * */ ditem = ItemTable.getInstance().createItem("Loot", item.getItemId(), item.getCount(), mainDamageDealer, this); ditem.getDropProtection().protect(mainDamageDealer); + if(item.getEnchant() > 0) + { + if(ditem.getItem().getType1() == L2Item.TYPE1_WEAPON_RING_EARRING_NECKLACE+ || ditem.getItem().getType1() == L2Item.TYPE1_SHIELD_ARMOR) + { + double chance = Rnd.get(1, 100); + if(chance <= item.getEnchantChance()) + ditem.setEnchantLevel(item.getEnchant()); + } + } ditem.dropMe(this, newX, newY, newZ); // Add drop to auto destroy item taskIndex: /gameserver/datatables/sql/NpcTable.java =================================================================== --- gameserver/head-src/com/l2jfrozen/gameserver/datatables/sql/NpcTable.java (revision 903) +++ gameserver/head-src/com/l2jfrozen/gameserver/datatables/sql/NpcTable.java (working copy) @@ -247,7 +247,7 @@ { statement = con.prepareStatement("SELECT " + L2DatabaseFactory.getInstance().safetyString(new String[] { - "mobId", "itemId", "min", "max", "category", "chance" + "mobId", "itemId", "min", "max", "category", "chance", "enchant", "enchantChance" }) + " FROM custom_droplist ORDER BY mobId, chance DESC"); ResultSet dropData = statement.executeQuery(); @@ -270,6 +270,8 @@ dropDat.setMinDrop(dropData.getInt("min")); dropDat.setMaxDrop(dropData.getInt("max")); dropDat.setChance(dropData.getInt("chance")); + dropDat.setEnchant(dropData.getInt("enchant")); + dropDat.setEnchantChance(dropData.getInt("enchantChance")); int category = dropData.getInt("category"); @@ -295,7 +297,7 @@ { statement = con.prepareStatement("SELECT " + L2DatabaseFactory.getInstance().safetyString(new String[] { - "mobId", "itemId", "min", "max", "category", "chance" + "mobId", "itemId", "min", "max", "category", "chance", "enchant", "enchantChance" }) + " FROM droplist ORDER BY mobId, chance DESC"); ResultSet dropData = statement.executeQuery(); L2DropData dropDat = null; @@ -319,6 +321,8 @@ dropDat.setMinDrop(dropData.getInt("min")); dropDat.setMaxDrop(dropData.getInt("max")); dropDat.setChance(dropData.getInt("chance")); + dropDat.setEnchant(dropData.getInt("enchant")); + dropDat.setEnchantChance(dropData.getInt("enchantChance")); int category = dropData.getInt("category"); Index: /gameserver/script/faenor/FaenorInterface.java =================================================================== ---/gameserver/script/faenor/FaenorInterface.java (revision 903)+++ gameserver/head-src/com/l2jfrozen/gameserver/script/faenor/FaenorInterface.java (working copy) @@ -82,6 +82,27 @@ addDrop(npc, drop, false); } + public void addQuestDrop(int npcID, int itemID, int min, int max, int chance, String questID, String[] states, + int enchant, int enchantChance) + { + L2NpcTemplate npc = npcTable.getTemplate(npcID); + if (npc == null) + { + _log.info("FeanorInterface: Npc "+npcID+" is null.."); + return; + } + L2DropData drop = new L2DropData(); + drop.setItemId(itemID); + drop.setMinDrop(min); + drop.setMaxDrop(max); + drop.setEnchant(enchant); + drop.setEnchantChance(enchantChance); + drop.setChance(chance); + drop.setQuestID(questID); + drop.addStates(states); + addDrop(npc, drop, false); + } + /** * Adds a new Drop to an NPC *@@ -106,7 +127,31 @@ * addDrop(npc, drop, sweep); * } * + * + public void addDrop(int npcID, int itemID, int min, int max, boolean sweep, int chance,+ int enchant, int enchantChance) throws NullPointerException * + { * + L2NpcTemplate npc = npcTable.getTemplate(npcID); * + if (npc == null) * + { * + if (Config.DEBUG) * + { * + _log.warning("Npc doesnt Exist"); * + } * + throw new NullPointerException(); * + } * + L2DropData drop = new L2DropData(); * + drop.setItemId(itemID); * + drop.setMinDrop(min); * + drop.setMaxDrop(max); * + drop.setChance(chance); * + drop.setEnchant(enchant); * + drop.setEnchantChance(enchantChance); * + * + addDrop(npc, drop, sweep); * + } * + /** * Adds a new drop to an NPC. If the drop is sweep, it adds it to the NPC's Sweep category If the drop is non-sweep, * it creates a new category for this drop. * Index: /gameserver/handler/admincommandhandlers/AdminEditNpc.java * =================================================================== * --- /gameserver/handler/admincommandhandlers/AdminEditNpc.java * (revision 903)+++ * /gameserver/handler/admincommandhandlers/AdminEditNpc.java * (working copy) * @@ -407,7 +407,7 @@ * e.printStackTrace(); * } * * } * - else if(st.countTokens() == 6) * + else if(st.countTokens() == 8) * { * try * { * @@ -417,8 +417,10 @@ * int min = Integer.parseInt(st.nextToken()); * int max = Integer.parseInt(st.nextToken()); * int chance = Integer.parseInt(st.nextToken()); * + int enchant = Integer.parseInt(st.nextToken()); * + int enchantChance = Integer.parseInt(st.nextToken()); * - updateDropData(activeChar, npcId, itemId, min, max, category, chance); * + updateDropData(activeChar, npcId, itemId, min, max, category, chance, enchant, enchantChance); * } * catch(Exception e) * {@@ -430,7 +432,7 @@ } else * { * - activeChar.sendMessage("Usage: //edit_drop <npc_id> <item_id> <category> [<min> <max> <chance>]"); * + activeChar.sendMessage("Usage: //edit_drop <npc_id> <item_id> <category> [<min> <max> <chance> <enchant> <enchantChance>]"); * } st = null; * @@ -440,7 +442,7 @@ * if(Config.ENABLE_ALL_EXCEPTIONS) * e.printStackTrace(); * - activeChar.sendMessage("Usage: //edit_drop <npc_id> <item_id> <category> [<min> <max> <chance>]"); * + activeChar.sendMessage("Usage: //edit_drop <npc_id> <item_id> <category> [<min> <max> <chance> <enchant> <enchantChance>]"); * } * } else if(command.startsWith("admin_add_drop ")) * @@ -474,7 +476,7 @@ * npcData = null; * } * } * - else if(st.countTokens() == 6) * + else if(st.countTokens() == 8) * { * try * { * @@ -484,8 +486,10 @@ * int min = Integer.parseInt(st.nextToken()); * int max = Integer.parseInt(st.nextToken()); * int chance = Integer.parseInt(st.nextToken()); * + int enchant = Integer.parseInt(st.nextToken()); * + int enchantChance = Integer.parseInt(st.nextToken()); * - addDropData(activeChar, npcId, itemId, min, max, category, chance); * + addDropData(activeChar, npcId, itemId, min, max, category, chance, enchant, enchantChance); * } * catch(Exception e) * { * @@ -497,7 +501,7 @@ * } * else * { * - activeChar.sendMessage("Usage: //add_drop <npc_id> [<item_id> <category> <min> <max> <chance>]"); * + activeChar.sendMessage("Usage: //add_drop <npc_id> [<item_id> <category> <min> <max> <chance> <enchant> <enchantChance>]"); * } st = null; * @@ -507,7 +511,7 @@ * if(Config.ENABLE_ALL_EXCEPTIONS) * e.printStackTrace(); * - activeChar.sendMessage("Usage: //add_drop <npc_id> [<item_id> <category> <min> <max> <chance>]"); * + activeChar.sendMessage("Usage: //add_drop <npc_id> [<item_id> <category> <min> <max> <chance> <enchant> <enchantChance>]"); * } * } * else if(command.startsWith("admin_del_drop ")) * @@ -1323,7 +1327,7 @@ * { * con = L2DatabaseFactory.getInstance().getConnection(false); * - PreparedStatement statement = con.prepareStatement("SELECT mobId, itemId, min, max, category, chance FROM droplist WHERE mobId=" + npcId + " AND itemId=" + itemId + " AND category=" + category); * + PreparedStatement statement = con.prepareStatement("SELECT mobId, itemId, min, max, category, chance, enchant, enchantChance FROM droplist WHERE mobId=" + npcId + " AND itemId=" + itemId + " AND category=" + category); * ResultSet dropData = statement.executeQuery(); * * NpcHtmlMessage adminReply = new NpcHtmlMessage(5); * @@ -1340,9 +1344,11 @@ * replyMSG.append("<tr><td>MIN(" + dropData.getInt("min") + ")</td><td><edit var=\"min\" width=80></td></tr>"); * replyMSG.append("<tr><td>MAX(" + dropData.getInt("max") + ")</td><td><edit var=\"max\" width=80></td></tr>"); * replyMSG.append("<tr><td>CHANCE(" + dropData.getInt("chance") + ")</td><td><edit var=\"chance\" width=80></td></tr>"); * + replyMSG.append("<tr><td>ENC-VALUE(" + dropData.getInt("enchant") + ")</td><td><edit var=\"enchant\" width=80></td></tr>"); * + replyMSG.append("<tr><td>ENC-CHANCE(" + dropData.getInt("enchantChance") + ")</td><td><edit var=\"enchantChance\" width=80></td></tr>"); * replyMSG.append("</table>"); * replyMSG.append("<center>"); * - replyMSG.append("<button value=\"Save Modify\" action=\"bypass -h admin_edit_drop " + npcId + " " + itemId + " " + category + " $min $max $chance\" width=100 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">"); * + replyMSG.append("<button value=\"Save Modify\" action=\"bypass -h admin_edit_drop " + npcId + " " + itemId + " " + category + " $min $max $chance $enchant $enchantChance\" width=100 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">"); * replyMSG.append("<br><button value=\"DropList\" action=\"bypass -h admin_show_droplist " + dropData.getInt("mobId") + "\" width=100 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">"); * replyMSG.append("</center>"); * } * @@ -1383,9 +1389,11 @@ * replyMSG.append("<tr><td>MAX</td><td><edit var=\"max\" width=80></td></tr>"); * replyMSG.append("<tr><td>CATEGORY(sweep=-1)</td><td><edit var=\"category\" width=80></td></tr>"); * replyMSG.append("<tr><td>CHANCE(0-1000000)</td><td><edit var=\"chance\" width=80></td></tr>"); * + replyMSG.append("<tr><td>ENC-VALUE(0-65535)</td><td><edit var=\"enchant\" width=80></td></tr>"); * + replyMSG.append("<tr><td>ENC-CHANCE(0-100)</td><td><edit var=\"enchantChance\" width=80></td></tr>"); * replyMSG.append("</table>"); * replyMSG.append("<center>"); * - replyMSG.append("<button value=\"SAVE\" action=\"bypass -h admin_add_drop " + npcData.npcId + " $itemId $category $min $max $chance\" width=100 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">"); * + replyMSG.append("<button value=\"SAVE\" action=\"bypass -h admin_add_drop " + npcData.npcId + " $itemId $category $min $max $chance $enchant $enchantChance\" width=100 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">"); * replyMSG.append("<br><button value=\"DropList\" action=\"bypass -h admin_show_droplist " + npcData.npcId + "\" width=100 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">"); * replyMSG.append("</center>"); replyMSG.append("</body></html>"); * @@ -1397,7 +1405,7 @@ * replyMSG = null; * } * - private void updateDropData(L2PcInstance activeChar, int npcId, int itemId, int min, int max, int category, int chance) * + private void updateDropData(L2PcInstance activeChar, int npcId, int itemId, int min, int max, int category, int chance, int enchant, int enchantChance) * { * Connection con = null; * @@ -1405,13 +1413,15 @@ * } } } } } i Delete the Patch cause to do not advertise another work ! Mporei kapoios na voi8isi an exei kapoios to swsto
  2. paw na kanw compile to hi5 kai mou leei oti prepei na valw to java 8 kanw egkatastasi kai pali leei oti den tin exw egkatastisi gt?
  3. maybe you can upload sql faction server..
  4. An mporeis kane... se ena mob na mporeis na valeis pola weapon <px.san pack>kai na einai ++ Dynasty Weapon +17 Dynasty Weapon +12 kapws etsi na einai sto teras.... 2.An mporeis kane ka8e enchant scroll na exei diko tou rate px S 75% S80 70% S84 65%.. 3.kane ta trade stous new player na 8elei 1 mera perasei Gia na mporoun na Kanoun trade.. Exw ki alla an 8es Aplos pes mou...
  5. <item id="486" type="Armor" name="Tattoo of Fire"> <set name="icon" val="icon.weapon_voodoo_doll_i00" /> <set name="default_action" val="equip" /> <set name="armor_type" val="light" /> <set name="bodypart" val="underwear" /> <set name="immediate_effect" val="1" /> <set name="crystal_count" val="276" /> <set name="crystal_type" val="s" /> <set name="material" val="dyestuff" /> <set name="weight" val="4050" /> <set name="price" val="117000" /> <set name="enchant_enabled" val="1" /> <for> <add order="0x30" stat="WIT" val="1" /> <add order="0x30" stat="DEX" val="1" /> <enchant order="0x0C" stat="pDef" val="0" /> </for> </item> Vale auto sta item 00400-00499 Katarxin ti chronical exeis auto einai gia h5 kai freya. ???
  6. (GR)poios mporei na to kanei mono enas na pernei ta reward otan kanei vote. px na pataei sto game .reward.
  7. you can make it for freya plz!
  8. Den katalava dikse mia eikona an mporeis!
  9. thelw na kanw ena kainourgio buff gia p.def kai m.def, alla otan tha to kanw sto char na feugei to magic barrier kai to shield to buff pws ginete ?/?? freya
  10. Exei edw mesa tetoio code.psakse kai tha tov vreis Multifuction legete
  11. Nice But ,What Is this ???
  12. I make it, solvet!! {GR}kai gia akoma mia fora to ekana monos an perimena voi8eia apo sas..ton allon xrono kai an..telos pantwn euxaristw pou asxoli8ikate. Locket topic
  13. [pre]/* * 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */ /* * 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */ package com.l2jserver.gameserver.model.zone.type; import java.io.File; import java.io.FileInputStream; import java.util.ArrayList; import java.util.List; import java.util.Properties; import javolution.util.FastList; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.datatables.SkillTable; import com.l2jserver.gameserver.model.L2ItemInstance; import com.l2jserver.gameserver.model.L2Skill; import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.L2Summon; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.itemcontainer.PcInventory; import com.l2jserver.gameserver.model.zone.L2SpawnZone; import com.l2jserver.util.Rnd; /** * * @author Wyatt * @version 1.2 * */ public class L2MultiFunctionZone extends L2SpawnZone { public L2MultiFunctionZone(int id) { super(id); loadConfigs(); } public static boolean pvp_enabled, restart_zone, store_zone, logout_zone, revive_noblesse, revive_heal, revive, remove_buffs, remove_pets, give_noblesse; static int radius, enchant, revive_delay; static int[][] spawn_loc; L2Skill noblesse = SkillTable.getInstance().getInfo(1323, 1); private static List<String> items = new FastList<String>(); private static List<String> grades, classes = new FastList<String>(); public static List<int[]> rewards; static String[] gradeNames = {"","D","C","B","A","S","S80","S84"}; @Override protected void onEnter(L2Character character) { character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, true); character.setInsideZone(L2Character.ZONE_MULTIFUNCTION, true); if(!store_zone) character.setInsideZone(L2Character.ZONE_NOSTORE, true); if (character instanceof L2PcInstance) { L2PcInstance activeChar = ((L2PcInstance) character); if(classes != null && classes.contains(""+activeChar.getClassId().getId())) { activeChar.teleToLocation(83597,147888,-3405); activeChar.sendMessage("Your class is not allowed in the MultiFunction zone."); return; } for(L2ItemInstance o : activeChar.getInventory()._items) { if(o.isEquipable() && o.isEquipped() && !checkItem(o)) { int slot = activeChar.getInventory().getSlotFromItem(o); activeChar.getInventory().unEquipItemInBodySlot(slot); activeChar.sendMessage(o.getName()+" unequiped because is not allowed inside this zone."); } } activeChar.sendMessage("You entered in a MultiFunction zone."); clear(activeChar); if(give_noblesse) noblesse.getEffects(activeChar, activeChar); if(pvp_enabled && activeChar.getPvpFlag() == 0) activeChar.updatePvPFlag(1); } } @Override protected void onExit(L2Character character) { character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, false); character.setInsideZone(L2Character.ZONE_MULTIFUNCTION, false); if(!store_zone) character.setInsideZone(L2Character.ZONE_NOSTORE, false); if (character instanceof L2PcInstance) { L2PcInstance activeChar = ((L2PcInstance) character); activeChar.sendMessage("You left from a MultiFunction zone."); if(pvp_enabled) activeChar.stopPvPFlag(); } } @Override public void onDieInside(final L2Character character) { if (character instanceof L2PcInstance) { final L2PcInstance activeChar = ((L2PcInstance) character); if(revive) { ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() { @Override public void run() { activeChar.doRevive(); heal(activeChar); int[] loc = spawn_loc[Rnd.get(spawn_loc.length)]; activeChar.teleToLocation(loc[0]+Rnd.get(-radius,radius), loc[1]+Rnd.get(-radius,radius), loc[2]); } },revive_delay*1000); } } } @Override public void onReviveInside(L2Character character) { if (character instanceof L2PcInstance) { L2PcInstance activeChar = ((L2PcInstance) character); if(revive_noblesse) noblesse.getEffects(activeChar, activeChar); if(revive_heal) heal(activeChar); } } private void clear (L2PcInstance player) { if(remove_buffs) { player.stopAllEffectsExceptThoseThatLastThroughDeath(); if(remove_pets) { L2Summon pet = player.getPet(); if(pet!= null) { pet.stopAllEffectsExceptThoseThatLastThroughDeath(); pet.unSummon(player); } } } else { if(remove_pets) { L2Summon pet = player.getPet(); if(pet!= null) { pet.unSummon(player); } } } } static void heal(L2PcInstance activeChar) { activeChar.setCurrentHp(activeChar.getMaxHp()); activeChar.setCurrentCp(activeChar.getMaxCp()); activeChar.setCurrentMp(activeChar.getMaxMp()); } public static void givereward(L2PcInstance player) { if(player.isInsideZone(L2Character.ZONE_MULTIFUNCTION)) { for (int[] reward : rewards) { PcInventory inv = player.getInventory(); inv.addItem("Custom Reward", reward[0], reward[1], player, player); } } } public static boolean checkItem (L2ItemInstance item) { int o = item.getItem().getCrystalType(); int e = item.getEnchantLevel(); if(enchant != 0 && e >= enchant) { return false; } if(grades.contains(gradeNames[o])) return false; if(items != null && items.contains(""+item.getItemId())) return false; return true; } private static void loadConfigs() { try { Properties prop = new Properties(); prop.load(new FileInputStream(new File("./config/MultiFunctionZone.properties"))); pvp_enabled = Boolean.parseBoolean(prop.getProperty("EnablePvP", "False")); spawn_loc = parseItemsList(prop.getProperty("SpawnLoc", "150111,144740,-12248")); revive_delay = Integer.parseInt(prop.getProperty("ReviveDelay", "10")); if(revive_delay != 0) { revive = true; } give_noblesse = Boolean.parseBoolean(prop.getProperty("GiveNoblesse", "False")); String[] propertySplit = prop.getProperty("Items", "").split(","); if (propertySplit.length != 0) { for(String i : propertySplit) { items.add(i); } } propertySplit = prop.getProperty("Grades", "").split(","); if (propertySplit.length != 0) { for(String i : propertySplit) { if(i.equals("D") || i.equals("C") || i.equals("B") || i.equals("A") || i.equals("S") || i.equals("S80") || i.equals("S84")) grades.add(i); } } propertySplit = prop.getProperty("Classes", "").split(","); if (propertySplit.length != 0) { for(String i : propertySplit) { classes.add(i); } } radius = Integer.parseInt(prop.getProperty("RespawnRadius", "500")); enchant = Integer.parseInt(prop.getProperty("Enchant", "0")); remove_buffs = Boolean.parseBoolean(prop.getProperty("RemoveBuffs", "False")); remove_pets = Boolean.parseBoolean(prop.getProperty("RemovePets", "False")); restart_zone = Boolean.parseBoolean(prop.getProperty("NoRestartZone", "False")); store_zone = Boolean.parseBoolean(prop.getProperty("NoStoreZone", "False")); logout_zone = Boolean.parseBoolean(prop.getProperty("NoLogoutZone", "False")); revive_noblesse = Boolean.parseBoolean(prop.getProperty("ReviveNoblesse", "False")); revive_heal = Boolean.parseBoolean(prop.getProperty("ReviveHeal", "False")); rewards = new ArrayList<int[]>(); propertySplit = prop.getProperty("Rewards", "57,100000").split(";"); for (String reward : propertySplit) { String[] rewardSplit = reward.split(","); if (rewardSplit.length == 2) { try { rewards.add(new int[]{Integer.parseInt(rewardSplit[0]), Integer.parseInt(rewardSplit[1])}); } catch (NumberFormatException nfe) { } } } } catch(Exception e) { e.printStackTrace(); } } private static int[][] parseItemsList(String line) { final String[] propertySplit = line.split(";"); if (propertySplit.length == 0) return null; int i = 0; String[] valueSplit; final int[][] result = new int[propertySplit.length][]; for (String value : propertySplit) { valueSplit = value.split(","); if (valueSplit.length != 3) { return null; } result = new int[3]; try { result[0] = Integer.parseInt(valueSplit[0]); } catch (NumberFormatException e) { return null; } try { result[1] = Integer.parseInt(valueSplit[1]); } catch (NumberFormatException e) { return null; } try { result[2] = Integer.parseInt(valueSplit[2]); } catch (NumberFormatException e) { return null; } i++; } return result; } }[/pre] Error >>>>> Can Help Someone..
  14. pws mporw na kanw na min mporoun va valoun allo weapon panw stin maxi..
  15. mesa sto sql re file ta perases.. mipws den exoun idio id ta item pou evales me to sql den kserw ti na pw..
  16. anyone can make it for freya!
  17. Can help me someone with teamviewer.....
  18. Yes I Have Ideas No Party IN Zone Differently name karma =Jail Pk = Jail no chat Another Race
  19. man i dont undertand what you say Chronical Freya >>http://pastebin.com/AP5jA3MP
  20. Anyone help plzz
  21. Nice Share.! Wrong Post http://maxcheaters.com/forum/index.php?board=61.0
  22. Freya Chroncle http://s017.radikal.ru/i402/1210/49/876fcb347fdb.jpg http://s002.radikal.ru/i200/1210/ce/a05c70a91d62.png
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..