Jump to content

Question

Posted (edited)

Hello guys, i have an error in python while i try to add subclass(custom quest) to a player. When his getting his subclass his level will get at level 40, the problem is that the error occurs at changing the level. Someone has an idea why?

 

error:

 

mTg18JV.png

 

code:

					try :
						ins.executeUpdate()
						ins.close()
						con.close()
					except : pass
					if resetskills(st) == 1: pass
					if ReqItems == True and not st.player.isGM() : st.takeItems(Item2_Req,Item2_Num)
					if DecLevel == True and not st.player.isGM() :
						pXp = st.player.getExp()
                                                tXp = Experience.LEVEL[NewLevel]
						if pXp > tXp: st.player.removeExpAndSp(pXp - tXp, 0)
					st.player.setClassId(int(event))
					if not st.player.isSubClassActive(): st.player.setBaseClass(int(event))
					st.player.store()
					st.player.broadcastUserInfo()
					return complete(st)
			    		st.exitQuest(1)

The code line error : tXp = Experience.LEVEL[NewLevel]

Edited by L2Mercury

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..