Jump to content

Help Armor Interlude


Recommended Posts

SQL

INSERT ignore INTO `custom_armor` VALUES
('9416', 'Dynasty Plate', 'chest', 'false', 'heavy', '7620', 's', '0', '-1', '219', '0', '0', '0',   '0','true', 'true', 'true', 'true', '0', '0'),
('9421', 'Dynasty Gaiters', 'legs', 'false', 'heavy', '3260',  's', '0', '-1', '137', '0', '0', '0',   '0','true', 'true', 'true', 'true', '0', '0'),
('9422', 'Dynasty Helm', 'head', 'false', 'none', '550',  's', '0', '-1', '89', '0', '0', '0',   '0','true', 'true', 'true', 'true', '0', '0'),
('9423', 'Dynasty Gloves', 'gloves', 'false', 'none', '540',  's', '0', '-1', '59', '0', '0', '0',   '0','true', 'true', 'true', 'true', '0', '0'),
('9424', 'Dynasty Boots', 'feet', 'false', 'none', '1110',  's', '0', '-1', '59', '0', '0', '0',   '0','true', 'true', 'true', 'true', '0', '0'),
('9425', 'Dynasty Leather', 'chest', 'false', 'light', '7620',  's', '0', '-1', '219', '0', '0', '0',   '0','true', 'true', 'true', 'true', '0', '0'),
('9428', 'Dynasty Leather Pants', 'legs', 'false', 'light', '3260',  's', '0', '-1', '137', '0', '0', '0',  '0','true', 'true', 'true', 'true', '0', '0'),
('9429', 'Dynasty Leather Helm', 'head', 'false', 'none', '550',  's', '0', '-1', '89', '0', '0', '0',  '0','true', 'true', 'true', 'true', '0', '0'),
('9430', 'Dynasty Leather Gloves', 'gloves', 'false', 'none', '540', 's', '0', '-1', '59', '0', '0', '0',  '0','true', 'true', 'true', 'true', '0', '0'),
('9431', 'Dynasty Leather Shoes', 'feet', 'false', 'none', '1110', 's', '0', '-1', '59', '0', '0', '0',  '0','true', 'true', 'true', 'true', '0', '0'),
('9432', 'Dynasty Robe', 'chest', 'false', 'magic', '7620', 's', '0', '-1', '219', '0', '257', '0',  '0','true', 'true', 'true', 'true', '0', '0'),
('9437', 'Dynasty Pants', 'legs', 'false', 'magic', '3260', 's', '0', '-1', '137', '0', '0', '0',  '0','true', 'true', 'true', 'true', '0', '0'),
('9438', 'Dynasty Cap', 'head', 'false', 'none', '550', 's', '0', '-1', '89', '0', '0', '0', 'true',  '0','true', 'true', 'true', '0', '0'),
('9439', 'Dynasty Mittens', 'gloves', 'false', 'none', '540', 's', '0', '-1', '59', '0', '0', '0',  '0','true', 'true', 'true', 'true', '0', '0'),
('9440', 'Dynasty Slippers', 'feet', 'false', 'none', '1110', 's', '0', '-1', '59', '0', '0', '0',  '0','true', 'true', 'true', 'true', '0', '0');
 
delete from custom_armorsets where id in (52,53,54);
 
INSERT ignore INTO `custom_armorsets` VALUES
('52', '9416', '9421', '9422', '9423', '9424', '9051', '0', '0', '3623'),
('53', '9425', '9428', '9429', '9430', '9431', '9050', '0', '0', '3624'),
('54', '9432', '9437', '9438', '9439', '9440', '9052', '0', '0', '3625');

XML

<?xml version='1.0' encoding='utf-8'?>
<list>
<item id='9933' name="Dynasty BreastPlate">
  <for>
    <add val='250' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='9934' name="Dynasty Gaiter">
  <for>
    <add val='250' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='9935' name="Dynasty Helmet">
  <for>
    <add val='200' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='9936' name="Dynasty Gauntlet - Heavy Armor">
  <for>
    <add val='140' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='9937' name="Dynasty Boots - Heavy Armor">
  <for>
    <add val='140' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
 
<item id='9938' name="Dynasty Leather Armor">
  <for>
    <add val='250' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='9939' name="Dynasty Leather Leggings">
  <for>
    <add val='220' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='9940' name="Dynasty Leather Helmet">
  <for>
    <add val='180' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='9941' name="Dynasty Leather Gloves - Light Armor">
  <for>
    <add val='150' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='9942' name="Dynasty Leather Boots - Light Armor">
  <for>
    <add val='150' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='9943' name="Dynasty Tunic">
  <for>
    <add val='250' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='9944' name="Dynasty Stockings">
  <for>
    <add val='150' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='9945' name="Dynasty Circlet">
  <for>
    <add val='170' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='9946' name="Dynasty Gloves - Robe">
  <for>
    <add val='150' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='9947' name="Dynasty Shoes - Robe">
  <for>
    <add val='150' order='0x10' stat='pDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
</list>

SKILL

 

<?xml version='1.0' encoding='utf-8'?>
<list>
<skill id="6300" levels="1" name="Dynasty Heavy Armor Set">
<!-- Dynasty  Heavy Armor 
 
Description: DEX-2
             STR+2
             P. Def. +10%
             maximum HP +750
             Sleep/Hold -75%
             Poison/Bleed attack -75%
             When all set items are enchanted by 6 or higher, P. Def. and MP regeneration rate will increase.-->
  <set name="power" val="0.0"/>
  <set name="target" val="TARGET_SELF"/>
  <set name="skillType" val="BUFF"/>
  <set name="operateType" val="OP_PASSIVE"/>
  <set name="castRange" val="-1"/>
  <set name="effectRange" val="-1"/>
  <for>
    <mul order="0x30" stat="pDef" val="1.1"/> <!-- P Def. +10% -->
    <add order="0x40" stat="maxHp" val="750"/> <!-- Maximum HP +750 -->
    <mul order="0x30" stat="sleepVuln" val="0.75"/> <!-- Sleep Resistence +75% -->
    <mul order="0x30" stat="rootVuln" val="0.75"/> <!-- Hold Resistence +75% -->
    <sub order="0x40" stat="DEX" val="2"/> <!-- DEX -2 -->
    <add order="0x40" stat="STR" val="2"/> <!-- STR +2 -->
  </for>
</skill>
<skill id="6301" levels="1" name="Equipped with Shield">
<!-- Equiped Shield 
  Description(s):
      Additional resistance to Poison/Bleed.
-->
  <set name="power" val="0.0"/>
  <set name="target" val="TARGET_SELF"/>
  <set name="skillType" val="BUFF"/>
  <set name="operateType" val="OP_PASSIVE"/>
  <set name="castRange" val="-1"/>
  <set name="effectRange" val="-1"/>
  <for>
    <mul val='0.2' order='0x30' stat='poisonVuln'/>
    <mul val='0.2' order='0x30' stat='bleedVuln'/>
  </for>
</skill>
<skill id="6302" levels="1" name="Dynasty Light Armor Set">
<!-- Dynasty  Light Armor 
 
Description:
            DEX+1
            STR+1
            CON-2
            Attack speed +6%
            P. Atk +6%
            Maximum MP +489
            weight limit +6000
            When all set items are enchanted by 6 or higher, M. Def. and Evasion will increase -->
 
  <set name="power" val="0.0"/>
  <set name="target" val="TARGET_SELF"/>
  <set name="skillType" val="BUFF"/>
  <set name="operateType" val="OP_PASSIVE"/>
  <set name="castRange" val="-1"/>
  <set name="effectRange" val="-1"/>
  <for>
    <mul order="0x30" stat="pAtkSpd" val="1.06"/> <!-- Attack Speed +6% -->
    <mul order="0x30" stat="pAtk" val="1.06"/> <!-- P. Atk +6% -->
    <add order="0x40" stat="maxMp" val="489"/> <!-- Maximum MP +489 -->
    <add order="0x40" stat="maxLoad" val="6000"/> <!-- Weight Limit +6000 -->
    <add order="0x40" stat="DEX" val="1"/> <!-- DEX +1 -->
    <add order="0x40" stat="STR" val="1"/> <!-- STR +1 -->
    <sub order="0x40" stat="CON" val="2"/> <!-- CON -2 -->
  </for>
</skill>
<skill id="6303" levels="1" name="Dynasty Robe Set">
<!-- Dynasty Robe Armor
 
Description:
            WIT+1
            INT+1
            MEN-2
            Magic attack 18%
            Casting Speed 6%
            Speed +8
            magic cancel rate -50%
            stun vulnerability -50%
            weight limit +5759 
            When all set items are enchanted by 6 or higher, P. Def. and Weight Gauge will increase -->
  <set name="power" val="0.0"/>
  <set name="target" val="TARGET_SELF"/>
  <set name="skillType" val="BUFF"/>
  <set name="operateType" val="OP_PASSIVE"/>
  <set name="castRange" val="-1"/>
  <set name="effectRange" val="-1"/>
  <for>
    <mul order="0x30" stat="mAtk" val="1.18"/> <!-- M. Atk +18% -->
    <mul order="0x30" stat="mAtkSpd" val="1.06"/> <!-- Casting Speed +6% -->
    <add order="0x40" stat="runSpd" val="8"/> <!-- Movement Speed +7 -->
    <sub order="0x40" stat="cancel" val="50"/> <!-- Casting Cancel Probability -50% -->
    <add order="0x40" stat="maxLoad" val="6000"/> <!-- Weight Limit +6000 -->
    <add order="0x40" stat="WIT" val="1"/> <!-- WIT +1 -->
    <add order="0x40" stat="INT" val="1"/> <!-- INT +1 -->
    <sub order="0x40" stat="MEN" val="2"/> <!-- MEN -2 -->
    <mul order="0x30" stat="stunVuln" val="0.5"/> <!-- Stun resistance +50% -->
  </for>
</skill>
</list>
Edited by RealspeedVIP
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • well i didnt used to had that issue u reffering , u can always lower the page value that would show on each page . keep in mind it was taken  from h5 that it can handle more html length than interlude .   package handlers.admincommandhandlers; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; import org.l2jmobius.gameserver.model.actor.Player; import org.l2jmobius.gameserver.model.item.instance.Item; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage; import org.l2jmobius.gameserver.util.Util; public class AdminInventory implements IAdminCommandHandler { private static final String[] ADMIN_COMMANDS = { "admin_showinv", "admin_delete_item" }; @Override public boolean useAdminCommand(String command, Player activeChar) { WorldObject target = activeChar.getTarget(); if (target == null || !target.isPlayer()) { activeChar.sendPacket(SystemMessageId.INVALID_TARGET); return false; } if (command.startsWith(ADMIN_COMMANDS[0])) { if (command.length() > ADMIN_COMMANDS[0].length()) { String com = command.substring(ADMIN_COMMANDS[0].length() + 1); if (Util.isDigit(com)) { showItemsPage(activeChar, Integer.parseInt(com)); } } else { showItemsPage(activeChar, 0); } } int count = 1; if (command.contains(ADMIN_COMMANDS[1])) { String[] parts = command.split(" "); if (parts.length == 3) { try { count = Integer.parseInt(parts[2]); } catch (NumberFormatException e) { activeChar.sendMessage("Invalid quantity format."); return false; } } if (count == 0) { activeChar.sendMessage("Quantity must be 1 or above, or left blank for default."); showItemsPage(activeChar, 0); return false; } String val = parts[1]; target.getActingPlayer().destroyItem("GM Destroy", Integer.parseInt(val), count, null, true); showItemsPage(activeChar, 0); } return true; } private void showItemsPage(Player activeChar, int page) { final WorldObject target = activeChar.getTarget(); final Player player = target.getActingPlayer(); final Item[] items = player.getInventory().getItems().toArray(new Item[0]); int maxItemsPerPage = 13; int maxPages = items.length / maxItemsPerPage; if (items.length > (maxItemsPerPage * maxPages)) { maxPages++; } if (page > maxPages) { page = maxPages; } int itemsStart = maxItemsPerPage * page; int itemsEnd = items.length; if ((itemsEnd - itemsStart) > maxItemsPerPage) { itemsEnd = itemsStart + maxItemsPerPage; } final NpcHtmlMessage adminReply = new NpcHtmlMessage(0); adminReply.setFile(activeChar, "data/html/admin/inventory.htm"); adminReply.replace("%PLAYER_NAME%", activeChar.getName()); StringBuilder sbPages = new StringBuilder(); for (int x = 0; x < maxPages; x++) { int pagenr = x + 1; sbPages.append("<td><button value=\"" + pagenr + "\" action=\"bypass -h admin_showinv " + x + "\" width=20 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>"); } adminReply.replace("%PAGES%", sbPages.toString()); StringBuilder sbItems = getStringBuilder(itemsStart, itemsEnd, items); adminReply.replace("%ITEMS%", sbItems.toString()); activeChar.sendPacket(adminReply); } private static StringBuilder getStringBuilder(int itemsStart, int itemsEnd, Item[] items) { StringBuilder sbItems = new StringBuilder(); sbItems.append("<table width=270>"); sbItems.append("<tr>"); sbItems.append("<td width=24><b> </b></td>"); sbItems.append("<td width=120><b> </b></td>"); sbItems.append("<td width=90><b>Count</b></td>"); sbItems.append("<td width=65><b>Quantity</b></td>"); sbItems.append("</tr>"); for (int i = itemsStart; i < itemsEnd; i++) { Item item = items[i]; sbItems.append("<tr>"); sbItems.append("<td><img src=").append(item.getTemplate().getIcon()).append(" width=24 height=24></td>"); sbItems.append("<td>").append(item.getName()).append("</td>"); sbItems.append("<td>").append(item.getCount()).append("</td>"); sbItems.append("<td>"); sbItems.append("<edit var=\"itemCount_").append(i).append("\" width=40>"); sbItems.append("</td>"); sbItems.append("<td><button action=\"bypass -h admin_delete_item ").append(item.getObjectId()).append(" $itemCount_").append(i).append("\" width=16 height=16 back=\"L2UI_ct1.Button_DF_Delete\" fore=\"L2UI_ct1.Button_DF_Delete\"></button></td>"); sbItems.append("</tr>"); } sbItems.append("</table>"); return sbItems; } @Override public String[] getAdminCommandList() { return ADMIN_COMMANDS; } } Since i did jumped to mobius here the mobius one with quantity field aswell .  feel free to adapt it back to acis or wherever    <html><body><title>Inventory : %PLAYER_NAME%</title> <center> <table width=270> <tr> %PAGES% </tr> </table> </center> <br> %ITEMS% </body> </html>
    • ~ DISCORD SERVER: 2MVCtXHvbH  DISCORD SERVER: 2MVCtXHvbH
  • Topics

×
×
  • Create New...