Jump to content
  • 0

Java Command


Question

Posted

hi i need java comand to set player 1 lvl ...like this:

 

                                                        st.takeItems(ADENA_ID,1)

st.getPlayer().setNoble(True)

st.giveItems(NOBLESS_TIARA,1)

 

but for set player 1 lvl.

8 answers to this question

Recommended Posts

  • 0
Posted
# + player.removeExpAndSp(player.getExp() - Experience.LEVEL[1], 0);//Set player to level 1.
# + player.setClassId(player.getBaseClass());//Resets character to first class.
# + for (L2Skill skill : player.getAllSkills()){//Remove the player's current skills.
# + player.removeSkill(skill);
# + }
# + player.giveAvailableSkills();//Give players their eligible skills.
# + player.store(); //Updates the player's information in the Character Database.
# + 

  • 0
Posted

# + player.removeExpAndSp(player.getExp() - Experience.LEVEL[1], 0);//Set player to level 1.
# + player.setClassId(player.getBaseClass());//Resets character to first class.
# + for (L2Skill skill : player.getAllSkills()){//Remove the player's current skills.
# + player.removeSkill(skill);
# + }
# + player.giveAvailableSkills();//Give players their eligible skills.
# + player.store(); //Updates the player's information in the Character Database.
# + 

 

That's java and not python.

 

st.getPlayer().setExp(0)
st.getPlayer().getStat().setLevel(1)

 

If you don't unset exp to 0, the exp bar will show things like 4033.16% or 8126.53%.

  • 0
Posted

yea this help me a little

st.getPlayer().setExp(0)

st.getPlayer().getStat().setLevel(1)

 

but then if i exp i have all time 1 hp,mp,cp :/ dude

 

i wana make rebirth system but nothing...if any one have rebirth system for interlude plox post link here...i need it very very!!!!

  • 0
Posted

i wana make rebirth system but nothing...if any one have rebirth system for interlude plox post link here...i need it very very!!!!

 

Here you are ;)

 

http://www.4shared.com/file/199518032/247348a8/RebirthSystem.html

 

  • 0
Posted

yes it's for off....but i need for java...

a and one more any one have or can make npc who will make you 1 lvl like from start and give one item

 

That's java and not python.

 

st.getPlayer().setExp(0)
st.getPlayer().getStat().setLevel(1)

 

If you don't unset exp to 0, the exp bar will show things like 4033.16% or 8126.53%.

 

yeah it work but i have 1hp,cp,mp...and when i exp i don't take back my hp,cp,mp...

and one more to take 1 lvl i need change any armor on me

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

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