Williams

Members
  • Content Count

    44
  • Joined

  • Last visited

  • Feedback

    N/A

Community Reputation

5 Neutral

About Williams

  • Rank
    Vassal

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Main topic updated with corrections and restrictions.
  2. I come to share something I did for my server. improvements please can comment, please remove the part of Event code : https://pastebin.com/raw/Xa9dU7zd
  3. topic updated with version 2 at a glance now written in xml
  4. Good night, I come to share a code that I made for my project, I will give a simple tutorial how to use the music part of it. Code: https://pastebin.com/raw/ezfEX1kJ Well I made the code simple and very easy to edit, you only need to edit in one place to add messages, music, PVP amount !! The format is PVP, Message and Music quantity. PVP amount = 2 Generated Message = Double Kill Music = "" here the music. DOUBLE_KILL (2, "Double Kill", "YOUR MUSIC"), The song is on you, I hope you like it and don't forget to like it. here is version 2 in xml and totally redone by Tryskell's tips thanks to @StinkyMadness for the idea of creating in xml Version 2 : https://pastebin.com/raw/5cwXuTTc Credits for the idea @Kara` Unfinished credits @Williams ATTENTION : I'm sorry for some BR messages
  5. did not work if (schemeSkills.contains(skillId)) StringUtil.append(sb, (skillId == 4699 || skillId == 4700 ? "icon.skill1331" : skillId == 4702 || skillId == 4703 ? "icon.skill1332" : skillId < 100 ? "icon.skill00" + skillId : skillId < 1000 ? "icon.skill0" + skillId : "icon.skill" + skillId));
  6. ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/model/L2Skill.java =================================================================== --- java/net/sf/l2j/gameserver/model/L2Skill.java (revision 2) +++ java/net/sf/l2j/gameserver/model/L2Skill.java (working copy) @@ -113,6 +113,7 @@ private final int _level; private final String _name; + private final String _icon; private final SkillOpType _operateType; private final boolean _magic; @@ -248,6 +250,7 @@ _level = set.getInteger("level"); _name = set.getString("name"); + _icon = set.getString("icon", "icon.noimage"); _operateType = set.getEnum("operateType", SkillOpType.class); _magic = set.getBool("isMagic", false); @@ -842,7 +846,15 @@ { return _name; } - + + /** + * @return Returns the icon. + */ + public String getIcon() + { + return _icon; + } + /** * @return Returns the reuseDelay. */ ### Eclipse Workspace Patch 1.0 #P aCis_datapack Index: data/xml/skills/4700-4799.xml =================================================================== --- data/xml/skills/4700-4799.xml (revision 2) +++ data/xml/skills/4700-4799.xml (working copy) @@ -5,9 +5,9 @@ <table name="#mpConsume"> 122 157 194 202 207 212 215 220 224 229 233 237 242 </table> <table name="#pAtk"> 1.06 1.08 1.1 1.1 1.1 1.1 1.1 1.1 1.1 1.1 1.1 1.1 1.1 </table> <table name="#accCombat"> 2 2 3 3 3 3 3 3 3 3 3 3 3 </table> <table name="#time"> 120 120 120 150 165 180 195 210 225 240 255 270 285 </table> <table name="#power"> 541 611 659 666 669 673 676 679 681 684 687 689 692 </table> <table name="#stackOrder"> 1 2 3 3 3 3 3 3 3 3 3 3 3 </table> + <set name="icon" val="icon.skill1331" /> <set name="mpConsume" val="#mpConsume" /> <set name="target" val="TARGET_PARTY" /> <set name="skillRadius" val="1000" /> @@ -48,9 +48,9 @@ <table name="#magicLvl"> 57 66 75 77 78 79 80 81 82 83 84 85 86 </table> <table name="#mpConsume"> 122 157 194 202 207 212 215 220 224 229 233 237 242 </table> <table name="#regMp"> 1.3 1.32 1.35 1.35 1.35 1.35 1.35 1.35 1.35 1.35 1.35 1.35 1.35 </table> <table name="#time"> 120 120 120 150 165 180 195 210 225 240 255 270 285 </table> <table name="#power"> 541 611 659 666 669 673 676 679 681 684 687 689 692 </table> <table name="#stackOrder"> 1 2 3 3 3 3 3 3 3 3 3 3 3 </table> + <set name="icon" val="icon.skill1332" /> <set name="mpConsume" val="#mpConsume" /> <set name="target" val="TARGET_PARTY" /> <set name="skillRadius" val="1000" /> @@ -71,9 +71,9 @@ <table name="#magicLvl"> 57 66 75 77 78 79 80 81 82 83 84 85 86 </table> <table name="#mpConsume"> 122 157 194 202 207 212 215 220 224 229 233 237 242 </table> <table name="#mReuse"> 0.7 0.68 0.65 0.65 0.65 0.65 0.65 0.65 0.65 0.65 0.65 0.65 0.65 </table> <table name="#time"> 120 120 120 150 165 180 195 210 225 240 255 270 285 </table> <table name="#power"> 541 611 659 666 669 673 676 679 681 684 687 689 692 </table> <table name="#stackOrder"> 1 2 3 3 3 3 3 3 3 3 3 3 3 </table> + <set name="icon" val="icon.skill1332" /> <set name="mpConsume" val="#mpConsume" /> <set name="target" val="TARGET_PARTY" /> <set name="skillRadius" val="1000" /> Index: data/xml/skills/4600-4699.xml =================================================================== --- data/xml/skills/4600-4699.xml (revision 2) +++ data/xml/skills/4600-4699.xml (working copy) @@ -1776,8 +1776,8 @@ <table name="#magicLvl"> 57 66 75 77 78 79 80 81 82 83 84 85 86 </table> <table name="#rCrit"> 0.25 0.27 0.3 0.3 0.3 0.3 0.3 0.3 0.3 0.3 0.3 0.3 0.3 </table> <table name="#cAtk"> 1.2 1.22 1.25 1.25 1.25 1.25 1.25 1.25 1.25 1.25 1.25 1.25 1.25 </table> <table name="#time"> 120 120 120 150 165 180 195 210 225 240 255 270 285 </table> <table name="#stackOrder"> 1 2 3 3 3 3 3 3 3 3 3 3 3 </table> + <set name="icon" val="icon.skill1331" /> <set name="magicLvl" val="#magicLvl" /> <set name="target" val="TARGET_PARTY" /> <set name="skillType" val="BUFF" /> I'll see if this works
  7. Well I adding the buffs in my buff for aCis, I came across this, where do I fix this? I believe that here generates the icons if (skillId < 100) { if (schemeSkills.contains(skillId)) StringUtil.append(sb, "<td height=40 width=40><img src=\"icon.skill00", skillId, "\" 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.skill00", skillId, "\" 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>"); } else if (skillId < 1000) { if (schemeSkills.contains(skillId)) StringUtil.append(sb, "<td height=40 width=40><img src=\"icon.skill0", skillId, "\" 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.skill0", skillId, "\" 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>"); } else { if (schemeSkills.contains(skillId)) StringUtil.append(sb, "<td height=40 width=40><img src=\"icon.skill", skillId, "\" 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.skill", skillId, "\" 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>"); } How do I generate the icon of these 4 buffs??
  8. Hello would you like a tip how to when to remove lord's crown the buff comes out along with the crown.
  9. Good evening, I come to share a code that I made for my project. Code : https://pastebin.com/raw/sWbUMqiG Good as I do not like to use these ready made codes I made this, as aCis is clean and light, I will explain how to use my code. I took Draconic as an example. <item id="7575" type="Weapon" name="Draconic Bow"> <set name="icon" val="icon.weapon_draconic_bow_i00" /> <set name="default_action" val="equip" /> <set name="weapon_type" val="BOW" /> <set name="bodypart" val="lrhand" /> <set name="random_damage" val="5" /> <set name="attack_range" val="500" /> <set name="damage_range" val="0;0;10;0" /> <set name="crystal_count" val="2440" /> <set name="crystal_type" val="S" /> <set name="material" val="ADAMANTAITE" /> <set name="weight" val="1650" /> <set name="price" val="48800000" /> <set name="soulshots" val="1" /> <set name="spiritshots" val="1" /> <set name="mp_consume" val="11" /> <set name="reuse_delay" val="1500" /> <cond msgId="1518"> <and> <player classId="SAGGITARIUS" /> </and> </cond> <for> <set order="0x08" stat="pAtk" val="581" /> <set order="0x08" stat="mAtk" val="132" /> <set order="0x08" stat="rCrit" val="12" /> <sub order="0x10" stat="accCombat" val="3" /> <set order="0x08" stat="pAtkSpd" val="293" /> <enchant val="0" order="0x0C" stat="pAtk" /> <enchant val="0" order="0x0C" stat="mAtk" /> </for> </item> Here you block to other classes, so only a certain class can use. <cond msgId="1518"> <and> <player classId="DUELIST" /> </and> </cond> when another class tries to use the bow !!