Level reward #42


  • New
  • Enhancment
Open
Assigned to _ForgeUser7440145
  • _ForgeUser3633946 created this issue Feb 1, 2012

    What version of the product are you using?
    0.9.1

    I have question, is there any way to add player level? No exp, but level, I want to make dungeon, where when player complete it, he got 50 levels. I used /setExpReward - I set to 350, when player have 0 level, he got 50 level, but when he have for example level 11, he got only 14 levels...Is there any way to got 50 lvl always? No depend on actual level?Thanks very much.

  • _ForgeUser3633946 added the tags New Enhancment Feb 1, 2012
  • _ForgeUser3633946 posted a comment Feb 18, 2012

    Solved,

    public void rewardPlayerExp(Player p)
    {
    if(exp > 0)
    p.setLevel(p.getLevel() + exp);
    }


To post a comment, please login or register a new account.