Jump to content

Recommended Posts

Posted

Hi,

 

Listen, I was adding this code manually, to the latest L2JFree pack (rev.8149). While compilation I get this:

flln2a.jpg

What is wrong with this ? I will be grateful from info or help ^^

Posted

If you are using Interlude then it's because it doesn't provide the ExShowScreenMessage.java serverpacket.

Take it from Epilogue. I suppose that you will just need to change the imports.

i am using epilogue i changed imports but as i saw, i dont have ExShowScreenMessage in my serverpackets, i will try to find it

Posted

i am using epilogue i changed imports but as i saw, i dont have ExShowScreenMessage in my serverpackets, i will try to find it

 

You MUST have it, except if you removed it accidentally.

Anyway, here you are:

 

/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
* 
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
* 
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jserver.gameserver.network.serverpackets;

/**
* @author Kerberos
*
*/
public class ExShowScreenMessage extends L2GameServerPacket
{
private int _type;
private int _sysMessageId;
private int _unk1;
private int _unk2;
private int _unk3;
private int _unk4;
private int _size;
private int _position;
private boolean _effect;
private String _text;
private int _time;

public ExShowScreenMessage (String text, int time)
{
	_type = 1;
	_sysMessageId = -1;
	_unk1 = 0;
	_unk2 = 0;
	_unk3 = 0;
	_unk4 = 0;
	_position = 0x02;
	_text = text;
	_time = time;
	_size = 0;
	_effect = false;
}

public ExShowScreenMessage (int type, int messageId, int position, int unk1, int size, int unk2, int unk3,boolean showEffect, int time,int unk4, String text)
{
	_type = type;
	_sysMessageId = messageId;
	_unk1 = unk1;
	_unk2 = unk2;
	_unk3 = unk3;
	_unk4 = unk4;
	_position = position;
	_text = text;
	_time = time;
	_size = size;
	_effect = showEffect;
}

@Override
public String getType()
{
	return "[s]FE:39 ExShowScreenMessage";
}

@Override
protected void writeImpl()
{
	writeC(0xfe);
	writeH(0x39);
	writeD(_type); // 0 - system messages, 1 - your defined text
	writeD(_sysMessageId); // system message id (_type must be 0 otherwise no effect)
	writeD(_position); // message position
	writeD(_unk1); // ?
	writeD(_size); // font size 0 - normal, 1 - small
	writeD(_unk2); // ?
	writeD(_unk3); // ? 
	writeD(_effect == true ? 1 : 0); // upper effect (0 - disabled, 1 enabled) - _position must be 2 (center) otherwise no effect
	writeD(_time); // time
	writeD(_unk4); // ?
	writeS(_text); // your text (_type must be 1, otherwise no effect)
}
}

Posted

ye soz i just didnt see it, now all works fine and i also had to delete activechar.

Posted

and i also had to delete activechar.

So what do You mean ? Just remove "activechar" part from code ? And make it like this:

 

+		                case 5:
+   				ExShowScreenMessage case5 = new ExShowScreenMessage("You reached 5 killing spree!", 10000);
+   				sendPacket(case5);
+				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 5 kill in a row!");
+   				break;

 

or like this:

 

+		                case 5:
+   				ExShowScreenMessage case5 = new ExShowScreenMessage("You reached 5 killing spree!", 10000);
+				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 5 kill in a row!");
+   				break;

 

?

Posted

+                 case 5:

+  ExShowScreenMessage case5 = new ExShowScreenMessage("You reached 5 killing spree!", 10000);

+  sendPacket(case5);

+ Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 5 kill in a row!");

+  break;

this worked for me

Posted

+                 case 5:

+    ExShowScreenMessage case5 = new ExShowScreenMessage("You reached 5 killing spree!", 10000);

+    sendPacket(case5);

+ Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 5 kill in a row!");

+    break;

this worked for me

OK, thx man, I will try that - I hope that this will work for me as well ^^

Cus

Posted

But when you die it's still count? becouse example i will reach 30 and when i will die, i can kill 30 again and nothing happening :?

 

I am using last rew of l2jEqual

 

Sory for my bad english.

Posted

dismount();

+

+ impro = 0;

 

if (isTransformed() && !isCursedWeaponEquipped())

{

 

When you die, pvp kills count will be reset

 

Yhea maybe, but on IL  i can't find that place...  ;/

Guest
This topic is now closed to further replies.



  • Posts

    • We are taking new orders. DM us on Telegram! We are taking new orders. DM us on Telegram!
    • Hello guys.Im looking for a simple autoclicker that works for servers with anticheat
    • Thank you for the reply. I know that this issue is due to L2 being so old. I was just wondering if there was an external way to fix the UI scaling. Like a patch or some settings.
    • Bro the game is so old it doesn't have a native option to scale the UI like in modern MMOs
    • Dear players, From April 19 to April 27 inc., the Bonus Start event will be active. It’s designed to help new and low-level characters get started more easily.   All characters that meet one of the following conditions: — created less than 3 days ago (regardless of level), — currently level 20 or below, — created during the event period, will receive upon login: — 10 sets of buff scrolls (phys or mage, depending on class), — 10 packs of +50% Drop/Spoil runes (2 hours each), — 10 packs of +50% Exp runes (2 hours each). Characters between level 21 and 30 will receive upon login: — 6 sets of buff scrolls, — 6 packs of +50% Drop/Spoil runes (2h each), — 6 packs of +50% Exp runes (2h each).   Event items will be removed approx. 09.05.2025 Server rates will be increased to x2.25. Take this chance to start your journey with ease or bring an old hero back into the fight — it’s the perfect time to test your strength! Open Beta Test is started!  Helper cats are waiting in towns — talk to them to receive the necessary equipment and level up your character. Siege Schedule:  - April 13 at 16:00 (GMT+2) – Innadrile Castle - April 14 at 20:00 (GMT+2) – Bandit Stronghold - April 15 at 20:00 (GMT+2) – Devastated Castle 📌 During the OBT, players who report bugs will receive CoL:   - 1 CoL for each reported staticmeshes bug (e.g., walking through textures, stairs, etc.) - 2 CoL or more for server-related issues (depending on severity) You can report bugs on the forum. The Open Beta Test will run approximately until April 15 at 23:00 (GMT+2). Your activity and feedback will help us improve the game.   Download links: Download client | Download updater 
  • Topics

×
×
  • Create New...