Jump to content
  • 0

Question

Recommended Posts

  • 0
Posted

Yeah...

 

L2NpcInstance

   public int getExpReward()

   {

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

+ if (player.isDonator())

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

+ else

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

   }

  • 0
Posted

Yeah...

 

L2NpcInstance

    public int getExpReward()

    {

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

if (player.isDonator())

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

else

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

    }

:@

 

Btw make the code with eclipse.

  • 0
Posted

Yeah...

 

L2NpcInstance

    public int getExpReward()

    {

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

if (player.isDonator())

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

else

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

    }

 

better to use the donator exp instead of the normal just more calc...

  • 0
Posted

i think its best if you start learning a bit more java.. before thinking of moding your server more than what config files allow..

 

Yeah...

 

L2NpcInstance

    public int getExpReward()

    {

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

if (player.isDonator())

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

else

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

    }

 

great.. and now that youre so good.. you can keep answering the next 10posts of how do i add that to my server?

  • 0
Posted

i think its best if you start learning a bit more java.. before thinking of moding your server more than what config files allow..

 

great.. and now that youre so good.. you can keep answering the next 10posts of how do i add that to my server?

 

ohhh cmon the modern worlds post hunting leave it as it is

 

if someone dont get it he talk about a diff file

  • 0
Posted

ohhh cmon the modern worlds post hunting leave it as it is

 

if someone dont get it he talk about a diff file

 

seriously i read this like 20x and its rlly not making any sense, no matter in what context i put it in..

 

your saying im post hunting lol?

"if someone dont get it he talk about a diff file" - seriously.. you cant say this makes sense to you?

  • 0
Posted

better to use the donator exp instead of the normal just more calc...

ofc but this is a simple way :)

 

i think its best if you start learning a bit more java.. before thinking of moding your server more than what config files allow..

 

great.. and now that youre so good.. you can keep answering the next 10posts of how do i add that to my server?

L2NpcInstance

    public int getExpReward()

    {

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

+      if (player.isDonator())

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

+      else

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

    }

  • 0
Posted

lol?since when * exp_rate * donator_exp_rate simplier than * donator_exp_rate

and he cant change  return (int)(getTemplate().rewardExp * rateXp * Config.DONATOR_XP); ?

  • 0
Posted

nothing, talking alone

 

so what is wrong with

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

  ?

 

jeez i never said theres something wrong with it lol...

 

anyway if you want such stuff adapt it from emu.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.




×
×
  • Create New...