Jump to content

[Updated][Share] Subclass Master Multi Skills by Allen (Interlude-H5)


Recommended Posts

  • 2 months later...
Posted

Allen mate maybe you can update the script for High five? The only error i get is from those two imports:

 

from com.l2jserver.gameserver.model.base import Experience
from com.l2jserver.gameserver.network.L2GameClient import GameClientState

 

They don't exist anymore.

 

Also the database table skill_trees doesn't exist anymore... they are in XML now

Thanks alot...

 

//edit:

 

I fixed the imports... Those are correct now:

from com.l2jserver.gameserver.network import L2GameClient
from com.l2jserver.gameserver.datatables import ExperienceTable

 

and replace this line:

tXp = Experience.LEVEL[NewLevel]

with this:

tXp = ExperienceTable.getInstance().getExpForLevel(NewLevel)

Posted

Allen mate maybe you can update the script for High five? The only error i get is from those two imports:

 

from com.l2jserver.gameserver.model.base import Experience
from com.l2jserver.gameserver.network.L2GameClient import GameClientState

 

They don't exist anymore.

 

Also the database table skill_trees doesn't exist anymore... they are in XML now

Thanks alot...

 

//edit:

 

I fixed the imports... Those are correct now:

from com.l2jserver.gameserver.network import L2GameClient
from com.l2jserver.gameserver.datatables import ExperienceTable

 

and replace this line:

tXp = Experience.LEVEL[NewLevel]

with this:

tXp = ExperienceTable.getInstance().getExpForLevel(NewLevel)

 

:) hi bro, i remade the script for h5 some month ago beside i added some configs, post updated ^^ check and test for any bugg is not tested 100%.

Posted

I don't even need to tell you how great you are :D Thx! I'll test and let you know how it goes! Cya bro.

 

//edit: Yea, works perfect. Thanks alot :)

Posted

I have an error when I delete a sub to test subclass_list put on the table "sub_index" = 1 obviously I have to say a mistake but you get the following error:

 

C:\xxx\game\data\scripts\custom\855_SubclassNpc\__init__.py
Traceback (innermost last):
  File "__init__.py", line 660, in onAdvEvent
NameError: even1

        at org.python.core.Py.NameError(Unknown Source)
        at org.python.core.PyFrame.getglobal(Unknown Source)
        at org.python.pycode.serializable._pyx1321536274741.onAdvEvent$32(__init
__.py:660)
        at org.python.pycode.serializable._pyx1321536274741.call_function(__init
__.py)
        at org.python.core.PyTableCode.call(Unknown Source)
        at org.python.core.PyTableCode.call(Unknown Source)
        at org.python.core.PyTableCode.call(Unknown Source)
        at org.python.core.PyFunction.__call__(Unknown Source)
        at org.python.core.PyMethod.__call__(Unknown Source)
        at org.python.core.PyObject.__call__(Unknown Source)
        at org.python.core.PyObject._jcallexc(Unknown Source)
        at org.python.core.PyObject._jcall(Unknown Source)
        at org.python.proxies.main$Quest$408.onAdvEvent(Unknown Source)
        at com.l2jserver.gameserver.model.quest.Quest.notifyEvent(Quest.java:465
)
        at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.processQue
stEvent(L2PcInstance.java:1763)
        at com.l2jserver.gameserver.network.clientpackets.RequestBypassToServer.
runImpl(RequestBypassToServer.java:218)
        at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run
(L2GameClientPacket.java:62)
        at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1
095)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Traceback (innermost last):
  File "__init__.py", line 660, in onAdvEvent
NameError: even1

 

at line 660:

elif info[1]!= player.getClassIndex(): return ERRORS_HTML(st,"13",even1)

 

I refer to:

elif case == "13": HTML.write("<tr><td align=\"center\"><font color=\"FF7700\">You can not delete the class bellow:<br><font color=\"LEVEL\">%s</font><br>Talk to a Grand Master and<br>switch to the proper class first.<br></td></tr>" % CLASS_NAME(id))

 

 

sorry i forget :P

 

i use freya highfive l2jserver

Posted

hehehe

 

change this code:

elif info[1]!= player.getClassIndex(): return ERRORS_HTML(st,"13",even1)

 

to this:

elif info[1]!= player.getClassIndex(): return ERRORS_HTML(st,"13","0")

 

 

and now it works fine:)

 

Allen added this fix but first fijate if well what I did.

  • 2 weeks later...
Posted

i have find a new error in gameserver console.

 

This error refers to this line of code:

        elif event == "dorestart":
            if player.isTeleporting():
                player.abortCast()
                player.setIsTeleporting(false)
            if player.getActiveRequester() != None:
                player.getActiveRequester().onTradeCancel(player)
                player.onTradeCancel(player.getActiveRequester())
            if player.isFlying():
                player.removeSkill(SkillTable.getInstance().getInfo(4289, 1))
                st.exitQuest(1)
            client = player.getClient()
            player.setClient(None)
            player.deleteMe()
            client.setActiveChar(None)
            client.setState(GameClientState.AUTHED)
            client.sendPacket(RestartResponse.valueOf(True))
            cl = CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1)
            client.sendPacket(cl)
            client.setCharSelection(cl.getCharInfo())
            return

and this is the error:

C:\Server\game\data\scripts\custom\855_SubclassNpc\__init__.py
Traceback (innermost last):
  File "__init__.py", line 589, in onAdvEvent
AttributeError: 'NoneType' object has no attribute 'setActiveChar'

        at org.python.core.Py.AttributeError(Unknown Source)
        at org.python.core.PyObject.noAttributeError(Unknown Source)
        at org.python.core.PyObject.__getattr__(Unknown Source)
        at org.python.core.PyObject.invoke(Unknown Source)
        at org.python.pycode.serializable._pyx1322229720855.onAdvEvent$32(__init
__.py:580)
        at org.python.pycode.serializable._pyx1322229720855.call_function(__init
__.py)
        at org.python.core.PyTableCode.call(Unknown Source)
        at org.python.core.PyTableCode.call(Unknown Source)
        at org.python.core.PyTableCode.call(Unknown Source)
        at org.python.core.PyFunction.__call__(Unknown Source)
        at org.python.core.PyMethod.__call__(Unknown Source)
        at org.python.core.PyObject.__call__(Unknown Source)
        at org.python.core.PyObject._jcallexc(Unknown Source)
        at org.python.core.PyObject._jcall(Unknown Source)
        at org.python.proxies.main$Quest$386.onAdvEvent(Unknown Source)
        at com.l2jserver.gameserver.model.quest.Quest.notifyEvent(Quest.java:468
)
        at com.l2jserver.gameserver.model.quest.QuestTimer$ScheduleTimerTask.run
(QuestTimer.java:43)
        at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(Thread
PoolManager.java:86)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$201(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Traceback (innermost last):
  File "__init__.py", line 589, in onAdvEvent
AttributeError: 'NoneType' object has no attribute 'setActiveChar'

Guest
This topic is now closed to further replies.



×
×
  • Create New...