Jump to content
  • 0

MySuperShop!


psomas21

Question

44400 Epic MetalStorm Breastplate Heavy Armor a,Armadura completa usada por Fighters. Peito da armadura Epic MetalStorm Heavy.\0 -1 4 4 66000 66001 66002 66003 a,Maximum CP +1035, CP recovery speed is increased by 40%. There is a 10% probability that magic defense power is increased by 5% and critical damage is decreased by 3 if the damage inflicted by PC is more than 50. \0 0 0 a, 0 0 0 0 0 0 0 0 0 6 a,When all set items are enchanted by 6 or higher, P. Def. and MP regeneration rate will increase. Set By MarucaMetal - L2JBrasil\0 1

44401 Epic MetalStorm Gloves Heavy Armor a,Luvas da armadura Epic MetalStorm Heavy.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

44402 Epic MetalStorm Boots Heavy Armor a,Botas da armadura Epic MetalStorm Heavy.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

44403 Epic MetalStorm Helmet Heavy Armor a,Capacete da armadura Epic MetalStorm Heavy.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

44404 Epic MetalStorm Lether Light Armor a,Armadura completa usada por Fighters. Peito da armadura Epic MetalStorm Light.\0 -1 4 4 66004 66005 66006 66007 a,Maximum CP +1035, CP recover speed is increased by 40%. There is a 10% probability that evasion is increased by 2 and critical damage is decreased by 86 if the damage inflicted by PC is more than 50. \0 0 0 a, 0 0 0 0 0 0 0 0 0 6 a,When all set items are enchanted by 6 or higher, M. Def. and Evasion will increase. Set By MarucaMetal - L2JBrasil\0 1

44405 Epic MetalStorm Gloves Light Armor a,Luvas da armadura Epic MetalStorm Light.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

44406 Epic MetalStorm Boots Light Armor a,Botas da armadura Epic MetalStorm Light.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

44407 Epic MetalStorm Helmet Light Armor a,Capacete da armadura Epic MetalStorm Light.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

44408 Epic MetalStorm Tunic Robe Armor a,Armadura completa usada por Magos. Peito da armadura Epic MetalStorm Robe.\0 -1 4 4 66008 66009 66010 66011 a,Maximum CP +1035, CP recovery speed is increased by 40%. There is a 10% probability that Speed is increased by 10 and defense power is increased by 5% if the damage inflicted by PC is more than 50. \0 0 0 a, 0 0 0 0 0 0 0 0 0 6 a,When all set items are enchanted by 6 or higher, P. Def. and Weight Gauge will increase. Set By MarucaMetal - L2JBrasil\0 1

44409 Epic MetalStorm Gloves Robe Armor a,Luvas da armadura Epic MetalStorm Robe.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

44410 Epic MetalStorm Boots Robe Armor a,Botas da armadura Epic MetalStorm Robe.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

44411 Epic MetalStorm Helmet Robe Armor a,Capacete da armadura Epic MetalStorm Robe.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

15138 Green Lantern Cape CON e DEX a,Green Lantern Cape gives you a great power of CON e DEX.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a,Green Lantern Cape Custom By MarucaMetal - L2JBrasil.\0 1

19420 Ice Breast Plate Heavy a,Set Heavy com alta Resistencia usados em Fighter\0 -1 5 5 19420 19421 19422 19423 19424 a,STR + 2, Increases CP + 232, Maximum HP +1500, Atk.Dmg 15%, Atk.Spd 5%, M.Def/P.Def 12%.\0 1 1 0 a,Shield defense rate is increased.\0 0 0 0 0 0 0 0 0 0 6 a,When all set items are enchanted by 6 or higher, P. Def. and MP regeneration rates will increase.\0 1

19421 Ice Gaiter a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

19422 Ice Helmet a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

19423 Ice Gauntlet Heavy Armor a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

19424 Ice Boots Heavy Armor a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

19425 Ice Leather Armor Light a,Full body armor.\0 -1 4 4 19425 19426 19427 19422 a,DEX+2, STR+1, CON-2, Atk. Spd./P. Atk, +4%, Max MP 289, and weight limit +5759.\0 0 0 a, 0 0 0 0 0 0 0 0 0 6 a,When all set items are enchanted by 6 or higher, M. Def. and Evasion will increase.\0 1

19426 Ice Leather Gloves Light a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

19427 Ice Leather Boots Light a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

19428 Ice Robe Armor Robe a,Full body armor.\0 -1 4 4 19428 19429 19430 19422 a,WIT+2, INT+1, MEN-2, Magic attack 15%, Speed +8, magic cancel rate -60%, increase resistance to stun by 50%, and weight limit +5759.\0 0 0 a, 0 0 0 0 0 0 0 0 0 6 a,When all set items are enchanted by 6 or higher, P. Def. and Weight Gauge will increase.\0 1

19429 Ice Gloves Robe a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

19430 Ice Boots Robe a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

40002 Anel do Milenio L2ColdBlood a,<Soul Crystal Enhancement>\\n Increases Max HP by 25%.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

40003 Olho do Milenio L2ColdBlood a,<Soul Crystal Enhancement>\\n Evasion increases when HP drops below 60%.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

40004 Enigma do Milenio L2ColdBlood a,<Soul Crystal Enhancement>\\n Increases Atk. Spd when HP becomes 60% or lower.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

777791 Thunder Slayer a,A thunder slayer made my Thor the god of thunder himself.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

775581 Thunder Bow a,A thunder bow made my Thor the god of thunder himself.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

775582 Thunder Sword a,A thunder sword made my Thor the god of thunder himself.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

775583 Thunder Axe a,A thunder axe made my Thor the god of thunder himself.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

775584 Thunder Dagger a,A thunder dagger made my Thor the god of thunder himself.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

775585 Thunder Duals a,A thunder duals made my Thor the god of thunder himself.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

775586 Thunder Pole a,A thunder pole made my Thor the god of thunder himself.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

775587 Thunder Mace a,A thunder mace made my Thor the god of thunder himself.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

775588 Thunder Fists a,A thunder fists made my Thor the god of thunder himself.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

775589 Thunder Hammer a,A thunder hammer made my Thor the god of thunder himself.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

37070 FireFlare Armor Power of The17Heroes a,Only fighters at their 3rd class can wear it.\0 -1 5 5 37070 37071 37074 37072 37073 a,TK-Master's Legendary Armor, The Best Armor Around (For Fighters Only). DEX+2, STR+2, CON+2, P. Def. +20.000, M. Def. +10.000, P. attack +20.000, P. attack Spd. +700, maximum HP +20.000\0 1 1 37075 a, 0 0 0 0 0 0 0 0 0 6 a,Increases M. Def and Evasion when a set item is enchanted by 6 or more.\0 1

37071 FireFlare Legs Power of The17Heroes a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

37072 FireFlare Gloves Power of The17Heroes a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

37073 FireFlare Boots Power of The17Heroes a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

37074 FireFlare Helmet Power of The17Heroes a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

37075 FireFlare Shield Power of The17Heroes a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

37000 Electric Vesper Tunic Power of The17Heroes a,Only mages at their 3rd class can wear it.\0 -1 5 5 37000 37001 37004 37002 37003 a,TK-Master's Legendary Armor, The Best Armor Around (For Mages Only). INT+2, MEN+2, WIT+2, P. Def. +30.000, M. attack +20.000, Casting Spd. +1000, maximum HP +30.000\0 1 1 37005 a, 0 0 0 0 0 0 0 0 0 6 a,P. Def. and weight limit increase when a set item is reinforced by 6 or more.\0 1

37001 Electric Vesper Stockings Power of The17Heroes a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

37002 Electric Vesper Gloves Power of The17Heroes a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

37003 Electric Vesper Boots Power of The17Heroes a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

37004 Electric Vesper Circlet Power of The17Heroes a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

37005 Electric Dragon Shield Power of The17Heroes a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

97333 Red Cloak of 300 Power of The17Heroes a,An Ancient Cloak with Mystical Powers. Increases Speed.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

50001 Magic Cap The Super Power Of The17Heroes! a,One Wizard Hat to Rule Them All!. \0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

44000 Wolverine Claw a,It can bestow one of the following three functions: Focus, Health, or Crt. Stun.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

44001 Wolverine Claw Focus a,<Soul Crystal Enhancement>\\nIncreases Critical Attack by 96 and damage inflicted during PvP.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

44002 Wolverine Claw Health a,<Soul Crystal Enhancement>\\nIncreases Max. HP by 25% and damage inflicted during PvP.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

44003 Wolverine Claw Psomas a,<Soul Crystal Enhancement>\\nHas a 43% chance of stunning an enemy during a critical attack. Also increases damage inflicted during PvP.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

26904 Green Dragon Dual* GM Blades a,Special Dual Dragon Slayer Weapon for Server Team, with hero glow.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

99990 Valakas' Fiery Relic Jewel a,Produces the following effects: Maximum MP +135, Maximum HP +200, P.attack/M.attack +150, Atk.Speed/Cast.Speed +59, Accuracy Combat/Evasion +6.\0 -1 0 0 a,A special jewel created from the fire of the strongest dragon, Valakas. 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

99991 Antharas' Tremor Relic Jewel a,Produces the following effects: Maximum HP +99, P.attack/M.Attack +65, Evasion +2\0 -1 0 0 a,A special jewel created from the skin of the dark dragon, Antharas. 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

99992 Baium's Anger Relic Jewel a,Produces the following effects: Maximum HP +99, P.attack/M.attack +65, Evasion +2.\0 -1 0 0 a,A special jewel created from the spirit of the demi-god, Baium. 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

99993 Zaken's Dementia Relic Jewel a,Produces the following effects: Maximum MP +99, Atk.Speed/Cast.Speed +65, Accuracy Combat +2.\0 -1 0 0 a,A special jewel created from the power of the undead pirate, Zaken. 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

99994 Halisha's Phylactery Relic Jewel a,Produces the following effects: Maximum MP +99, Atk.Speed/Cast.Speed +65, Accuracy Combat +2.\0 -1 0 0 a,A special jewel created from the mind of the hellish demon, Halisha. 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

26900 Cursed Dual ZaRiChE* GM Blades a,Special Dual ZaRiChe Sword Weapon for Server Team, with Special Glow.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

26901 Cursed Dual AkA* GM Blades a,Special Dual AkA Sword Weapon for Server Team, with Special Glow.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

777780 Crystal Bow Custom a,A Crystal Bow. Special Abilities: Unknown.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

777781 Crystal Dagger Custom a,A Crystal Dagger. Special Abilities: Unknown.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

777782 Crystal Blade Custom a,A Crystal Blade. Special Abilities: Unknown.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

777783 Crystal Fists Custom a,A Crystal Blade. Special Abilities: Unknown.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

30020 Natural Dragon Armor a,item Created by Psomas.\0 -1 4 4 6379 6382,11486 6380,11483 6381,11484 a,DEX+1, STR+1, CON-2, Atk. Spd./P. Atk, +4%, Max MP 289, and weight limit +5759.\0 0 0 a, 0 0 0 0 0 0 0 0 0 6 a,When all set items are enchanted by 6 or higher, M. Def. and Evasion will increase.\0 1

30021 Natural Dragon Gloves a,item Created by Psomas -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

30022 Natural Dragon Boots a,item Created by PSomas -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

30023 Natural Dragon Helmet a,item Created by Psomas -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

40010 Natural Dragon Splinter a,item Created by Psomas .\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

40011 Natural Dragon Staff a,item Created by Psomas® .\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

40012 Natural Dragon Bow a,item Created by PSomas® .\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

310001 SoFaKi's Umbrella xD a,An Umbrella made specially for pSomas. \0 -1 0 0

a, 0 0 a, 0 0 0 0 0 0

 

 

 

25000 1 Euro $ a,Special EURO Money.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

25002 5 Euros $ a,Special EURO Money.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

25003 10 Euros $ a,Special EURO Money.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

25004 20 Euros $ a,Special EURO Money.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

25005 50 Euros $ a,Special EURO Money.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

25006 100 Euros $ a,Special EURO Money.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

25007 200 Euros $ a,Special EURO Money.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

25008 500 Euros $ a,Special EURO Money.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1

 

 

 

CAN SOME ONE MAKE A SHOP FOR ME

 

ALL ITEMS COST 200 EUROS

 

 

AND A SECOND SHOP 5EURO =1EURO x5

                10EURO =5EURO X2

                20 EURO =10 EUROX2

                50 EURO =20EUROX2 AND 10EUROx1

                100 EURO=50EUROx2

                200 EURO=100EUROx2

 

 

cAN SOMEONE MAKES THESE 2 NPCs???

I Would be very thankd

(srry for my english)

 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

u cant learn after the loads of ban right?

 

First of all u should post on client mods.

 

Second, u should tell us the server name or show us some screens instead of giving us the last lines of itemname-e.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • adapt for 409 version wtih old config/sql/html's only the core update!   package net.sf.l2j.gameserver.model.actor.instance; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.StringTokenizer; import net.sf.l2j.commons.lang.StringUtil; import net.sf.l2j.commons.math.MathUtil; import net.sf.l2j.Config; import net.sf.l2j.gameserver.data.SkillTable; import net.sf.l2j.gameserver.data.manager.BufferManager; import net.sf.l2j.gameserver.model.actor.Creature; import net.sf.l2j.gameserver.model.actor.Player; import net.sf.l2j.gameserver.model.actor.Summon; import net.sf.l2j.gameserver.model.actor.template.NpcTemplate; import net.sf.l2j.gameserver.network.serverpackets.ItemList; import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse; import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage; import net.sf.l2j.gameserver.skills.L2Skill; public class SchemmerBuffer extends Folk { private static final int PAGE_LIMIT = 6; public SchemmerBuffer(int objectId, NpcTemplate template) { super(objectId, template); } private void showMainWindow(Player activeChar) { final NpcHtmlMessage html = new NpcHtmlMessage(0); html.setFile(getHtmlPath(getNpcId(), 0)); html.replace("%objectId%", String.valueOf(getObjectId())); html.replace("%name%", activeChar.getName()); html.replace("%buffcount%", "You have " + activeChar.getBuffCount() + "/" + activeChar.getMaxBuffCount() + " buffs."); activeChar.sendPacket(html); } @Override public void onBypassFeedback(Player player, String command) { if (player.getPvpFlag() > 0 && Config.PRESTRICT_USE_BUFFER_ON_PVPFLAG) { player.sendMessage("You can't use buffer when you are pvp flagged."); return; } if (player.isInCombat() && Config.PRESTRICT_USE_BUFFER_IN_COMBAT) { player.sendMessage("You can't use buffer when you are in combat."); return; } if (player.isDead()) return; StringTokenizer st = new StringTokenizer(command, " "); String actualCommand = st.nextToken(); if (actualCommand.startsWith("bufflist")) { autoBuffFunction(player, st.nextToken()); } else if (actualCommand.startsWith("restore")) { String noble = st.nextToken(); player.getStatus().setMaxCpHpMp(); if (noble.equals("true")) { SkillTable.getInstance().getInfo(1323, 1).getEffects(player, player); player.broadcastPacket(new MagicSkillUse(this, player, 1323, 1, 850, 0)); } final Summon summon = player.getSummon(); if (summon != null) summon.getStatus().setMaxHpMp(); showMainWindow(player); } else if (actualCommand.startsWith("cancellation")) { L2Skill buff; buff = SkillTable.getInstance().getInfo(1056, 1); buff.getEffects(this, player); player.stopAllEffectsExceptThoseThatLastThroughDeath(); player.broadcastPacket(new MagicSkillUse(this, player, 1056, 1, 850, 0)); player.stopAllEffects(); final Summon summon = player.getSummon(); if (summon != null) summon.stopAllEffects(); showMainWindow(player); } else if (actualCommand.startsWith("openlist")) { String category = st.nextToken(); String htmfile = st.nextToken(); NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); if (category.startsWith("null")) { html.setFile("data/html/mods/buffer/" + htmfile + ".htm"); // First Page if (htmfile.equals("index")) { html.replace("%name%", player.getName()); html.replace("%buffcount%", "You have " + player.getBuffCount() + "/" + player.getMaxBuffCount() + " buffs."); } } else html.setFile("data/html/mods/buffer/" + category + "/" + htmfile + ".htm"); html.replace("%objectId%", String.valueOf(getObjectId())); player.sendPacket(html); } else if (actualCommand.startsWith("dobuff")) { int buffid = Integer.valueOf(st.nextToken()); int bufflevel = Integer.valueOf(st.nextToken()); String category = st.nextToken(); String windowhtml = st.nextToken(); String votebuff = null; if (st.hasMoreTokens()) votebuff = st.nextToken(); if (windowhtml.equals("malaria")) { if (player.getInventory().getItemCount(Config.PVOTE_BUFF_ITEM_ID, 0) >= 1) { player.getInventory().destroyItemByItemId("VoteCoins", Config.PVOTE_BUFF_ITEM_ID, 1, player, null); player.sendPacket(new ItemList(player, true)); player.sendMessage(1 + " Vote eye destroyed."); } else { player.sendMessage("You dont have enough (" + 1 + ") vote item for buff."); return; } } if (votebuff != null) { if (player.getInventory().getItemCount(Config.PVOTE_BUFF_ITEM_ID, 0) >= Config.PVOTE_BUFF_ITEM_COUNT) { player.getInventory().destroyItemByItemId("VoteCoins", Config.PVOTE_BUFF_ITEM_ID, Config.PVOTE_BUFF_ITEM_COUNT, player, null); player.sendPacket(new ItemList(player, true)); player.sendMessage(Config.PVOTE_BUFF_ITEM_COUNT + " vote stone destroyed."); } else { player.sendMessage("You dont have enough (" + Config.PVOTE_BUFF_ITEM_COUNT + ") vote item for buff."); return; } } Creature target = player; if (category.startsWith("pet")) { if (player.getSummon() == null) { player.sendMessage("Incorrect Pet"); showMainWindow(player); return; } target = player.getSummon(); } MagicSkillUse mgc = new MagicSkillUse(this, target, buffid, bufflevel, 1150, 0); player.sendPacket(mgc); player.broadcastPacket(mgc); SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, target); NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); html.setFile("data/html/mods/buffer/" + category + "/" + windowhtml + ".htm"); html.replace("%objectId%", String.valueOf(getObjectId())); html.replace("%name%", player.getName()); player.sendPacket(html); } else if (actualCommand.startsWith("getbuff")) { int buffid = Integer.valueOf(st.nextToken()); int bufflevel = Integer.valueOf(st.nextToken()); if (buffid != 0) { SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player); broadcastPacket(new MagicSkillUse(this, player, buffid, bufflevel, 450, 0)); showMainWindow(player); } } else if (actualCommand.startsWith("support")) { showGiveBuffsWindow(player); } else if (actualCommand.startsWith("givebuffs")) { final String schemeName = st.nextToken(); final int cost = Integer.parseInt(st.nextToken()); Creature target = null; if (st.hasMoreTokens()) { final String targetType = st.nextToken(); if (targetType != null && targetType.equalsIgnoreCase("pet")) target = player.getSummon(); } else target = player; if (target == null) player.sendMessage("You don't have a pet."); else if (cost == 0 || player.reduceAdena("NPC Buffer", cost, this, true)) BufferManager.getInstance().applySchemeEffects(this, target, player.getObjectId(), schemeName); } else if (actualCommand.startsWith("editschemes")) { showEditSchemeWindow(player, st.nextToken(), st.nextToken(), Integer.parseInt(st.nextToken())); } else if (actualCommand.startsWith("skill")) { final String groupType = st.nextToken(); final String schemeName = st.nextToken(); final int skillId = Integer.parseInt(st.nextToken()); final int page = Integer.parseInt(st.nextToken()); final List<Integer> skills = BufferManager.getInstance().getScheme(player.getObjectId(), schemeName); if (actualCommand.startsWith("skillselect") && !schemeName.equalsIgnoreCase("none")) { if (skills.size() < player.getMaxBuffCount()) skills.add(skillId); else player.sendMessage("This scheme has reached the maximum amount of buffs."); } else if (actualCommand.startsWith("skillunselect")) skills.remove(Integer.valueOf(skillId)); showEditSchemeWindow(player, groupType, schemeName, page); } else if (actualCommand.startsWith("createscheme")) { try { final String schemeName = st.nextToken(); if (schemeName.length() > 14) { player.sendMessage("Scheme's name must contain up to 14 chars. Spaces are trimmed."); return; } final Map<String, ArrayList<Integer>> schemes = BufferManager.getInstance().getPlayerSchemes(player.getObjectId()); if (schemes != null) { if (schemes.size() == Config.PBUFFER_MAX_SCHEMES) { player.sendMessage("Maximum schemes amount is already reached."); return; } if (schemes.containsKey(schemeName)) { player.sendMessage("The scheme name already exists."); return; } } BufferManager.getInstance().setScheme(player.getObjectId(), schemeName.trim(), new ArrayList<>()); showGiveBuffsWindow(player); } catch (Exception e) { player.sendMessage("Scheme's name must contain up to 14 chars. Spaces are trimmed."); } } else if (actualCommand.startsWith("deletescheme")) { try { final String schemeName = st.nextToken(); final Map<String, ArrayList<Integer>> schemes = BufferManager.getInstance().getPlayerSchemes(player.getObjectId()); if (schemes != null && schemes.containsKey(schemeName)) schemes.remove(schemeName); } catch (Exception e) { player.sendMessage("This scheme name is invalid."); } showGiveBuffsWindow(player); } super.onBypassFeedback(player, command); } @Override public String getHtmlPath(int npcId, int val) { String filename = ""; if (val == 0) filename = "" + npcId; else filename = npcId + "-" + val; return "data/html/mods/buffer/" + filename + ".htm"; } /** * Send an html packet to the {@link Player} set a parameter with Give Buffs menu info for player and pet, depending on targetType parameter {player, pet}. * @param player : The {@link Player} to make checks on. */ private void showGiveBuffsWindow(Player player) { final StringBuilder sb = new StringBuilder(200); final Map<String, ArrayList<Integer>> schemes = BufferManager.getInstance().getPlayerSchemes(player.getObjectId()); if (schemes == null || schemes.isEmpty()) sb.append("<font color=\"LEVEL\">You haven't defined any scheme.</font>"); else { for (Map.Entry<String, ArrayList<Integer>> scheme : schemes.entrySet()) { final int cost = getFee(scheme.getValue()); StringUtil.append(sb, "<font color=\"LEVEL\">", scheme.getKey(), " [", scheme.getValue().size(), " / ", player.getMaxBuffCount(), "]", ((cost > 0) ? " - cost: " + StringUtil.formatNumber(cost) : ""), "</font><br1>"); StringUtil.append(sb, "<a action=\"bypass npc_%objectId%_givebuffs ", scheme.getKey(), " ", cost, "\">Use on Me</a>&nbsp;|&nbsp;"); StringUtil.append(sb, "<a action=\"bypass npc_%objectId%_givebuffs ", scheme.getKey(), " ", cost, " pet\">Use on Pet</a>&nbsp;|&nbsp;"); StringUtil.append(sb, "<a action=\"bypass npc_%objectId%_editschemes Buffs ", scheme.getKey(), " 1\">Edit</a>&nbsp;|&nbsp;"); StringUtil.append(sb, "<a action=\"bypass npc_%objectId%_deletescheme ", scheme.getKey(), "\">Delete</a><br>"); } } final NpcHtmlMessage html = new NpcHtmlMessage(0); html.setFile(getHtmlPath(getNpcId(), 1)); html.replace("%schemes%", sb.toString()); html.replace("%max_schemes%", Config.PBUFFER_MAX_SCHEMES); html.replace("%objectId%", getObjectId()); player.sendPacket(html); } /** * Send an html packet to the {@link Player} set as parameter with Edit Scheme Menu info. This allows the {@link Player} to edit each created scheme (add/delete skills) * @param player : The {@link Player} to make checks on. * @param groupType : The group of skills to select. * @param schemeName : The scheme to make check. * @param page : The current checked page. */ private void showEditSchemeWindow(Player player, String groupType, String schemeName, int page) { final NpcHtmlMessage html = new NpcHtmlMessage(0); final List<Integer> schemeSkills = BufferManager.getInstance().getScheme(player.getObjectId(), schemeName); html.setFile(getHtmlPath(getNpcId(), 2)); html.replace("%schemename%", schemeName); html.replace("%count%", schemeSkills.size() + " / " + player.getMaxBuffCount()); html.replace("%typesframe%", getTypesFrame(groupType, schemeName)); html.replace("%skilllistframe%", getGroupSkillList(player, groupType, schemeName, page)); html.replace("%objectId%", getObjectId()); player.sendPacket(html); } /** * @param player : The {@link Player} to make checks on. * @param groupType : The group of skills to select. * @param schemeName : The scheme to make check. * @param page : The current checked page. * @return A {@link String} representing skills available for selection for a given groupType. */ private String getGroupSkillList(Player player, String groupType, String schemeName, int page) { // Retrieve the entire skills list based on group type. List<Integer> skills = BufferManager.getInstance().getSkillsIdsByType(groupType); if (skills.isEmpty()) return "That group doesn't contain any skills."; // Calculate page number. final int max = MathUtil.countPagesNumber(skills.size(), PAGE_LIMIT); if (page > max) page = max; // Cut skills list up to page number. skills = skills.subList((page - 1) * PAGE_LIMIT, Math.min(page * PAGE_LIMIT, skills.size())); final List<Integer> schemeSkills = BufferManager.getInstance().getScheme(player.getObjectId(), schemeName); final StringBuilder sb = new StringBuilder(skills.size() * 150); int row = 0; for (int skillId : skills) { final String icon = (skillId < 100) ? "icon.skill00" + skillId : (skillId < 1000) ? "icon.skill0" + skillId : "icon.skill" + skillId; sb.append(((row % 2) == 0 ? "<table width=\"280\" bgcolor=\"000000\"><tr>" : "<table width=\"280\"><tr>")); if (schemeSkills.contains(skillId)) StringUtil.append(sb, "<td height=40 width=40><img src=\"", icon, "\" width=32 height=32></td><td width=190>", SkillTable.getInstance().getInfo(skillId, 1).getName(), "<br1><font color=\"B09878\">", BufferManager.getInstance().getAvailableBuff(skillId).getDescription(), "</font></td><td><button action=\"bypass npc_%objectId%_skillunselect ", groupType, " ", schemeName, " ", skillId, " ", page, "\" width=32 height=32 back=\"L2UI_CH3.mapbutton_zoomout2\" fore=\"L2UI_CH3.mapbutton_zoomout1\"></td>"); else StringUtil.append(sb, "<td height=40 width=40><img src=\"", icon, "\" width=32 height=32></td><td width=190>", SkillTable.getInstance().getInfo(skillId, 1).getName(), "<br1><font color=\"B09878\">", BufferManager.getInstance().getAvailableBuff(skillId).getDescription(), "</font></td><td><button action=\"bypass npc_%objectId%_skillselect ", groupType, " ", schemeName, " ", skillId, " ", page, "\" width=32 height=32 back=\"L2UI_CH3.mapbutton_zoomin2\" fore=\"L2UI_CH3.mapbutton_zoomin1\"></td>"); sb.append("</tr></table><img src=\"L2UI.SquareGray\" width=277 height=1>"); row++; } for (int i = PAGE_LIMIT; i > row; i--) StringUtil.append(sb, "<img height=41>"); // Build page footer. sb.append("<br><img src=\"L2UI.SquareGray\" width=277 height=1><table width=\"100%\" bgcolor=000000><tr>"); if (page > 1) StringUtil.append(sb, "<td align=left width=70><a action=\"bypass npc_" + getObjectId() + "_editschemes ", groupType, " ", schemeName, " ", page - 1, "\">Previous</a></td>"); else StringUtil.append(sb, "<td align=left width=70>Previous</td>"); StringUtil.append(sb, "<td align=center width=100>Page ", page, "</td>"); if (page < max) StringUtil.append(sb, "<td align=right width=70><a action=\"bypass npc_" + getObjectId() + "_editschemes ", groupType, " ", schemeName, " ", page + 1, "\">Next</a></td>"); else StringUtil.append(sb, "<td align=right width=70>Next</td>"); sb.append("</tr></table><img src=\"L2UI.SquareGray\" width=277 height=1>"); return sb.toString(); } /** * @param groupType : The group of skills to select. * @param schemeName : The scheme to make check. * @return A {@link String} representing all groupTypes available. The group currently on selection isn't linkable. */ private static String getTypesFrame(String groupType, String schemeName) { final StringBuilder sb = new StringBuilder(500); sb.append("<table>"); int count = 0; for (String type : BufferManager.getInstance().getSkillTypes()) { if (count == 0) sb.append("<tr>"); if (groupType.equalsIgnoreCase(type)) StringUtil.append(sb, "<td width=65>", type, "</td>"); else StringUtil.append(sb, "<td width=65><a action=\"bypass npc_%objectId%_editschemes ", type, " ", schemeName, " 1\">", type, "</a></td>"); count++; if (count == 4) { sb.append("</tr>"); count = 0; } } if (!sb.toString().endsWith("</tr>")) sb.append("</tr>"); sb.append("</table>"); return sb.toString(); } /** * @param list : A {@link List} of skill ids. * @return a global fee for all skills contained in the {@link List}. */ private static int getFee(ArrayList<Integer> list) { if (Config.PBUFFER_STATIC_BUFF_COST > 0) return list.size() * Config.PBUFFER_STATIC_BUFF_COST; int fee = 0; for (int sk : list) fee += BufferManager.getInstance().getAvailableBuff(sk).getPrice(); return fee; } private void autoBuffFunction(Player player, String bufflist) { ArrayList<L2Skill> skills_to_buff = new ArrayList<>(); List<Integer> list = null; if (bufflist.equalsIgnoreCase("fighter")) list = Config.PFIGHTER_SKILL_LIST; else if (bufflist.equalsIgnoreCase("mage")) list = Config.PMAGE_SKILL_LIST; if (list != null) { for (int skillId : list) { L2Skill skill = SkillTable.getInstance().getInfo(skillId, SkillTable.getInstance().getMaxLevel(skillId)); if (skill != null) skills_to_buff.add(skill); } for (L2Skill sk : skills_to_buff) sk.getEffects(player, player); player.updateEffectIcons(); list = null; } skills_to_buff.clear(); showMainWindow(player); } }  
    • L2 OPIUM - AUTO FARM HTML    
    • json_extract does not exist. -> wrong mysql server version.
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt  
  • Topics

×
×
  • Create New...