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.

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