NumL0ck Posted August 18, 2012 Posted August 18, 2012 How make like this? http://www.l2serpentine.eu/images/information/Clan.jpg
0 EdenEternal Posted August 18, 2012 Posted August 18, 2012 Already exists on l2jfrozen. check data/scripts/village_master/9000_clan
0 NumL0ck Posted August 18, 2012 Author Posted August 18, 2012 but how i can't make like in photo... # # Created by DraX on 2005.08.12 # minor fixes by DrLecter 2005.09.10 import sys from com.l2jfrozen.gameserver.model.quest import State from com.l2jfrozen.gameserver.model.quest import QuestState from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest qn = "9000_clan" #print "9000. Clan" NPC=[30026,30031,30037,30066,30070,30109,30115,30120,30154,30174,30175,30176,30187,30191,30195,30288,30289,30290,30297,30358,30373,30462,30474,30498,30499,30500,30503,30504,30505,30508,30511,30512,30513,30520,30525,30565,30594,30595,30676,30677,30681,30685,30687,30689,30694,30699,30704,30845,30847,30849,30854,30857,30862,30865,30894,30897,30900,30905,30910,30913,31269,31272,31276,31279,31285,31288,31314,31317,31321,31324,31326,31328,31331,31334,31755,31958,31961,31965,31968,31974,31977,31996,32092,32093,32094,32095,32096,32097,32098] class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onAdvEvent (self,event,npc, player) : htmltext = event if event == "9000-03.htm" : if player.getClan() == None or not player.isClanLeader(): return "9000-03-no.htm" elif event == "9000-04.htm" : if player.getClan() == None or not player.isClanLeader(): return "9000-04-no.htm" elif event == "9000-05.htm" : if player.getClan() == None or not player.isClanLeader(): return "9000-05-no.htm" elif event == "9000-07.htm" : if player.getClan() == None or not player.isClanLeader(): return "9000-07-no.htm" elif event == "9000-06a.htm" : if player.getClan() == None or not player.isClanLeader(): return "9000-07-no.htm" elif event == "9000-12a.htm" : if player.getClan() == None or not player.isClanLeader(): return "9000-07-no.htm" elif event == "9000-12b.htm" : if player.getClan() == None or not player.isClanLeader(): return "9000-07-no.htm" elif event == "9000-13a.htm" : if player.getClan() == None or not player.isClanLeader(): return "9000-07-no.htm" elif event == "9000-13b.htm" : if player.getClan() == None or not player.isClanLeader(): return "9000-07-no.htm" elif event == "9000-14a.htm" : if player.getClan() == None or not player.isClanLeader(): return "9000-07-no.htm" elif event == "9000-14b.htm" : if player.getClan() == None or not player.isClanLeader(): return "9000-07-no.htm" elif event == "9000-15.htm" : if player.getClan() == None or not player.isClanLeader(): return "9000-07-no.htm" return htmltext def onTalk (Self,npc,player): st = player.getQuestState(qn) npcId = npc.getNpcId() if npcId in NPC: st.set("cond","0") st.setState(STARTED) return "9000-01.htm" QUEST = Quest(9000,qn,"village_master") CREATED = State('Start', QUEST) STARTED = State('Started', QUEST) COMPLETED = State('Completed', QUEST) QUEST.setInitialState(CREATED) for item in NPC: ### Quest NPC starter initialization QUEST.addStartNpc(item) ### Quest NPC initialization QUEST.addTalkId(item)
0 EdenEternal Posted August 18, 2012 Posted August 18, 2012 Index: com/l2jfrozen/gameserver/model/L2Clan.java =================================================================== --- com/l2jfrozen/gameserver/model/L2Clan.java (revision 948) +++ com/l2jfrozen/gameserver/model/L2Clan.java (working copy) @@ -2514,13 +2514,13 @@ case 0: { // upgrade to 1 - if(player.getSp() >= 30000 && player.getAdena() >= 650000) + if(player.getSp() >= 20000 && player.getAdena() >= 650000) { if(player.reduceAdena("ClanLvl", 650000, player.getTarget(), true)) { - player.setSp(player.getSp() - 30000); + player.setSp(player.getSp() - 20000); SystemMessage sp = new SystemMessage(SystemMessageId.SP_DECREASED_S1); - sp.addNumber(30000); + sp.addNumber(20000); player.sendPacket(sp); sp = null; increaseClanLevel = true; @@ -2622,11 +2622,11 @@ break; } case 5: - if(getReputationScore() >= 10000 && getMembersCount() >= 30) + if(getReputationScore() >= 2500 && getMembersCount() >= 10) { - setReputationScore(getReputationScore() - 10000, true); + setReputationScore(getReputationScore() - 2500, true); SystemMessage cr = new SystemMessage(SystemMessageId.S1_DEDUCTED_FROM_CLAN_REP); - cr.addNumber(10000); + cr.addNumber(25000); player.sendPacket(cr); cr = null; @@ -2635,11 +2635,11 @@ break; case 6: - if(getReputationScore() >= 20000 && getMembersCount() >= 80) + if(getReputationScore() >= 5000 && getMembersCount() >= 12) { - setReputationScore(getReputationScore() - 20000, true); + setReputationScore(getReputationScore() - 5000, true); SystemMessage cr = new SystemMessage(SystemMessageId.S1_DEDUCTED_FROM_CLAN_REP); - cr.addNumber(20000); + cr.addNumber(5000); player.sendPacket(cr); cr = null; @@ -2647,11 +2647,11 @@ } break; case 7: - if(getReputationScore() >= 40000 && getMembersCount() >= 120) + if(getReputationScore() >= 10000 && getMembersCount() >= 15) { - setReputationScore(getReputationScore() - 40000, true); + setReputationScore(getReputationScore() - 10000, true); SystemMessage cr = new SystemMessage(SystemMessageId.S1_DEDUCTED_FROM_CLAN_REP); - cr.addNumber(40000); + cr.addNumber(10000); player.sendPacket(cr); cr = null; DP Index: village_master/9000_clan/9000-03.htm =================================================================== --- village_master/9000_clan/9000-03.htm (revision 946) +++ village_master/9000_clan/9000-03.htm (working copy) @@ -1,22 +1,14 @@ <html><body> Clan level can be raised. To do so requires the following:<br> -Level 1: 20,000 SP, 650,000 Adena<br> -Level 2: 100,000 SP, 2,500,000 Adena<br> -Level 3: 350,000 SP, Evidence of Blood<br> -Level 4: 1,000,000 SP, Evidence of Determination<br> -Level 5: 2,500,000 SP, Evidence of Aspiration<br> -Level 6: 10,000 Clan Fame points, more than 30 clan members<br> -Level 7: 20,000 Clan Fame points, more than 80 clan members<br> -Level 8: 40,000 Clan Fame points, more than 120 clan members<br> -Level 9: 40,000 Clan Fame points, more than 120 clan members, 150 Blood Oaths<br> -Level 10: 40,000 Clan Fame points, more than 140 clan members, 5 Blood Alliances<br> -Level 11: 75,000 Clan Fame points, more than 170 clan members, Territory Owner<br> -You can get Evidence of Blood when you catch Bloody Queen in Dragon Valley.<br> -To obtain Evidence of Determination, meet Sir Christopher Rodemai in Giran Castle Town. <br> -To obtain Evidence of Aspiration, see Sir Gustav Athebaldt in the Town of Oren. <br> -To obtain the Blood Oath, you must capture and hold a fortress and demonstrate protection of your territory.<br> -To get the Determination of Blood, you must capture and hold a castle and demonstrate protection of your territory and care for your subjects.<br> -<a action="bypass -h Quest 9000_clan 9000-16.htm">See how to obtain Clan Fame points.</a><br> +Level 1: 30,000 SP, 650,000 Adena<br> +Level 2: 150,000 SP, 2,500,000 Adena<br> +Level 3: 500,000 SP, Evidence of Blood<br> +Level 4: 1,400,000 SP, Evidence of Determination<br> +Level 5: 3,500,000 SP, Evidence of Aspiration<br> +Level 6: 2,500 Clan Reputation, more than 10 clan members<br> +Level 7: 5,000 Clan Reputation, more than 12 clan members<br> +Level 8: 10,000 Clan Reputation, more than 15 clan members<br> +<a action="bypass -h Quest 9000_clan 9000-16.htm">Gaining Clan Reputation.</a><br> <button value="Level Up" action="bypass -h npc_%objectId%_increase_clan_level" width=80 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"> <button value="Cancel" action="bypass -h Quest 9000_clan 9000-01.htm" width=80 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"> </body></html> \ No newline at end of file But you should disable lvl 9&10&11 gaining that i don't remember
Question
NumL0ck
How make like this?
http://www.l2serpentine.eu/images/information/Clan.jpg
5 answers to this question
Recommended Posts