Jump to content
  • 0

Premium Account


EdenEternal

Question

hi MaxCheaters.com!

 

server:interlude.l2jteon rev.566

 

i want to create Premium Accounts on My Server.

example: who have premium account for him rates will be x100x100x100

 

Link to comment
Share on other sites

Recommended Posts

  • 0

yea , be sure

 

Okay . I'm sure . If you want to prove me that you have enough knowledge , create the code by tommorow.

 

I'm waiting.

Link to comment
Share on other sites

  • 0

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);

   }

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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...

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

  • 0

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);

    }

Link to comment
Share on other sites

  • 0

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); ?

Link to comment
Share on other sites

  • 0

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

 

what the hell are you talking about?

Link to comment
Share on other sites

  • 0

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.

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.
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...