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:
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]
Question
L2Mercury
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:
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 L2Mercury2 answers to this question
Recommended Posts