Jump to content
  • 0

How to transferr Little Py Script to java


Question

Posted

Hi everybody i'm trying to convert all l2j .py quests to .java and while i rewrited it into java i had a little misunderstanding.

 

This script is in .py 

elif event[0:7] == "correct" :

          st.set("pass",str(st.getInt("pass")+1)) // I dont Know how to transferr it in java.

            htmltext = event[8:]

            if htmltext == "32367-07.htm":

                if st.getInt("pass") == 4 :

                    st.set("step","3")

                    self.cancelQuestTimer("1",npc,player)

                    self.cancelQuestTimer("2",npc,player)

                    self.cancelQuestTimer("3",npc,player)

                    self.cancelQuestTimer("4",npc,player)

                    st.unset("pass")

                    npc.deleteMe()

                else :

                    htmltext == "32367-06.htm"

______________

Error Screen

______________

5s7pc.jpg

Thanks for help

3 answers to this question

Recommended Posts

  • 0
Posted

str( is just String.valueOf(

 


 

In another hand, what are you transfering ? Quests, AIs, etc ? Which chronicle, which pack ?

 

Cause actually we could help each other regarding it. My pack got already 50% scripts folder on Java.

  • 0
Posted

I'm Transferring all py files to .java i use l2jserver H5 pack

Actually now i am working on Quests

 

This is what I say.

 

Me and my helpers, we're translating the scripts folder. My project is an IL project, you only have to change rewards (generally xp/sp is added) to fit with H5.

 

Only few quests have been changed between IL and H5 (not even 10). You will have only to busy about postIL quests, we can work together in common (C1 to IL) quests (you pick quests aCis already made and adapt rewards, and you can share missing quests).

 

You can see current project overview on my forum project.

 

You can find a precompiled pack shared on Announcement section with all the DP you want.

 

Finally, if your goal is to translate the whole quests, you will take a very long time to achieve it alone. With ppl translating for me, it takes already a long time to correct/test every quest.

 

Regards, whatever you decide to choose.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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