Skip to content

Set Level???

Featured Replies

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

addExpAndSp  is the way to go, simply check //set level (previously //setlevel) admincommand.

  • Author

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

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

  • Author

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

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?

  • killer666 locked and unlocked this topic
  • Author

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.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.