Jump to content
  • 0

Java Command


rullezz

Question

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.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0
# + 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.
# + 

Link to comment
Share on other sites

  • 0

# + 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%.

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

 

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

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