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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...