Jump to content
  • 0

Question

5 answers to this question

Recommended Posts

  • 0
Posted

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
Posted

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

Guest
This topic is now closed to further replies.


  • Posts

    • in conclusion when somebody who has a project for 10+ years still on development writes an e-say to try until you succeed and then advertises his project, one of the reasons is he needs money, so l2j has once more become pure expensive hobby, you wont make money out of it.   You can still use L2jFrozen and get better results for this, i know some people that done it    keep in mind that C in aCis stands for Crappy, and after all these years its not a cool wordplay anymore, its a fact, prove me wrong.
    • First, don't really follow the "main voice", moreover if you consider it an hobby. Simply do what you want, you got only one life so use it as you want. If you make it an hobby, it's exactly like piano, or velo - only practice makes you better.   Secondly, how do you learn things ? It's actually a really important question, since some can simply be scholar, read books (theory) then practice ; and some simply can't read books. I'm the second type, I hated school, I find it boring - my knowledge in Java comes from try-and-fail. You improve your coding style every year or so, I can myself rewrite my own code (which I already considered top-notched) after a while. You always learn something new - even if Java barely evolves. L2J is a fun way to learn programming, it's a giant sandbox where you can edit anything, and I believe it should be taken as it.   My own way of learning was as follow : Add existing customs, no matter what they are : the point is to know main classes used by L2J / customs. L2J is barely Java knowledge ; the true knowledge is to know WHAT to search in WHICH location (what I call, organization). You have to understand than EVERYTHING you think already exists, in a form on another, in the source code. A custom is only the association of the different mechanisms you found "here and there", glued together in a proper goal. Once you know main classes to edit, and the customs you added are compiling fine, the main point is to know WHAT exactly you DID. Try to understand WHY and WHERE you actually copied the code. Third point would be to MANIPULATE the customs you added in order to fit your wish. First edit little values, then logic conditions ; eventually add a new Config, or a new functionality to the custom. Fourth point would be to begin to craft your own ideas. Once again, EVERYTHING already exists, in a form or another. You want a cycled event ? You got Seven Signs main task as exemple. Npc ? Search any type of Npc and figure out what it does. Fifth point would be to understand Java - mostly containers (WHAT and WHERE to use them), variables types and main Java mechanisms (inheritance, static modifier, etc). You should also begin to cut your code into maintainable classes or methods. Java can actually run without optimization, but bigger your ideas, more optimized and well-thought it should be. It's direct saved time in the future, and you would thank yourself doing so. Main tips : ALWAYS use any type of versioning system - GIT or SVN. It allows to save your work, step by step and eventually revert back anytime you want if you terribly messed up. L2J is 80% organization knowledge, and 20% Java knowledge. Basically, if you know WHAT and WHERE to search, if you aren't dumb, it's easy to replicate and re-use things. Cherry on top is to use a already good coded pack to avoid copy-paste crap and get bad habits. Avoid any type of russian or brazilian packs, for exemple - their best ability is to leak someone's else code. Obviously you need some default sense of logic, but Java and programming in general help you to improve it.   Finally, most of your questions could be solved joining related Discord (at least for aCis, I can't speak for others) - from the moment your question was correctly asked (and you seemed to search for the answer). My community (and myself) welcomes newbies, but got some issues with noobies.   The simpliest is to try, fail and repeat until you succeed - it sounds stupid, but that's basically how life works.   PS : about Java ressources, before ChatGPT, it was mostly about stackoverflow website, and site like Baeldung's one. With ChatGPT and alike, you generally double-cross AI output to avoid fucked up answers. Also, care about AI, they are often hallucinating really hard, even today. They can give you complete wrong answer, you tell them they are wrong, and they say "indeed, I suck, sorry - here's a new fucked up answer". You shouldn't 100% rely over AI answer, even if that can give sometimes legit answers, full code or just skeletons of ideas.   PPS : I don't think there are reliable ressources regarding L2J itself, also most of the proposed code decays pretty fast if the source code is actually maintained (at least for aCis). Still, old coded customs for old aCis sources are actually a good beginner challenge to apply on latest source.
    • WTS: - AQ - Baium - Zaken  - Frintezza - Vesper Fighter Focus Fire Element   pm for detalis
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock