• 0

Question

Posted (edited)

Hello i have this quest and  i want 1 of the rewards to be a level up to Lvl76. Without the player.addExpAndSp method. Seems i cannot make player.setLevel to work.. :3

L2JAcis//

Any help?


			case STATE_STARTED:
				int cond = st.getInt("cond");
				if (cond == 1)
					htmltext = "50009-06.htm";
				else if (cond == 2)
				{
					htmltext = "50009-07.htm";
					st.takeItems(ADAMANTITE_ORE, -1);
					st.giveItems(SOE_GIRAN, 10);
					st.giveItems(ADENA, 10000000);
					player.teleportTo(83400, 148112, -3405, 0);
					st.playSound(QuestState.SOUND_FINISH);
					st.exitQuest(false);
				}
				break;
			

 

Edited by killer666

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0
32 minutes ago, killer666 said:

I wanted the player to be lvl 76 when the quest is completed that means around 5B exp and it doesnt let me do more than 2.147b here player.addExpAndSp(500, 500);

 

Just do multiple addexp commands in a row. looks ugly but works. ;)

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Already tried that and worked, i guess i ll go with this one.

My last question is if i can change the long parameters of the exp to float.

I wanted to increase the maximum exp requirred for each level after 76. This with the method you told me

makes the player level 76 but also adds 400% and more at the exp bar of the player and i dont know why..

Share this post


Link to post
Share on other sites
  • 0
16 minutes ago, killer666 said:

Already tried that and worked, i guess i ll go with this one.

My last question is if i can change the long parameters of the exp to float.

I wanted to increase the maximum exp requirred for each level after 76. This with the method you told me

makes the player level 76 but also adds 400% and more at the exp bar of the player and i dont know why..

 

quest exp multiplicator higher than x1?

Share this post


Link to post
Share on other sites
  • 0

I will have custom quests that reward xp. Its ok now.

I found that with 931.280.000 exp i reached lvl 76, i must have did something wrong cause now it works.

Thanks for your time and for trying to help.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.