Jump to content

[Interlude - Acis] Buffer (Tryskell)


melron

Recommended Posts

umm . its good one as it simple also but i like old school ;) .. but i have something, i talked to the NPC and chosed manage scheme and select some buffs, songs, dances, and (( Shilen Elder )) i get Critical Error, and when i click on Fighter Set | Mage Set in Full Buff section it cancel all buff i already have.

 

For removing buffs simply find :

else if (currentCommand.startsWith("fighterSet"))
{
........
-player.stopAllEffectsExceptThoseThatLastThroughDeath();
..........
}

else if (currentCommand.startsWith("mageSet"))
{
.....
-player.stopAllEffectsExceptThoseThatLastThroughDeath();
...
}

About critical what to say :/ its working fine for me i havent any issue since i didnt edit this part..

 

Edit:

For your cleanup bypass:

fix to this

final L2Summon summon = player.getPet();
 			if (summon != null)
			{
                               buff.getEffects(this, summon);
				summon.broadcastPacket(new MagicSkillUse(this, summon, 1056, 1, 5, 0));
 				summon.stopAllEffectsExceptThoseThatLastThroughDeath();
			}
Edited by melron
Link to comment
Share on other sites

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

what about this one ?... 

Link to comment
Share on other sites

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

what about this one ?... 

 

You just have to remove 

player.stopAllEffectsExceptThoseThatLastThroughDeath();

In your sets

 

p.s Sweets you didnt answer to Access yet... :D

Edited by melron
Link to comment
Share on other sites

Client crash probably comes due to too high number of characters in the HTM. That's up to the layout designer to think about it (he added numerous font color and images). If you got a full scheme and switch to a full skills set you probably will end with one.

 

I reworked Tryskell buffer for next revision (363) btw :

  • data is stored on XML rather than complicated config.
  • Paging system, no scrolling needed (and no client crashes possible until you put font and table everywhere).
  • cutted panels amount (2 lesser) to make it easier to use and 20% of core code dissapeared too.
  • Skills got name and description.
  • Oldschool design.
  • No blinking effect for the whole buffer HTMs.

24llb86.jpg 20tmg48.jpg x2o13a.jpg

 

---

 

As free share, you could benefit it when 380 will come.

Edited by Tryskell
Link to comment
Share on other sites

47c355e3657efa4770d8ca691a71b0b3692.jpg

 

I got that, then i'm click Fighter set or Mage set.

Did u add the configs properly in npcs.properties?

Link to comment
Share on other sites

  • 3 weeks later...

Client crash probably comes due to too high number of characters in the HTM. That's up to the layout designer to think about it (he added numerous font color and images). If you got a full scheme and switch to a full skills set you probably will end with one.

 

I reworked Tryskell buffer for next revision (363) btw :

  • data is stored on XML rather than complicated config.
  • Paging system, no scrolling needed (and no client crashes possible until you put font and table everywhere).
  • cutted panels amount (2 lesser) to make it easier to use and 20% of core code dissapeared too.
  • Skills got name and description.
  • Oldschool design.
  • No blinking effect for the whole buffer HTMs.

24llb86.jpg 20tmg48.jpg x2o13a.jpg

 

---

 

As free share, you could benefit it when 380 will come.

waiting.... :D

Link to comment
Share on other sites

  • 10 months later...
1 hour ago, Benskis said:

Hey. Thanks for code, but I got One question.. What to change if I would like my buffer to cast a spell in dark elf woman's voice?

 

It's not achievable editing core side. You have to play with client.

 

If regular sounds can be read, you can also send a playSound packet.

Edited by Tryskell
Link to comment
Share on other sites

4 minutes ago, Tryskell said:

 

It's not achievable editing core side. You have to play with client.

 

If regular sounds can be read, you can also send a playSound packet.

Umgh. But at the moment I can hear human fighter's voice when npc is casting a skill. So that shouls be at core side, no?

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

    • ??? error   https://ibb.co/Srn4LsX No support  :S   No support : S ? :S
    • I also think this feature would bring more harm than good... another example is a dwarf rushing against your mobs so he takes priority, then he plays fake death and proceeds to grief the shit out of you. A minimum damage threshold is necessary, which would basically converge to what is the default feature (i.e. biggest damage dealer)
    • I bought the premium to watch the video and it's private. 😢
    • For some Majestic reason OP can't edit their topics anymore?    Let me update the potential offers, I got up to 2 spots to fill.   CONTACT TELEGRAM ONLY: https://t.me/asupport_g1     A credible team that SGuard represents is looking for java developers.    These positions is full time only i.e. your time is mostly dedicated within the team and team tasks, side gigs are fine, as long as you are able to combine your gig and main.  All necessary tools are provided.  The team is consistent with > 10 team members and the team is looking to expand to meet various goals. A decent Lineage 2 Essense OR Main (GOD) knowledge is needed.  Experience with l2r/l2p/l2s. mobius is fine too for referrence only. The team is friendly and goal oriented, very active and resourceful.   Requirements are standard, java knowledge is optional.  Multi language is a plus but not necessary (English/Russian), any is accepted.   Terms and conditions including compensation are reasonable and considered to be up for the industry standards. Details are negotiable with suitable candidates.   You will need to have a headset and a mic just for the initial processing, there're no team meetings or conferences after that. There's a small 30min interview process to demonstrate knowledge and just to meet each other.   The team has decided it is in their best interest to not publish their information at this time. Details will be available only for suitable candidates.   CONTACT TELEGRAM ONLY: https://t.me/asupport_g1
    • Thanks for the detailed info. I also have some ideas in mind but the execution may be hard. Thanks again!
  • Topics

×
×
  • Create New...