Jump to content
  • 0

[HELP]Java Code EXP Problem


rayven18
 Share

Question

Kalhspera exw ena problhmataki. Prospathisa na valw sto L2Npc.java se L2JServer pack gracia final sto line 2424 auton ton kwdika:

	public int getExpReward()
{
L2Attackable attacker;
	  if (getLevel() > 79)
		  
	  {
	  double rateXp = getStat().calcStat(Stats.MAX_HP, 1, this, null);
	  return (int) (getTemplate().rewardExp * rateXp * 1.90);
	  }
	  
	  else
	  {
	  double rateXp = getStat().calcStat(Stats.MAX_HP, 1, this, null);
	  return (int) (getTemplate().rewardExp * rateXp * Config.RATE_XP);
	  }
	  }

Den mou vgazei kapoio error parola auta egw thelo otan o xaraktiras paei 80 lvl to exp na meiwnetai kata 90%. Dokimasa diafores times alla den doulepse kamia. Opoios voithisei tha tou eimai eugnwmwn thanks!

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

Kalhspera exw ena problhmataki. Prospathisa na valw sto L2Npc.java se L2JServer pack gracia final sto line 2424 auton ton kwdika:

 

public int getExpReward()

{

L2Attackable attacker;

  if (getLevel() > 79)

 

  {

  double rateXp = getStat().calcStat(Stats.MAX_HP, 1, this, null);

  return (int) (getTemplate().rewardExp * rateXp * 1.90);

  }

 

  else

  {

  double rateXp = getStat().calcStat(Stats.MAX_HP, 1, this, null);

  return (int) (getTemplate().rewardExp * rateXp * Config.RATE_XP);

  }

  }

 

Den mou vgazei kapoio error parola auta egw thelo otan o xaraktiras paei 80 lvl to exp na meiwnetai kata 90%. Dokimasa diafores times alla den doulepse kamia. Opoios voithisei tha tou eimai eugnwmwn thanks!

 

pare paradeigma apo edw kai kantw :)

	
L2PcInstance player;
public int getExpReward()
{
	  if (player.getLevel() > 79)
	  return (int) (getTemplate().rewardExp * rateXp * Config.NEW_EXP_80_RATE);	  
	  else
	  return (int) (getTemplate().rewardExp * rateXp * Config.RATE_XP);
	  }

Link to comment
Share on other sites

  • 0

Dhladh sto config tha valw auto?

 

 

# Experience multiplier

RateXp = 1000

# 80 lvl Rate XP

NewXp80Rate = 100

# Skill points multiplier

RateSp = 1000

 

 

 

******EDIT********

 

Sto config.properties ekana ena NewXpRate=100. Meta sto L2Npc.java evala ton kodika pou eixa apla allaxa sto if sto telos to Config.NEW_EXP_80_RATE me Config.NEW_XP_RATE kai dhmiourgisa kai mia public static float NEW_XP_RATE sto config.java. Ekana swsta?

Link to comment
Share on other sites

  • 0

Dhladh sto config tha valw auto?

 

 

# Experience multiplier

RateXp = 1000

# 80 lvl Rate XP

NewXp80Rate = 100

# Skill points multiplier

RateSp = 1000

 

 

 

******EDIT********

 

Sto config.properties ekana ena NewXpRate=100. Meta sto L2Npc.java evala ton kodika pou eixa apla allaxa sto if sto telos to Config.NEW_EXP_80_RATE me Config.NEW_XP_RATE kai dhmiourgisa kai mia public static float NEW_XP_RATE sto config.java. Ekana swsta?

 

auta einai ta configs

public static float NEW_EXP_80_RATE;
NEW_EXP_80_RATE = Float.parseFloat(server.getProperty("NewExpFor80", "1."));

 

NewExpFor80 = 1.

Link to comment
Share on other sites

  • 0

  
	  {
	  double rateXp = getStat().calcStat(Stats.MAX_HP, 1, this, null);
	  return (int) (getTemplate().rewardExp * rateXp * 1.90);
	  }

 

Auto to 1.90 simenei 1.9, dhladh simenei 10% ligotero apo 2.

OPOTE Simenei pws auto pou exeis orisei dinei ston pexth pou einai 79 level 90% parapanw exp (afou to 100% einai 1.0)

 

Ean theleis na to kaneis 90% ligotero kai o pexths na pernei 10% exp otan einai megalhteros apo 79 level valto 0.1 kai oxi 1.9.

 

(Sto dimotiko h aderfh mou kanei arithmous me dekadika psifia!!!)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Posts

    • We have added few new features for Second Edition of L2Etina. Check them out:   While streaming L2Etina, you will now receive L2Coins automatically.   Dwarves who have set private workshop, now automatically sell Crystallization to nearby players. For this service, they receive 10% of created crystals.   Before closing game, you will now see amount of earned experience, adena, total play time and acquired items.   You can now check Ranking of current and previous edition. This window can be found in Main Menu.   Party Window now have a special spot, showing if member has Noble Blessing.   Players from South America will be able to connect to the server by proxy.   Players who have supported first edition by donation, will now 2 weeks of free premium.   We have rewritten description of every buff, so they are now clear and handy. Vote rewards will be different for new edition, but exact items are not decided yet.   When spoil is successfull, you will now see special popup window. When you target monster who has been spoiled, you will see Spoil as a debuff.   Buff Store now have possibility to refuse to buff someone. Retail version of party matching was added back. Offline private stores now automatically disappear after 5 days. There are plenty more improvements and fixes, like ability to disable skill bar, multiple fixes to epic bosses, adjustments to aggro.
    • First of all thank you for fast answer. I have changed internal as you said but didn't work sir.
    • The difference isn't paying upfront or at the end of each week. The major difference is that paying clans to join, leads to leaders making random weak sides who play just for money and creates an extremely toxic fake competition in-game (i.e. l2 dex, e-global, valhalla and this kind of servers). Paying clans just to join absolutely kills the rivalry between them as there are no real losers and winners. Everyone gets paid at the end of every week so who cares right ?   Rewarding the winners with cash gives a massive motive to the leaders to create strong sides and try their best to win without giving any advantage to any clan (unlike paying people to join and basically giving them free premiums and whatnot). In this case, there will always be losers and winners and the rivalry will be kept alive.   I hope that clears up the massive difference between the 2 scenarios. Look at all those big russian servers. No1 makes fraps flaming about which side is better. Everyone cares about daily 9v9s or organized ones. There is no clan identity anymore because leaders simply don't care. They have been so detached from the clan's identity that most of the times the leader's CP holds a different name to the side's. This is a very important point to think about. 
    • change the server.ini  InternalHostname = 127.0.0.1     and try
  • 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 Disbaled AdBlock