Jump to content
  • 0

Summon Buff aCis


Question

Posted

Well I adding the buffs in my buff for aCis, I came across this, where do I fix this?

wRATZGj.png

 

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??

6 answers to this question

Recommended Posts

  • 0
Posted
### 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

 

6 minutes ago, StinkyMadness said:

Buff id its not same as the Summon icon in client..

 

 

  • 0
Posted

WOW that's to deep xD

just:
 

String skill_icon = (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);

 

  • 0
Posted
30 minutes ago, StinkyMadness said:

WOW that's to deep xD

just:
 


String skill_icon = (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);

 

 

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));
 

  • 0
Posted (edited)
19 minutes ago, Williams said:

did not work

so you did it wrong

int row = 0;
for (int skillId : skills)
{
   String skill_icon = (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);
    sb.append(((row % 2) == 0 ? "<table width=296 bgcolor=000000><tr>" : "<table width=296><tr>"));
    sb.append("<td width=44 height=41 align=center><table bgcolor=999999 cellpadding=\"6\" cellspacing=\"-5\"><tr><td>");
    sb.append("<button action=\"bypass npc_%objectId%_dobuff " + groupType + " " + skillId + " " + page + "\" width=32 height=32 back=\"" + skill_icon + "\" fore=\"" + skill_icon + "\">");
    sb.append("</td></tr></table></td>");
    sb.append("<td width=256>" + SkillTable.getInstance().getInfo(skillId, 1).getName() + "<br1>");
    sb.append("<font color=B09878>" + BufferManager.getInstance().getAvailableBuff(skillId).getDescription() + "</font></td>");
    sb.append("</tr></table><img src=L2UI.SquareGray width=296 height=1>");
    row++;
}

 

Edited by StinkyMadness
  • Thanks 1
Guest
This topic is now closed to further replies.


  • Posts

    • https://vpslab.cloud/ Premium DDoS Protection now included with every server.
    • # Changelog - Public Updates   This changelog tracks user-facing updates and improvements to Top.MaxCheaters.com.   ---   ## [1.2.0] - 2026-01-XX   ### ⚡ Performance Improvements - **Faster Page Loads**: Implemented intelligent caching system that makes pages load significantly faster - **My Servers Page**: Now loads instantly when revisiting (no more loading delays) - **Main Page**: Server listings and filters now load faster on repeat visits - **Premium Ads**: Pricing information loads instantly - **Overall Performance**: Site now loads 60-80% faster with reduced server load   ### 🔄 Improvements - Pages now remember recent data, reducing wait times when navigating - Automatic cache refresh ensures you always see up-to-date information - Better user experience with instant page loads on repeat visits   ---   ## [1.1.1] - 2026-01-XX   ### 🐛 Bug Fixes - **VIP Server Filter**: Fixed "VIP L2 Servers" filter to correctly show all premium tier servers (VIP, Gold VIP, and Pinned) - **Ad Pricing Display**: Fixed ad pricing on Premium Ads page to automatically update when changed in admin panel   ### 🔄 Improvements - Ad pricing now syncs automatically across all pages - More accurate server filtering by tier   ---   ## [1.1.0] - 2026-01-XX   ### ✨ New Features - **Complete Chronicle List**: All chronicle options are now available in server forms and filters, including the latest Lineage 2 chronicles - **Improved Chronicle Display**: Server rows now show cleaner, shorter chronicle names for better readability   ### 🐛 Bug Fixes - **Chronicle Filter**: Fixed issue where "Infinite Odyssey" chronicle filter was not working correctly - **Missing Chronicles**: Fixed missing chronicle options in server creation and editing forms   ### 🔄 Improvements - Chronicle filters and dropdowns now stay in sync with the latest available chronicles - Better chronicle name formatting in server listings for improved visual clarity   ---   ## [1.0.0] - Initial Release   ### Features - 🎮 Server listings with multiple tiers (Normal, VIP, Gold VIP, Pinned) - 📊 Click tracking and server statistics - 🌍 Multi-language support (English, Spanish, Portuguese, Greek, Russian) - 💳 Payment system for premium server features - 🔐 Secure authentication system - 👑 Admin panel for server management - 📱 Fully responsive design for all devices - 🔍 Advanced filtering system (by chronicle, rate, server type, date) - 📅 Server opening date tracking - 🎯 Two viewing modes: By Date and By Votes (coming soon for all users)   ---   ## About This Changelog   This changelog focuses on updates that directly impact the user experience. Internal development changes and technical improvements are not included here.   For questions or feedback, please contact support.v
    • Now Acc Registration open. Create your account and get ready 🙂
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..