Jump to content

Question

4 answers to this question

Recommended Posts

  • 0
Posted

U can try to put it on doDie task of L2Attackable

 

if (this.getNpcId()==NPC_ID && killer instanceof L2PcInstance)
		{
			int plus = 5;
			byte lvl = ((L2PcInstance)killer).getStat().getLevel();
			byte lvlup = (byte) (lvl+plus);
			((L2PcInstance)killer).getStat().setLevel(lvlup);
		}

 

 

  • 0
Posted

U can try to put it on doDie task of L2Attackable

 

if (this.getNpcId()==NPC_ID && killer instanceof L2PcInstance)
		{
			int plus = 5;
			byte lvl = ((L2PcInstance)killer).getStat().getLevel();
			byte lvlup = (byte) (lvl+plus);
			((L2PcInstance)killer).getStat().setLevel(lvlup);
		}

 

is not workin

  • 0
Posted

it is supposed to work, if its not:

-You could put code in wrong place FIX: Check if code is actually running while death, if not then move the code somewhere else.

-((L2PcInstance)killer).getStat().setLevel(lvlup); - its possible that this line will not update your level FIX: check for other methods that can increase level.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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