Jump to content
  • 0

Help me how to add Letter Collector event


Question

Posted

Help me how to add Letter Collector event and how to add it to the right shortcut bar.
Source code: L2J_Mobius_Essence_5.2_FrostLord
I'm a rookie and learning everything about server side out of hobby,
please help me thank you all

8 answers to this question

Recommended Posts

  • 0
Posted

I learned through a friend that Mobius free source code does not share the new version of the letter activity file. So this question has an answer, please lock it.

  • 0
Posted (edited)
1 hour ago, frogsandstarfish said:
package l2s.gameserver.network.l2.s2c;

import l2s.gameserver.network.l2.ServerPacketOpcodes;

/**
 * @author Bonux (bonuxq@gmail.com)
 * @date 16.11.2020
 **/
public class ExLetterCollectorUiLauncher extends L2GameServerPacket {
	private final boolean activate;
	private final int minLevel;

	public ExLetterCollectorUiLauncher(boolean activate, int minLevel) {
		this.activate = activate;
		this.minLevel = minLevel;
	}

	@Override
	protected void writeImpl() {
		writeOpcode(ServerPacketOpcodes.ExLetterCollectorUiLauncher);
		writeC(activate);
		writeD(minLevel);
	}
}

/*0xFE:0x23F*/    ExLetterCollectorUiLauncher,     // S_EX_LETTER_COLLECTOR_UI_LAUNCHER

this show only event window
for add new event icon in sidebar - need work with interface.u

sidebar not show\hide btns from server, only live\classic ver. difference, l2.ini params and hardcode in *.uc scripts

 

image.png.dfafe46828cd568d071fb37fbb7a1c06.png

Edited by api
  • Like 1
  • 0
Posted (edited)
Quote

 

Quote

 

Thanks !
Does interface.u need editing?
I tried to open 311System interface.u with UT Package Tool v2.0 beta5 and found _S_EX_LETTRE_COLLECTOR_UI_LAUNCHER
But this tool doesn't modify the file, maybe I won't use it.
I don't know how to modify it. no suitable tools
Thanks again for your answer anyway.
Thanks! 👍

Edited by RSC
  • 0
Posted
2 hours ago, RSC said:

Thanks !
Does interface.u need editing?
I tried to open 311System interface.u with UT Package Tool v2.0 beta5 and found _S_EX_LETTRE_COLLECTOR_UI_LAUNCHER
But this tool doesn't modify the file, maybe I won't use it.
I don't know how to modify it. no suitable tools
Thanks again for your answer anyway.
Thanks! 👍

you can edit it via UTPT+hex, small fix

need to delete it and btn will stop being hide by default

image.png.73ff3a7be3c291f89dae09557d23e814.png

 

  • 0
Posted
15 hours ago, frogsandstarfish said:

if you want to ADD a NEW event icon for a custom event or anything else you need to go through interface but if you just want letter collector to work the packet i posted controls the letter collector icon in sidebar

Sorry, just found out that two people replied to me
My fault and thank you very much for answering my question.
Thanks again!

20 hours ago, api said:

您可以通过 UTPT+hex 编辑它,小修复

需要删除它,btn 默认会停止隐藏

image.png.73ff3a7be3c291f89dae09557d23e814.png

 

OK, I'll try to do that.
grateful!

  • 0
Posted
16 hours ago, Vision said:

Have you found solution to your problem?

@RSC

Yes.
I have roughly understood the principle, if need to lock, please lock it.
Thanks again everyone!❤️

  • 0
Posted
3 hours ago, RSC said:

Yes.
I have roughly understood the principle, if need to lock, please lock it.
Thanks again everyone!❤️

 

Ok locked.

Guest
This topic is now closed to further replies.


×
×
  • Create New...