Jump to content

[Interlude - Acis] Buffer (Tryskell)


melron

Recommended Posts

Hello guys,

I want to share with you my buffer ( nothing special but i like ).

The buffer is Tryskell on acis and i edited htmls and the instance too (Free rev).

Added fighter/mage set (with configs) with buffs animation   :not bad:

And Manual buffs.

Also, I am not 'pro'   :dat:  so... There may be some mistakes..

Download

 

image.pngimage.pngimage.png

image.pngimage.pngimage.png

 

image.pngimage.pngimage.png

image.pngimage.pngimage.png

 

 

Changes:

### Eclipse Workspace Patch 1.0
#P aCis_gameserver
Index: config/npcs.properties
===================================================================
--- config/npcs.properties	(revision 5)
+++ config/npcs.properties	(working copy)
@@ -52,6 +52,12 @@
 # The list of buffs, under a skillId,buffPrice,groupType format.
 BufferBuffs = 264,0,Songs;265,0,Songs;266,0,Songs;267,0,Songs;268,0,Songs;269,0,Songs;270,0,Songs;304,0,Songs;305,0,Songs;306,0,Songs;308,0,Songs;349,0,Songs;363,0,Songs;364,0,Songs;271,0,Dances;272,0,Dances;273,0,Dances;274,0,Dances;275,0,Dances;276,0,Dances;277,0,Dances;309,0,Dances;310,0,Dances;311,0,Dances;1002,0,Warcryer;1006,0,Warcryer;1007,0,Warcryer;1009,0,Warcryer;1308,0,Warcryer;1309,0,Warcryer;1310,0,Warcryer;1362,0,Warcryer;1390,0,Warcryer;1391,0,Warcryer;1413,0,Warcryer;1416,0,Overlord;1003,0,Overlord;1004,0,Overlord;1005,0,Overlord;1008,0,Overlord;1249,0,Overlord;1364,0,Overlord;1365,0,Overlord;1032,0,Prophet;1033,0,Prophet;1035,0,Prophet;1036,0,Prophet;1040,0,Prophet;1043,0,Prophet;1044,0,Prophet;1045,0,Prophet;1048,0,Prophet;1059,0,Shillen_Elder;1062,0,Prophet;1068,0,Prophet;1073,0,Elder;1077,0,Shillen_Elder;1078,0,Shillen_Elder;1085,0,Prophet;1086,0,Prophet;1087,0,Elder;1182,0,Elder;1189,0,Shillen_Elder;1191,0,Prophet;1204,0,Prophet;1242,0,Shillen_Elder;1243,0,Prophet;1259,0,Elder;1268,0,Shillen_Elder;1303,0,Shillen_Elder;1304,0,Elder;1352,0,Elder;1353,0,Elder;1354,0,Elder;1388,0,Shillen_Elder;1389,0,Shillen_Elder;1392,0,Prophet;1393,0,Elder;1397,0,Elder;1355,0,Elder;1356,0,Prophet;1357,0,Shillen_Elder;1363,0,Warcryer;1414,0,Overlord
 
+#Set of fighter buffs
+FighterSet = 1087,1243,1204,1068,1388,1040,1036,1035,1048,1045,1077,1242,1086,1043,1268,1036,1363,1240,1062,271,274,275,310,304,308,306,264,267,269,349,364,268,270,1416
+
+#Set of Mage buffs
+MageSet = 1087,1243,1204,1040,1036,1048,1045,1389,1062,1363,1085,1059,1303,1304,273,276,365,268,270,349,264,267,268,306,308,1416
+
 #=============================================================
 #                             Misc
 #=============================================================
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java	(revision 5)
+++ java/net/sf/l2j/Config.java	(working copy)
@@ -297,6 +297,10 @@
 	public static int CHAMPION_REWARD_QTY;
 	
 	/** Buffer */
+	public static String FIGHTER_SET;
+	public static int[] FIGHTER_SET_LIST;
+	public static String MAGE_SET;
+	public static int[] MAGE_SET_LIST;
 	public static int BUFFER_MAX_SCHEMES;
 	public static int BUFFER_MAX_SKILLS;
 	public static int BUFFER_STATIC_BUFF_COST;
@@ -885,7 +889,19 @@
 			BUFFER_MAX_SKILLS = npcs.getProperty("BufferMaxSkillsPerScheme", 24);
 			BUFFER_STATIC_BUFF_COST = npcs.getProperty("BufferStaticCostPerBuff", -1);
 			BUFFER_BUFFS = npcs.getProperty("BufferBuffs");
+			FIGHTER_SET = npcs.getProperty("FighterSet", "2375,3500,3501,3502,4422,4423,4424,4425,6648,6649,6650");
+			MAGE_SET = npcs.getProperty("MageSet", "2375,3500,3501,3502,4422,4423,4424,4425,6648,6649,6650");
+		
+			String[] FighterList = FIGHTER_SET.split(",");
+			FIGHTER_SET_LIST = new int[FighterList.length];
+			for (int i = 0; i < FighterList.length; i++)
+				FIGHTER_SET_LIST[i] = Integer.parseInt(FighterList[i]);
 			
+			String[] MageList = MAGE_SET.split(",");
+			MAGE_SET_LIST = new int[MageList.length];
+			for (int i = 0; i < MageList.length; i++)
+				MAGE_SET_LIST[i] = Integer.parseInt(MageList[i]);
+			
 			BUFFER_BUFFLIST = new HashMap<>();
 			for (String skillInfo : BUFFER_BUFFS.split(";"))
 			{
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2BufferInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2BufferInstance.java	(revision 5)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2BufferInstance.java	(working copy)
@@ -27,9 +27,11 @@
 import net.sf.l2j.commons.lang.StringUtil;
 import net.sf.l2j.gameserver.datatables.BufferTable;
 import net.sf.l2j.gameserver.datatables.SkillTable;
+import net.sf.l2j.gameserver.model.L2Skill;
 import net.sf.l2j.gameserver.model.actor.L2Character;
 import net.sf.l2j.gameserver.model.actor.L2Summon;
 import net.sf.l2j.gameserver.model.actor.template.NpcTemplate;
+import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
 import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage;
 
 public class L2BufferInstance extends L2NpcInstance
@@ -42,8 +44,11 @@
 	@Override
 	public void onBypassFeedback(L2PcInstance player, String command)
 	{
 		StringTokenizer st = new StringTokenizer(command, " ");
 		String currentCommand = st.nextToken();
+		int buffid = 0;
 		
 		if (currentCommand.startsWith("menu"))
 		{
@@ -52,13 +57,29 @@
 			html.replace("%objectId%", getObjectId());
 			player.sendPacket(html);
 		}
+		if (currentCommand.startsWith("chat"))
+		{
+			final NpcHtmlMessage html = new NpcHtmlMessage(0);
+			html.setFile(getHtmlPath(getNpcId(), Integer.parseInt(st.nextToken())));
+			html.replace("%objectId%", getObjectId());
+			player.sendPacket(html);
+		}
 		else if (currentCommand.startsWith("cleanup"))
 		{
+                       L2Skill buff;
+                       buff = SkillTable.getInstance().getInfo(1056, 1);
+                       buff.getEffects(this, player);
 			player.stopAllEffectsExceptThoseThatLastThroughDeath();
+			player.broadcastPacket(new MagicSkillUse(this, player, 1056, 1, 5, 0));
 			
 			final L2Summon summon = player.getPet();
 			if (summon != null)
+			{
+                               buff.getEffects(this, summon);
+				summon.broadcastPacket(new MagicSkillUse(this, summon, 1056, 1, 5, 0));
 				summon.stopAllEffectsExceptThoseThatLastThroughDeath();
+			}
+
 			
 			final NpcHtmlMessage html = new NpcHtmlMessage(0);
 			html.setFile(getHtmlPath(getNpcId(), 0));
@@ -69,10 +90,17 @@
 		{
 			player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp());
 			player.setCurrentCp(player.getMaxCp());
+		        L2Skill buff = SkillTable.getInstance().getInfo(1218, 1);
+	                buff.getEffects(this, player);
+			player.broadcastPacket(new MagicSkillUse(this, player, 1218, 1, 5, 0));
 			final L2Summon summon = player.getPet();
 			if (summon != null)
+			{
+                               buff.getEffects(this, player);
+				summon.broadcastPacket(new MagicSkillUse(this, summon, 1218, 1, 5, 0));
 				summon.setCurrentHpMp(summon.getMaxHp(), summon.getMaxMp());
+			}
 			
 			final NpcHtmlMessage html = new NpcHtmlMessage(0);
 			html.setFile(getHtmlPath(getNpcId(), 0));
@@ -103,6 +131,53 @@
 		{
 			showEditSchemeWindow(player, st.nextToken(), st.nextToken());
 		}
+		if (currentCommand.startsWith("getbuff"))
+		{
+			buffid = Integer.parseInt(st.nextToken());
+			int nextWindow = Integer.parseInt(st.nextToken());
+			if (buffid != 0)
+			{
+                               L2Skill buff =SkillTable.getInstance().getInfo(buffid, SkillTable.getInstance().getMaxLevel(buffid));
+                               buff.getEffects(this, player);
+				player.broadcastPacket(new MagicSkillUse(this, player, buffid, SkillTable.getInstance().getMaxLevel(buffid), 0, 0));
+				final NpcHtmlMessage html = new NpcHtmlMessage(0);
+				html.setFile(getHtmlPath(getNpcId(), nextWindow));
+				html.replace("%objectId%", getObjectId());
+				player.sendPacket(html);
+			}
+		}
+		else if (currentCommand.startsWith("fighterSet"))
+		{
+                       int fighterSet[] = Config.FIGHTER_SET_LIST;
+			player.stopAllEffectsExceptThoseThatLastThroughDeath();
+			L2Skill buff ;
+			for (int id: fighterSet)
+			{
+				buff = SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id));
+                               buff.getEffects(this, player);
+				player.broadcastPacket(new MagicSkillUse(this, player, id, buff.getLevel(), 0, 0));
+			}
+			final NpcHtmlMessage html = new NpcHtmlMessage(0);
+			html.setFile(getHtmlPath(getNpcId(), 0));
+			html.replace("%objectId%", getObjectId());
+			player.sendPacket(html);
+		}
+		else if (currentCommand.startsWith("mageSet"))
+		{
+                       int mageSet[] = Config.MAGE_SET_LIST;
+			player.stopAllEffectsExceptThoseThatLastThroughDeath();
+			L2Skill buff ;
+                       for (int id: mageSet)
+                        {
+                            buff = SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id));
+                            buff.getEffects(this, player);
+                            player.broadcastPacket(new MagicSkillUse(this, player, id, buff.getLevel(), 0, 0));
+                        }
+			final NpcHtmlMessage html = new NpcHtmlMessage(0);
+			html.setFile(getHtmlPath(getNpcId(), 0));
+			html.replace("%objectId%", getObjectId());
+			player.sendPacket(html);
+		}
 		else if (currentCommand.startsWith("skill"))
 		{
 			final String groupType = st.nextToken();
@@ -226,7 +301,7 @@
 		
 		final Map<String, ArrayList<Integer>> schemes = BufferTable.getInstance().getPlayerSchemes(player.getObjectId());
 		if (schemes == null || schemes.isEmpty())
-			sb.append("<font color=\"LEVEL\">You haven't defined any scheme, please go to 'Manage my schemes' and create at least one valid scheme.</font>");
+			sb.append("<center><font color=\"LEVEL\">You haven't defined any scheme</font></center>");
 		else
 		{
 			for (Map.Entry<String, ArrayList<Integer>> scheme : schemes.entrySet())
@@ -254,12 +329,14 @@
 		
 		final Map<String, ArrayList<Integer>> schemes = BufferTable.getInstance().getPlayerSchemes(player.getObjectId());
 		if (schemes == null || schemes.isEmpty())
-			sb.append("<font color=\"LEVEL\">You haven't created any scheme.</font>");
+			sb.append("<center><font color=\"3399CC\">You haven't created any scheme.</font></center>");
 		else
 		{
-			sb.append("<table>");
+			sb.append("<table bgcolor=000000 width =300>");
 			for (Map.Entry<String, ArrayList<Integer>> scheme : schemes.entrySet())
-				StringUtil.append(sb, "<tr><td width=140>", scheme.getKey(), " (", scheme.getValue().size(), " skill(s))</td><td width=60><button value=\"Clear\" action=\"bypass -h npc_%objectId%_clearscheme ", scheme.getKey(), "\" width=55 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td><td width=60><button value=\"Drop\" action=\"bypass -h npc_%objectId%_deletescheme ", scheme.getKey(), "\" width=55 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td></tr>");
+				StringUtil.append(sb, "<tr><td width=140><font color=\"3399CC\">", scheme.getKey(), " (", scheme.getValue().size(), " skill(s))</font></td><td width=60><button value=\"Clear\" action=\"bypass -h npc_%objectId%_clearscheme ", scheme.getKey(), "\" width=75 height=15 back=\"L2UI.DefaultButton_click\" fore=\"L2UI.DefaultButton\"></td><td width=60><button value=\"Drop\" action=\"bypass -h npc_%objectId%_deletescheme ", scheme.getKey(), "\" width=75 height=15 back=\"L2UI.DefaultButton_click\" fore=\"L2UI.DefaultButton\"></td></tr>");
 			
 			sb.append("</table>");
 		}
@@ -311,17 +388,17 @@
 	{
 		final Map<String, ArrayList<Integer>> schemes = BufferTable.getInstance().getPlayerSchemes(player.getObjectId());
 		if (schemes == null || schemes.isEmpty())
-			return "Please create at least one scheme.";
+			return "<table bgcolor=000000 width =300><tr><td align=center width=300><font color=\"3399CC\">Please create at least one scheme.</font></td></tr></table>";
 		
 		final StringBuilder sb = new StringBuilder(200);
-		sb.append("<table>");
+		sb.append("<table bgcolor=000000 width =300>");
 		
 		for (Map.Entry<String, ArrayList<Integer>> scheme : schemes.entrySet())
 		{
 			if (schemeName.equalsIgnoreCase(scheme.getKey()))
-				StringUtil.append(sb, "<tr><td width=200>", scheme.getKey(), " (<font color=\"LEVEL\">", scheme.getValue().size(), "</font> / ", Config.BUFFER_MAX_SKILLS, " skill(s))</td></tr>");
+				StringUtil.append(sb, "<tr><td align=center width=300>", scheme.getKey(), " (<font color=\"LEVEL\">", scheme.getValue().size(), "</font> / ", Config.BUFFER_MAX_SKILLS, " skill(s))</td></tr>");
 			else
-				StringUtil.append(sb, "<tr><td width=200><a action=\"bypass -h npc_%objectId%_editschemes none ", scheme.getKey(), "\">", scheme.getKey(), " (", scheme.getValue().size(), " / ", Config.BUFFER_MAX_SKILLS, " skill(s))</a></td></tr>");
+				StringUtil.append(sb, "<tr><td align=center width=300><font color=\"3399CC\"><a action=\"bypass -h npc_%objectId%_editschemes none ", scheme.getKey(), "\">", scheme.getKey(), " (", scheme.getValue().size(), " / ", Config.BUFFER_MAX_SKILLS, " skill(s))</a></font></td></tr>");
 		}
 		
 		sb.append("</table>");
@@ -394,7 +471,7 @@
 	{
 		final List<Integer> skills = BufferTable.getInstance().getScheme(player.getObjectId(), schemeName);
 		if (skills.isEmpty())
-			return "That scheme is empty.";
+			return "<font color=\"3399CC\">That scheme is empty.</font>";
 		
 		final StringBuilder sb = new StringBuilder(500);
 		sb.append("<table>");

Edited by melron
  • Upvote 2
Link to comment
Share on other sites

With a quick glance, when you do this:
 

   buff = SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id));
   MagicSkillUse mgc = new MagicSkillUse(this, player, id, buff.getLevel(), 0, 0);
   SkillTable.getInstance().getInfo(id, buff.getLevel()).getEffects(this, player);
   player.broadcastPacket(mgc);

you do 1 unnecessary call, change the getEffects() call to:

   buff.getEffects(this, player);

or even better:

  buff = SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id));
  buff.getEffects(this, player);
  player.broadcastPacket(new MagicSkillUse(this, player, id, buff.getLevel(), 0, 0));
Edited by Versus
Link to comment
Share on other sites

 

With a quick glance, when you do this:

 

   buff = SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id));
   MagicSkillUse mgc = new MagicSkillUse(this, player, id, buff.getLevel(), 0, 0);
   SkillTable.getInstance().getInfo(id, buff.getLevel()).getEffects(this, player);
   player.broadcastPacket(mgc);

you do 1 unnecessary call, change the getEffects() call to:

   buff.getEffects(this, player);

or even better:

  buff = SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id));
  buff.getEffects(this, player);
  player.broadcastPacket(new MagicSkillUse(this, player, id, buff.getLevel(), 0, 0));

Thans for your hint! Edited!

Edited by ⏇Melron⏇℠Abs
Link to comment
Share on other sites

[gr] apo ta kalutera shares pou exoun ginei to teleutaio kairo kai einai mia buffer..

 

gl man

[gr] Ευχαριστώ πολύ φίλε μου!

 

Thanks!

Link to comment
Share on other sites

Buffs with MANUAL description, so old school :D

Hah, there are many players arround who cant understand the buff just with the icon... Sounds !@# but is still usefull this way (my opinion)... :D

Edited by ⏇Melron⏇℠Abs
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • Hello everyone,    As you can see lately, the L2 community is decreasing, especially on private servers, its been 21 years since Lineage2 release date (1st October 2003). MaxCheaters.com was created in 2005 (with different names) and till today we are basically focused on Lineage 2. We made several attempts to add other games, but everyone still knew us as an L2 based forum. MaxCheaters has a long history and is one of the few forums that have survived to this day,It would be a shame to let the site die.   So I came up with a few ideas to improve it and follow the trends.   1. Create a utility token, (evm or solana), that will be used for several things such as: Staffers/moderators payment. Content creators reward system. (influencers/advertising/topic creators) Paid forum support. Exchanges and marketplaces . Lineage 2 utility token for private servers. Other MMO utility token for buying/selling accounts/gold etc. Maxcheaters fixed expenses/improvements/development/expansion/design/topsite   2. Reduce l2 sections, (we done this before) , and add more games on main page Less l2 sections More MMO games Focus on marketplaces    3. Rebuild staffers team/more events. Add one staffer per MMO game. More active staffers on our team.   4. Social media activity / streaming Twtter / TikTok content for gaming.  Streaming platforms (create official channel) Moderators/content creators for this content specifically.
    • From my personal experiences 🙂   Few months ago I decided to create my own Essence project. Project needs website, and I do not specialize in frontend development (t.y. i can make web work, but it won't be pretty for eye). So I search and find a guy in Discord, which claims he can make me a good looking HTML website for 30 EUR, prove some screenshots from his previous work. I agree. 1 week later, I get my HTML website, make few changes to contents, update URLs and upload it to FTP. Site looks good, I am happy that this headache is no more.   Few months passes. I randomly crawl through other Essence server websites scouting for good ideas for my own project. Suddenly one of russians project website opens and.. it's the same website as one I have 😉 perfectly absolutely same layout, colours, etc etc etc. I contact my guy to ask what the hell, to get blocked 😉  So I find a weekend worth of my time. Find HTML5 boilerplate generator and ask it to include Bootstrap 5 and some other stuff. Open Bootstrap documentation, drink two energy drinks on instant and start working my backend-inspired HTML black magic... Once I found suiting firefly effect for header, result looked oikay for me: Absolutely no magic or beauty here, but: * Unique (and probably nobody cares to rip it) * Done for free in ~10 hours by non-frontend dev * Most modern browsers friendly * Completely static content, loads instantly. No PHP at all * Sidebar statuses (online, pvp, pk) are pulled from account manager REST API endpoint and is cached for 5 minutes. Account manager runs separately from website frontend and has access to server DB. Where could/will it get better? * Code in Vue instead of HTML - time concerns only, but Vue is superior compared to HTML/PHP for supporting desktop/mobile, easing development by miles. Need to learn how to use it properly. * Way to manage content from backend - in my instance I think account manager is not really meant for that. Vue can help here too - there are components for content building. * Currently default Bootstrap components are used. Would be nice to have custom and more vibrant buttons. Guess what, Vue can help here too.   tl;dr don't buy 30EUR website, it will be ripped or shit. you better make your own website. Be curious. I am backend developer, I obviously have general idea how frontend works. But imho everyone who can make L2 server by editing NPC HTMLs, also can make their own simple website. ChatGPT and other AIs are your friends. Bootstrap. jQuery documentations are your friends. And when you feel good and comfortable with HTML, if you like, you can continue learning Vue, or going backend. Now, as for the top sites. You really need to invest money to make new project work. I mean really, really much money. For this concept to work, top website itself must get visited. But if you can sort that your top site would be popular amongst players, then it's a really very simple concept, as far as current 2004-ish sites goes. I think simple, working concept of this, maybe without proper frontend, but with implemented backend logics (add/edit/disable server, sort by votes count (top list), vote for server with verification, callback to server endpoint - all of that can be done using Symfony in mostly 5 days, with lots of breaks for coffee and a smoke 😉. Experienced mid frontend dev would make a Vue/React frontend for it in another 5 days. it's really really simple concept 🙂  
  • Topics

×
×
  • Create New...