Jump to content

Tadas

Members
  • Posts

    27
  • Credits

  • Joined

  • Last visited

    Never
  • Feedback

    0%

About Tadas

Profile Information

  • Gender
    Not Telling

Tadas's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. the price should be around 40$
  2. i don't know prices so just email me with offers
  3. I'm selling my League of legends Account Nick - daggry LVL-30 2 Full Tier 3 Rune pages AD and AP: AD: MR +12, Dmg +15, Armor +13 AP: Magic pen +7.8, AP +15, MR +12, Armor +13 It has the fallowing champion: Ahri Alistar Amumu Ashe Darius Diana Dr.Mundo Draven Evelynn Ezreal Fizz Gangplank Garen Irelia Jax Jayce Katarina Kayle LeBlanc Lee Sin Maokai Master Yi Nasus Nidalee Nunu Olaf Pantheon Poppy Rengar Rumble Ryze Shaco Shyvana Sivir Soraka Talon Teemo Tristana Tryndamere Twisted fate Udyr Varus Vayne Vi Vladimir Xin Zhao Zed Skins: Unchained Alistar Vandal Jax Judgment Kayle Renegade Talon Write me with Offers to iTadziusi@gmail.com
  4. i can't find any guides so i asking in here !
  5. please help! and sorry for bad english
  6. Index javacoml2jserverConfig.java =================================================================== --- javacoml2jserverConfig.java (revision 4410) +++ javacoml2jserverConfig.java (working copy) @@ -676,6 +676,8 @@ public static String L2JMOD_MULTILANG_DEFAULT; public static boolean L2JMOD_MULTILANG_VOICED_ALLOW; public static boolean L2WALKER_PROTECTION; + public static int STORE_BUY_CURRENCY; + public static int STORE_SELL_CURRENCY; -------------------------------------------------- NPC Settings @@ -2285,6 +2287,8 @@ L2JMOD_MULTILANG_VOICED_ALLOW = Boolean.parseBoolean(L2JModSettings.getProperty(MultiLangVoiceCommand, True)); L2WALKER_PROTECTION = Boolean.parseBoolean(L2JModSettings.getProperty(L2WalkerProtection, False)); + STORE_BUY_CURRENCY = Integer.parseInt(L2JModSettings.getProperty(PrivateStoreBuyMoneda, 57)); + STORE_SELL_CURRENCY = Integer.parseInt(L2JModSettings.getProperty(PrivateStoreSellMoneda, 57)); } catch (Exception e) { Index javacoml2jservergameservermodelTradeList.java =================================================================== --- javacoml2jservergameservermodelTradeList.java (revision 4410) +++ javacoml2jservergameservermodelTradeList.java (working copy) @@ -802,9 +802,10 @@ slots++; } - if (totalPrice playerInventory.getAdena()) + if (totalPrice player.getBuyStoreCurrency()) { - player.sendPacket(new SystemMessage(SystemMessageId.YOU_NOT_ENOUGH_ADENA)); + final String name = ItemTable.getInstance().getTemplate(Config.STORE_BUY_CURRENCY).getName(); + player.sendMessage(You dont have enough +name); return 1; } @@ -823,12 +824,12 @@ Prepare inventory update packets final InventoryUpdate ownerIU = new InventoryUpdate(); final InventoryUpdate playerIU = new InventoryUpdate(); - - final L2ItemInstance adenaItem = playerInventory.getAdenaInstance(); - playerInventory.reduceAdena(PrivateStore, totalPrice, player, _owner); + final int moneda = Config.STORE_BUY_CURRENCY; + final L2ItemInstance adenaItem = playerInventory.getItemByItemId(moneda); + player.destroyItemByItemId(PrivateStore, moneda, totalPrice, _owner, true); playerIU.addItem(adenaItem); - ownerInventory.addAdena(PrivateStore, totalPrice, _owner, player); - ownerIU.addItem(ownerInventory.getAdenaInstance()); + ownerInventory.addItem(PrivateStore, moneda, totalPrice, _owner, player); + ownerIU.addItem(ownerInventory.getItemByItemId(moneda)); boolean ok = true; @@ -965,7 +966,7 @@ break; } - if (ownerInventory.getAdena() _totalPrice) + if (_owner.getSellStoreCurrency() _totalPrice) continue; Check if requested item is available for manipulation @@ -1043,11 +1044,12 @@ if (totalPrice ownerInventory.getAdena()) should not happens, just a precaution return false; - final L2ItemInstance adenaItem = ownerInventory.getAdenaInstance(); - ownerInventory.reduceAdena(PrivateStore, totalPrice, _owner, player); + final int moneda = Config.STORE_SELL_CURRENCY; + final L2ItemInstance adenaItem = ownerInventory.getItemByItemId(moneda); + ownerInventory.destroyItemByItemId(PrivateStore, moneda, totalPrice, _owner, player); ownerIU.addItem(adenaItem); - playerInventory.addAdena(PrivateStore, totalPrice, player, _owner); - playerIU.addItem(playerInventory.getAdenaInstance()); + playerInventory.addItem(PrivateStore, moneda, totalPrice, player, _owner); + playerIU.addItem(playerInventory.getItemByItemId(moneda)); } if (ok) Index javacoml2jservergameservermodelactorinstanceL2PcInstance.java =================================================================== --- javacoml2jservergameservermodelactorinstanceL2PcInstance.java (revision 4410) +++ javacoml2jservergameservermodelactorinstanceL2PcInstance.java (working copy) @@ -14889,4 +14889,18 @@ addSkill(SkillTable.getInstance().getInfo(id, nextLevel), true); } } + + public synchronized long getBuyStoreCurrency() + { + L2ItemInstance item = this.getInventory().getItemByItemId(Config.STORE_BUY_CURRENCY); + + return item == null 0 item.getCount(); + } + + public synchronized long getSellStoreCurrency() + { + L2ItemInstance item = this.getInventory().getItemByItemId(Config.STORE_SELL_CURRENCY); + + return item == null 0 item.getCount(); + } } Index javacoml2jservergameservermodelitemcontainerPcInventory.java =================================================================== --- javacoml2jservergameservermodelitemcontainerPcInventory.java (revision 4410) +++ javacoml2jservergameservermodelitemcontainerPcInventory.java (working copy) @@ -85,11 +85,14 @@ FastListL2ItemInstance list = FastList.newInstance(); for (L2ItemInstance item _items) { - if ((!allowAdena && item.getItemId() == 57)) + final int itemId = item.getItemId(); + if ((!allowAdena && itemId == 57)) continue; - if ((!allowAncientAdena && item.getItemId() == 5575)) + if ((!allowAncientAdena && itemId == 5575)) continue; - + if(itemId == Config.STORE_BUY_CURRENCY) + continue; + boolean isDuplicate = false; for (L2ItemInstance litem list) { Index javacoml2jservergameservernetworkclientpacketsSetPrivateStoreListBuy.java =================================================================== --- javacoml2jservergameservernetworkclientpacketsSetPrivateStoreListBuy.java (revision 4410) +++ javacoml2jservergameservernetworkclientpacketsSetPrivateStoreListBuy.java (working copy) @@ -140,7 +140,7 @@ } Check for available funds - if (totalCost player.getAdena()) + if (totalCost player.getBuyStoreCurrency()) { player.sendPacket(new PrivateStoreManageListBuy(player)); player.sendPacket(new SystemMessage(SystemMessageId.THE_PURCHASE_PRICE_IS_HIGHER_THAN_MONEY)); Index javacoml2jservergameservernetworkserverpacketsPrivateStoreListBuy.java =================================================================== --- javacoml2jservergameservernetworkserverpacketsPrivateStoreListBuy.java (revision 4410) +++ javacoml2jservergameservernetworkserverpacketsPrivateStoreListBuy.java (working copy) @@ -33,7 +33,7 @@ public PrivateStoreListBuy(L2PcInstance player, L2PcInstance storePlayer) { _objId = storePlayer.getObjectId(); - _playerAdena = player.getAdena(); + _playerAdena = player.getBuyStoreCurrency(); storePlayer.getSellList().updateItems(); Update SellList for case inventory content has changed _items = storePlayer.getBuyList().getAvailableItems(player.getInventory()); } Index javacoml2jservergameservernetworkserverpacketsPrivateStoreListSell.java =================================================================== --- javacoml2jservergameservernetworkserverpacketsPrivateStoreListSell.java (revision 4410) +++ javacoml2jservergameservernetworkserverpacketsPrivateStoreListSell.java (working copy) @@ -34,7 +34,7 @@ public PrivateStoreListSell(L2PcInstance player, L2PcInstance storePlayer) { _objId = storePlayer.getObjectId(); - _playerAdena = player.getAdena(); + _playerAdena = player.getSellStoreCurrency(); _items = storePlayer.getSellList().getItems(); _packageSale = storePlayer.getSellList().isPackaged(); } Index javacoml2jservergameservernetworkserverpacketsPrivateStoreManageListBuy.java =================================================================== --- javacoml2jservergameservernetworkserverpacketsPrivateStoreManageListBuy.java (revision 4410) +++ javacoml2jservergameservernetworkserverpacketsPrivateStoreManageListBuy.java (working copy) @@ -34,7 +34,7 @@ public PrivateStoreManageListBuy(L2PcInstance player) { _objId = player.getObjectId(); - _playerAdena = player.getAdena(); + _playerAdena = player.getBuyStoreCurrency(); _itemList = player.getInventory().getUniqueItems(false, true); _buyList = player.getBuyList().getItems(); } Index javacoml2jservergameservernetworkserverpacketsPrivateStoreManageListSell.java =================================================================== --- javacoml2jservergameservernetworkserverpacketsPrivateStoreManageListSell.java (revision 4410) +++ javacoml2jservergameservernetworkserverpacketsPrivateStoreManageListSell.java (working copy) @@ -42,7 +42,7 @@ public PrivateStoreManageListSell(L2PcInstance player, boolean isPackageSale) { _objId = player.getObjectId(); - _playerAdena = player.getAdena(); + _playerAdena = player.getSellStoreCurrency(); player.getSellList().updateItems(); _packageSale = isPackageSale; _itemList = player.getInventory().getAvailableItems(player.getSellList()); Index javaconfigl2jmods.properties =================================================================== --- javaconfigl2jmods.properties (revision 4410) +++ javaconfigl2jmods.properties (working copy) @@ -379,3 +379,14 @@ # Basic protection against L2Walker. # Default False L2WalkerProtection = False + +# --------------------------------------------------------------------------- +# Private Store BuySell - Moneda de cambio +# --------------------------------------------------------------------------- +# Elige que moneda quieres que se use como pago en los Private Store Buy (amarillos) +# Retail 57, Por Defecto 57 +PrivateStoreBuyMoneda = 57 + +# Elige que moneda quieres que se use como pago en los Private Store Sell (morados) +# Retail 57, Por Defecto 57 +PrivateStoreSellMoneda = 57 were i hawe to add this? into general.properties? and i hawe to add all tihis code o just this +# --------------------------------------------------------------------------- +# Private Store BuySell - Moneda de cambio +# --------------------------------------------------------------------------- +# Elige que moneda quieres que se use como pago en los Private Store Buy (amarillos) +# Retail 57, Por Defecto 57 +PrivateStoreBuyMoneda = 57 + +# Elige que moneda quieres que se use como pago en los Private Store Sell (morados) +# Retail 57, Por Defecto 57 +PrivateStoreSellMoneda = 57
  7. but that is a drop list chance? Like {12774, 6673, 100} that means npc who id 12774 drop festival adena with chance of 100% but i need were i can change amount of festival adena drop
  8. /* * 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 events.SquashEvent; import com.l2jserver.gameserver.instancemanager.QuestManager; import com.l2jserver.gameserver.model.L2Object; import com.l2jserver.gameserver.model.L2Skill; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.model.quest.QuestState; import com.l2jserver.gameserver.network.clientpackets.Say2; import com.l2jserver.gameserver.network.serverpackets.CreatureSay; import com.l2jserver.util.Rnd; /** * @author Gnacik */ public class SquashEvent extends Quest { private static final int MANAGER = 31860; private static final int NECTAR_SKILL = 2005; private static final int[] CHRONO_LIST = { 4202,5133,5817,7058,8350 }; private static final int[] SQUASH_LIST = { 12774,12775,12776, 12777,12778,12779, 13016,13017 }; private static final String[] _NOCHRONO_TEXT = { "You cannot kill me without Chrono", "Fuck You...", "Nice try...", "Tired ?", "Go go ! haha..." }; private static final String[] _CHRONO_TEXT = { "Arghh... Chrono weapon...", "My end is coming...", "Please leave me !", "Heeellpppp...", "Somebody help me please..." }; private static final String[] _NECTAR_TEXT = { "Yummy... Nectar...", "Plase give me more...", "Hmmm.. More.. I need more...", "I will like you more if you give me more...", "Hmmmmmmm...", "My favourite..." }; private static final int[][] DROPLIST = { { 12774, 6673, 100 }, { 12774, 1062, 50 }, { 12775, 1539, 100 }, { 12775, 1375, 70 }, { 12775, 1459, 50 }, { 12776, 1061, 100 }, { 12776, 1062, 70 }, { 12776, 1458, 50 }, { 12777, 1061, 100 }, { 12777, 1374, 50 }, { 12778, 1539, 100 }, { 12778, 6036, 70 }, { 12778, 1459, 40 }, { 12779, 6035, 70 }, { 12779, 1458, 50 }, { 13016, 1540, 100 }, { 13016, 1460, 40 }, { 13016, 5234, 20 }, { 13017, 1540, 100 }, { 13017, 20004, 40 }, { 13017, 1461, 20 }, { 13017, 5234, 10 } }; public String onAttack(L2Npc npc, L2PcInstance attacker, int damage, boolean isPet) { if (contains(SQUASH_LIST,npc.getNpcId())) { if(isPet) { noChronoText(npc); npc.setIsInvul(true); return null; } if(attacker.getActiveWeaponItem() != null && contains(CHRONO_LIST,attacker.getActiveWeaponItem().getItemId())) { ChronoText(npc); npc.setIsInvul(false); npc.getStatus().reduceHp(10, attacker); return null; } else { noChronoText(npc); npc.setIsInvul(true); return null; } } return super.onAttack(npc, attacker, damage, isPet); } public String onSkillSee(L2Npc npc, L2PcInstance caster, L2Skill skill, L2Object[] targets, boolean isPet) { if (contains(targets,npc) && contains(SQUASH_LIST,npc.getNpcId()) && (skill.getId() == NECTAR_SKILL)) { switch(npc.getNpcId()) { case 12774: randomSpawn(12775, 12776, npc, true); break; case 12777: randomSpawn(12778, 12779, npc, true); break; case 12775: randomSpawn(13016, npc, true); break; case 12778: randomSpawn(13017, npc, true); break; } } return super.onSkillSee(npc,caster,skill,targets,isPet); } public String onKill (L2Npc npc, L2PcInstance killer, boolean isPet) { dropItem(npc, killer); return super.onKill(npc, killer, isPet); } public String onSpawn(L2Npc npc) { npc.setIsImmobilized(true); npc.disableCoreAI(true); return null; } private static final void dropItem(L2Npc mob, L2PcInstance player) { final int npcId = mob.getNpcId(); final int chance = Rnd.get(100); for (int i = 0; i < DROPLIST.length; i++) { int[] drop = DROPLIST; if (npcId == drop[0]) { if (chance < drop[2]) { if(drop[1] > 20000) ((L2MonsterInstance)mob).dropItem(player, drop[1], 2); else ((L2MonsterInstance)mob).dropItem(player, drop[1], Rnd.get(2, 6)); continue; } } if (npcId < drop[0]) return; } } private void randomSpawn(int lower, int higher, L2Npc npc, boolean delete) { int _random = Rnd.get(100); if (_random < 10) spawnNext(lower, npc); else if(_random < 30) spawnNext(higher, npc); else nectarText(npc); } private void randomSpawn(int npcId, L2Npc npc, boolean delete) { if(Rnd.get(100) < 10) spawnNext(npcId, npc); else nectarText(npc); } private void ChronoText(L2Npc npc) { if(Rnd.get(100) < 20) npc.broadcastPacket(new CreatureSay(npc.getObjectId(), Say2.ALL, npc.getName(), _CHRONO_TEXT[Rnd.get(_CHRONO_TEXT.length)])); } private void noChronoText(L2Npc npc) { if(Rnd.get(100) < 20) npc.broadcastPacket(new CreatureSay(npc.getObjectId(), Say2.ALL, npc.getName(), _NOCHRONO_TEXT[Rnd.get(_NOCHRONO_TEXT.length)])); } private void nectarText(L2Npc npc) { if(Rnd.get(100) < 30) npc.broadcastPacket(new CreatureSay(npc.getObjectId(), Say2.ALL, npc.getName(), _NECTAR_TEXT[Rnd.get(_NECTAR_TEXT.length)])); } private void spawnNext(int npcId, L2Npc npc) { addSpawn(npcId, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), false, 60000); npc.deleteMe(); } public static <T> boolean contains(T[] array, T obj) { for (int i = 0; i < array.length; i++) { if (array == obj) { return true; } } return false; } public static boolean contains(int[] array, int obj) { for (int i = 0; i < array.length; i++) { if (array == obj) { return true; } } return false; } public SquashEvent(int questId, String name, String descr) { super(questId, name, descr); for (int mob : SQUASH_LIST) { addAttackId(mob); addKillId(mob); addSpawnId(mob); addSkillSeeId(mob); } addStartNpc(MANAGER); addFirstTalkId(MANAGER); addTalkId(MANAGER); addSpawn(MANAGER, 83077, 147910, -3471, 29412, false, 0); } @Override public String onFirstTalk(L2Npc npc, L2PcInstance player) { String htmltext = ""; QuestState st = player.getQuestState(getName()); if (st == null) { Quest q = QuestManager.getInstance().getQuest(getName()); st = q.newQuestState(player); } htmltext = npc.getNpcId() + ".htm"; return htmltext; } public static void main(String[] args) { new SquashEvent(-1,"SquashEvent","events"); } } Where can I change festival adena drop rate from squash?
  9. How to change private store currency from adenas to festival adenas?
×
×
  • Create New...