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.



  • Posts

    • just with this extender that I have shared it is not possible to start with c4 client, you have to make some changes to the extender and it works with c4 client perfectly. regarding the updates in this last revision   🔹dll is not packaged with vmprotect   New custom zone types have been added: 🔹 NO_NOBLESS begin MinX=84638 MaxX=92616 MinY=-87170 MaxY=-82018 MinZ=-6000 MaxZ=0 Type=NO_NOBLESS KickOutPos=83007/148057/-3464 end   ▶️ This zone checks if the character is noble. If it does not meet the condition, it will be automatically kicked to the indicated position (KickOutPos). 🔹 CUSTOM_SPAWN_ZONE begin MinX=77275 MaxX=85704 MinY=10122 MaxY=18066 MinZ=-8000 MaxZ=5000 Type=CUSTOM_SPAWN_ZONE OutPos=83007/148057/-3464 Spawns={{82984/18066/-5256}};{{79275/15147/-5248}};{{82922/14263/-5256}};{{83704/10122/-5288}} end ▶️ This zone allows characters, upon death, to respawn with full buff, CP, HP and MP if they press “Fixed”. They will only be able to revive in one of the positions defined in Spawns. 🔧 Both zones are fully configurable from territorydata.txt
    • Could you tell me what changed in this update?   more one question: Is it possible to log in through the c4 client instead of interlude? That would be great  
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • 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