Jump to content

Recommended Posts

Posted (edited)

Hello i have question about cancel msg on display , in my systemmsg now when someone cancel me , its show only last buff wich is canceled , my question is it posible to show all buffs there like this on my pic? 

 

http://prikachi.com/images.php?images/343/9036343E.jpg

Edited by as0ka
Posted

Hello i have question about cancel msg on display , in my systemmsg now when someone cancel me , its show only last buff wich is canceled , my question is it posible to show all buffs there like this on my pic? 

 

http://prikachi.com/images.php?images/343/9036343E.jpg

no

Posted

Do you mean to show multiple cancelled buffs in those big letters message, that shows currently - Song of Storm Guard ?

Yes, it can be done. There are 3 ways: 1. Server Side, 2. Interface.u, 3. Dll files

 

Server side is easiest:

In my H5 pack there is class EffectDispelEffects, it manages Cancels, Cleanses, Banes. After buffs are cancelled, you need to call new method:

private static void showCancelOnScreenMsg(Player effected, Collection<Effect> cancelledBuffs)
{
String msg = getCancelOnSreenMsg(cancelledBuffs);
showCancelOnScreenMsg(effected, msg);
}

private static string getCancelOnScreenMsg(Collection<Effect> cancelledBuffs)
{
StringBuilder builder = new StringBuilder();
boolean firstBuffAdded = false;
for(Effect e : cancelledBuffs)
{
if(firstBuffAdded)
builder.append("\n");
else
firstBuffAdded = true;
String effectName = e.getSkill().getName();
builder.append("- ").append(effectName);
}

return builder.toString();
}

private static void showCancelOnScreenMsg(Player player, String message)
{
player.sendPacket(new ExShowScreenMessage(message, 5000, ExShowScreenMessage.ScreenMessageAlign.MIDDLE_RIGHT, false);
}

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.

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock