Jump to content

•DarkStar•

Members
  • Posts

    819
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by •DarkStar•

  1. i am looking for an account on East Division from Gold 1 and up with some runes some skinns and have more than 80 champ
  2. Hello people i am trading my account on Lineage 2 Official Innova ( eu.4game.com ) for an account on league of legends My account has : Level 99 yul ghost sentinel with dual tank 91 level Items : R99 bow +6 damage up 300 attribute R99 top armor +4 full attribute R95 full set leather R99 necklase R95 jewels Istina shirt Talishman Mask +5% patk And many more And 97 level Iss enchanter with +9 sonatas If someone want to trade send me message or type here
  3. Hello i want a good account on League of Legends i am giving my account on Official Core ( eu.4game.com ) My account has Yul ghost sentinel 99 level with dual tank 91 level +6 amaranthine bow damage up 300 attribute and many items if someone want tell me here or send me message
  4. up Send me message and i will answer or type here
  5. Hello everybody i am selling my characters and items on core or Trade for an account on League of legends.. I am selling : Characters : 99 level Yul ghost sentinel with dual class 91 level tank 97 level Iss with +9 sonatas Items : +6 amaranthine bow + damage up 300 dark Eternal Light set +4 all 120 attribute Istina shirt Talishman Hunter Mask +5% patk R99 Necklace and R95 jewels Seraph light set +4/3/3/3/3 full 120 attribute Twilight heavy set And many other things
  6. βρήκα έναν κώδικα...αλλά δεν έχω όλες τις γραμμές του κώδικα στο pack... Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java (revision 331) +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java (working copy) @@ -212,6 +212,7 @@ break; } } + maxEnchantLevel = Config.ENCHANT_MAX_WEAPON_CRYSTAL; for (int scrollId : CRYSTAL_SCROLLS) { if (scroll.getItemId() == scrollId) @@ -221,6 +222,7 @@ break; } } + maxEnchantLevel = Config.ENCHANT_MAX_WEAPON_BLESSED; for (int scrollId : BLESSED_SCROLLS) { if (scroll.getItemId() == scrollId) @@ -241,6 +243,7 @@ break; } } + maxEnchantLevel = Config.ENCHANT_MAX_ARMOR_CRYSTAL; for (int scrollId : CRYSTAL_SCROLLS) { if (scroll.getItemId() == scrollId) @@ -249,6 +252,7 @@ break; } } + maxEnchantLevel = Config.ENCHANT_MAX_ARMOR_BLESSED; for (int scrollId : BLESSED_SCROLLS) { if (scroll.getItemId() == scrollId) @@ -269,6 +273,7 @@ break; } } + maxEnchantLevel = Config.ENCHANT_MAX_JEWERLY_CRYSTAL; for (int scrollId : CRYSTAL_SCROLLS) { if (scroll.getItemId() == scrollId) @@ -277,6 +282,7 @@ break; } } + maxEnchantLevel = Config.ENCHANT_MAX_JEWERLY_BLESSED; for (int scrollId : BLESSED_SCROLLS) { if (scroll.getItemId() == scrollId) @@ -290,24 +296,135 @@ if (item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX || (item.getItem().getBodyPart() == L2Item.SLOT_FULL_ARMOR && item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX_FULL)) chance = 100; + // Weapon if (item.getItem().getType2() == L2Item.TYPE2_WEAPON && item.getEnchantLevel() >= Config.ENCHANT_MAX_WEAPON) + for (int scrollId : ENCHANT_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); + return; + } + } + if (Config.ENCHANT_SCROLL_CRYSTAL_SYSTEM) { - activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); - return; + if (item.getItem().getType2() == L2Item.TYPE2_WEAPON && item.getEnchantLevel() >= Config.ENCHANT_MAX_WEAPON_CRYSTAL) + for (int scrollId : CRYSTAL_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); + return; + } + } } - + if (Config.ENCHANT_SCROLL_BLESSED_SYSTEM) + { + if (item.getItem().getType2() == L2Item.TYPE2_WEAPON && item.getEnchantLevel() >= Config.ENCHANT_MAX_WEAPON_BLESSED) + for (int scrollId : BLESSED_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); + return; + } + } + } + // Armor if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR && item.getEnchantLevel() >= Config.ENCHANT_MAX_ARMOR) + for (int scrollId : ENCHANT_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); + return; + } + } + if (Config.ENCHANT_SCROLL_CRYSTAL_SYSTEM) { - activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); - return; + if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR && item.getEnchantLevel() >= Config.ENCHANT_MAX_ARMOR_CRYSTAL) + for (int scrollId : CRYSTAL_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); + return; + } + } } - + if (Config.ENCHANT_SCROLL_BLESSED_SYSTEM) + { + if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR && item.getEnchantLevel() >= Config.ENCHANT_MAX_ARMOR_BLESSED) + for (int scrollId : BLESSED_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); + return; + } + } + } + // Jewerly if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY && item.getEnchantLevel() >= Config.ENCHANT_MAX_JEWELRY) + for (int scrollId : ENCHANT_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); + return; + } + } + if (Config.ENCHANT_SCROLL_CRYSTAL_SYSTEM) { - activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); - return; + if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY && item.getEnchantLevel() >= Config.ENCHANT_MAX_JEWERLY_CRYSTAL) + for (int scrollId : CRYSTAL_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); + return; + } + } } + if (Config.ENCHANT_SCROLL_BLESSED_SYSTEM) + { + if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY && item.getEnchantLevel() >= Config.ENCHANT_MAX_JEWERLY_BLESSED) + for (int scrollId : BLESSED_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); + return; + } + } + } + else if ((!Config.ENCHANT_SCROLL_BLESSED_SYSTEM) && (!Config.ENCHANT_SCROLL_CRYSTAL_SYSTEM)) + { + if (item.getItem().getType2() == L2Item.TYPE2_WEAPON && item.getEnchantLevel() >= Config.ENCHANT_MAX_WEAPON) + { + activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); + return; + } + } + else if ((!Config.ENCHANT_SCROLL_BLESSED_SYSTEM) && (!Config.ENCHANT_SCROLL_CRYSTAL_SYSTEM)) + { + if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR && item.getEnchantLevel() >= Config.ENCHANT_MAX_ARMOR) + { + activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); + return; + } + } + + else if ((!Config.ENCHANT_SCROLL_BLESSED_SYSTEM) && (!Config.ENCHANT_SCROLL_CRYSTAL_SYSTEM)) + { + if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY && item.getEnchantLevel() >= Config.ENCHANT_MAX_JEWELRY) + { + activeChar.sendMessage("You have been reached the maximum enchant. You cannot enchant more !"); + return; + } + } + if (Rnd.get(100) < chance) { synchronized(item)
  7. Έχω προσθέσει καινούργια custom scrolls στο acis...πως μπορώ να τους βάλω και MaxEnchant ?
  8. Που το περνάω αυτό;Σε L2jaCis + + if(Config.ONLINE_PLAYERS) + _voicedCommandHandler.registerVoicedCommandHandler(new Online());
  9. δες αυτο... http://prntscr.com/332xtj
  10. Έχω αυτά τα Errors εγώ.. http://prntscr.com/332uxe http://prntscr.com/332unf
  11. ναι αλλα με _characterList παλι δεν δουλευει...
  12. /* * 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 net.sf.l2j.gameserver.model.zone.type; import java.util.concurrent.Future; import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.model.actor.L2Character; import net.sf.l2j.gameserver.model.L2Skill; import net.sf.l2j.gameserver.model.actor.instance.L2MonsterInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.actor.L2Playable; import net.sf.l2j.gameserver.model.zone.L2ZoneType; import net.sf.l2j.gameserver.ThreadPoolManager; import net.sf.l2j.util.Rnd; /** * @author Strato * @author Elfocrash (for the correction) */ public class L2FlagZone extends L2ZoneType { int _skillId; private int _chance; private int _initialDelay; int _skillLvl; private int _reuse; private boolean _enabled; private String _target; private Future<?> _task; public L2FlagZone(int id) { super(id); _skillId = 1323; _skillLvl = 1; _chance = 100; _initialDelay = 0; _reuse = 30000; _enabled = true; _target = "pc"; } @Override public void setParameter(String name, String value) { if(name.equals("skillId")) { _skillId = Integer.parseInt(value); } else if(name.equals("skillLvl")) { _skillLvl = Integer.parseInt(value); } else if(name.equals("chance")) { _chance = Integer.parseInt(value); } else if(name.equals("initialDelay")) { _initialDelay = Integer.parseInt(value); } else if(name.equals("default_enabled")) { _enabled = Boolean.parseBoolean(value); } else if(name.equals("target")) { _target = String.valueOf(value); } else if(name.equals("reuse")) { _reuse = Integer.parseInt(value); } else { super.setParameter(name, value); } } @Override protected void onEnter(L2Character character) { if (character instanceof L2PcInstance) { // Set pvp flag ((L2PcInstance) character).setPvpFlag(1); ((L2PcInstance) character).sendMessage("You entered a Pvp Flag zone.Have fun!!!"); ((L2PcInstance) character).broadcastUserInfo(); if((character instanceof L2Playable && _target.equalsIgnoreCase("pc") || character instanceof L2PcInstance && _target.equalsIgnoreCase("pc_only") || character instanceof L2MonsterInstance && _target.equalsIgnoreCase("npc")) && _task == null) { _task = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new ApplySkill(), _initialDelay, _reuse); } } } @Override protected void onExit(L2Character character) { if (character instanceof L2PcInstance) { ((L2PcInstance) character).setPvpFlag(0); ((L2PcInstance) character).sendMessage("You left the Pvp Flag zone.BAAAAD!!"); ((L2PcInstance) character).broadcastUserInfo(); } if(_characterList.isEmpty() && _task != null) { _task.cancel(true); _task = null; } } public L2Skill getSkill() { return SkillTable.getInstance().getInfo(_skillId, _skillLvl); } public String getTargetType() { return _target; } public boolean isEnabled() { return _enabled; } public int getChance() { return _chance; } public void setZoneEnabled(boolean val) { _enabled = val; } class ApplySkill implements Runnable { @Override public void run() { if(isEnabled()) { for(L2Character temp : _characterList) { if(temp != null && !temp.isDead()) { if((temp instanceof L2Playable && getTargetType().equalsIgnoreCase("pc") || temp instanceof L2PcInstance && getTargetType().equalsIgnoreCase("pc_only") || temp instanceof L2MonsterInstance && getTargetType().equalsIgnoreCase("npc")) && Rnd.get(100) < getChance()) { L2Skill skill = null; if((skill=getSkill())==null){ System.out.println("ATTENTION: error on zone with id "+getId()); System.out.println("Skill "+_skillId+","+_skillLvl+" not present between skills"); }else skill.getEffects(temp, temp); } } } } } } @Override public void onDieInside(L2Character character) { } @Override public void onReviveInside(L2Character character) { onEnter(character); } } για δες μια ρε φιλε...
  13. Γεια σας ξανα μαγκες...Εχω αυτο το προβλημα στο java code...Ειναι το FlagZone για το aCis οπιος μπορει να με βοηθησει θα το εκτιμουσα. http://prntscr.com/31f8er http://prntscr.com/31fdc8
  14. Ευχαριστώ πολύ! -Solved -Lock it
  15. στα configs εννοείς στο config.java μέσω eclipse ή στο config.properties ;
  16. θα μπορούσες να το πεις καλύτερα...και όχι στα παπάρια μας...ο άλλος με ρώτησε και του απάντησα...!
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock