Help for modification clan hall function

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
kurtspirit
Posts: 411
Joined: Thu Mar 12, 2009 8:20 pm
Location: Toulouse, France

Help for modification clan hall function

Post 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
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Help for modification clan hall function

Post 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
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
kurtspirit
Posts: 411
Joined: Thu Mar 12, 2009 8:20 pm
Location: Toulouse, France

Re: Help for modification clan hall function

Post by kurtspirit »

ok thank's i'll look inside ClanHallManager on core. Thank you ^^
kurtspirit
Posts: 411
Joined: Thu Mar 12, 2009 8:20 pm
Location: Toulouse, France

Re: Help for modification clan hall function

Post 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
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Help for modification clan hall function

Post by jurchiks »

test it first, but imo looks good, didn't check it in my sources though
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
kurtspirit
Posts: 411
Joined: Thu Mar 12, 2009 8:20 pm
Location: Toulouse, France

Re: Help for modification clan hall function

Post 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
kurtspirit
Posts: 411
Joined: Thu Mar 12, 2009 8:20 pm
Location: Toulouse, France

Re: Help for modification clan hall function

Post 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
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Help for modification clan hall function

Post 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);                     } 
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
kurtspirit
Posts: 411
Joined: Thu Mar 12, 2009 8:20 pm
Location: Toulouse, France

Re: Help for modification clan hall function

Post by kurtspirit »

I'll try this Thank you for your answer ^^
Post Reply