Page 1 of 1
Help for modification clan hall function
Posted: Sun Mar 07, 2010 12:02 pm
by kurtspirit
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision
Number: 3979
L2JDP Revision
Number: 7141
Hi all,
i just want to know if you can help me for function of clan hall :
When you clic on buff on CH, you must clic on "To List" after , so i want to know if that's possible to delete this "To List" and stay on buff list when you make the choice ?
I don't know if i'm on the right section or if i must post this on Request Custom Datapack ... Sorry if it's not the right place .
I find this :
Code: Select all
<html><body>You have cast support magic.<br>You have <font color="55FFFF">%mp%</font> MP remaining.<br><br><center><button value="To List" action="bypass -h npc_%objectId%_support_back" width=80 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></center></body></html>
Is it here i must modify something ? Thank you
Re: Help for modification clan hall function
Posted: Sun Mar 07, 2010 9:02 pm
by jurchiks
no, you need to remove the part where it returns this page and make it return the list instead
it's most probably in core
Re: Help for modification clan hall function
Posted: Sun Mar 07, 2010 10:16 pm
by kurtspirit
ok thank's i'll look inside ClanHallManager on core. Thank you ^^
Re: Help for modification clan hall function
Posted: Sun Mar 07, 2010 10:26 pm
by kurtspirit
I look inside core but i don't find it. But are you sure it's not on htm ?? Look support1.htm for example :
Code: Select all
<html><body>Select the support magic that you wish to cast.<br1>The amount of magic that can be cast is limited by the Manager's MP.<br>The Manager's MP is currently <font color="00FFFF">%mp%</font>.<br><CENTER><br><a action="bypass -h npc_%objectId%_support 4342 1">Wind Walk Lv.1</a><br1><a action="bypass -h npc_%objectId%_support 4343 1">Decrease Weight Lv.1</a><br1><a action="bypass -h npc_%objectId%_support 4344 1">Shield Lv.1</a><br1><a action="bypass -h npc_%objectId%_support 4346 1">Mental Shield Lv.1</a><br1><a action="bypass -h npc_%objectId%_support 4345 1">Might Lv.1</a><br1><br><button action="bypass -h npc_%objectId%_list_back" value="List" width=80 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></CENTER></body></html>
I think the modification must be here :
Code: Select all
<button action="bypass -h npc_%objectId%_list_back" value="List" width=80 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
But i'm not sure at all.. If someone can help me please? Thank you
Edit 1 :
Ok i find this :
Code: Select all
if (getClanHall().getFunction(ClanHall.FUNC_SUPPORT)== null) return; NpcHtmlMessage html = new NpcHtmlMessage(1); if(getClanHall().getFunction(ClanHall.FUNC_SUPPORT).getLvl() == 0) return;- html.setFile("data/html/clanHallManager/support-done.htm");+ html.setFile("data/html/clanHallManager/support" + getClanHall().getFunction(ClanHall.FUNC_SUPPORT).getLvl()+".htm"); html.replace("%mp%", String.valueOf((int)getCurrentMp())); sendHtmlMessage(player, html);
Do you think it's good? Thank you :p
Re: Help for modification clan hall function
Posted: Mon Mar 08, 2010 9:38 am
by jurchiks
test it first, but imo looks good, didn't check it in my sources though
Re: Help for modification clan hall function
Posted: Mon Mar 08, 2010 7:12 pm
by kurtspirit
Ok now i have a problem.. I done this fix and clanhallmanagerinstance have changed :/ So now it's :
Code: Select all
html.setFile(player.getHtmlPrefix(), "data/html/clanHallManager/support-done.htm");
Can you help me ? I'm lost with this new change :/ Thank you
Re: Help for modification clan hall function
Posted: Mon Mar 08, 2010 9:59 pm
by kurtspirit
I have try something like that :
Code: Select all
html.setFile(player.getHtmlPrefix(), "data/html/clanHallManager/support" + getClanHall().getFunction(ClanHall.FUNC_SUPPORT).getLvl()+".htm");
but after test, no effect on Clan Hall, allways this TO LIST

..
Can someone help me please ? Thank you
Re: Help for modification clan hall function
Posted: Tue Mar 09, 2010 10:25 am
by jurchiks
this should work:
Code: Select all
Index: java/com/l2jserver/gameserver/model/actor/instance/L2ClanHallManagerInstance.java===================================================================--- java/com/l2jserver/gameserver/model/actor/instance/L2ClanHallManagerInstance.java (revision 3985)+++ java/com/l2jserver/gameserver/model/actor/instance/L2ClanHallManagerInstance.java (working copy)@@ -1326,7 +1326,7 @@ NpcHtmlMessage html = new NpcHtmlMessage(1); if(getClanHall().getFunction(ClanHall.FUNC_SUPPORT).getLvl() == 0) return;- html.setFile(player.getHtmlPrefix(), "data/html/clanHallManager/support-done.htm");+ html.setFile(player.getHtmlPrefix(), "data/html/clanHallManager/support"+getClanHall().getFunction(ClanHall.FUNC_SUPPORT).getLvl()+".htm"); html.replace("%mp%", String.valueOf((int)getCurrentMp())); sendHtmlMessage(player, html); }
Re: Help for modification clan hall function
Posted: Tue Mar 09, 2010 2:23 pm
by kurtspirit
I'll try this Thank you for your answer ^^