Jump to content
  • 0

Buffer Problem Python - Frozen


AtheIstan

Question

Hi guys, I have frozen pack and I was wondering why restore CP/MP/HP is not working. Is it python problem or what? I need help.

 

This is the code I have:

 

                    #Restore CP
            if event == "112":
                st.takeItems(ADENA_ID,0)
                st.getPlayer().restoreCP()
                return "1.htm"
                st.setState(State.COMPLETED)    
                
                    #Restore HP
            if event == "113":
                st.takeItems(ADENA_ID,0)
                st.getPlayer().restoreHP()
                return "1.htm"
                st.setState(State.COMPLETED)

                   #Restore MP
            if event == "114":
                st.takeItems(ADENA_ID,0)
                st.getPlayer().restoreMP()
                return "1.htm"
                st.setState(State.COMPLETED)

                        #Restore CP/HP/MP
            if event == "115":
                st.takeItems(ADENA_ID,0)
                st.getPlayer().restoreCP()
                st.getPlayer().restoreHP()
                st.getPlayer().restoreMP()
                return "1.htm"
                st.setState(State.COMPLETED)

 

 

Help me please. Thanks

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hi guys, I have frozen pack and I was wondering why restore CP/MP/HP is not working. Is it python problem or what? I need help.

 

This is the code I have:

 

                    #Restore CP

            if event == "112":

                st.takeItems(ADENA_ID,0)

                st.getPlayer().restoreCP()

                return "1.htm"

                st.setState(State.COMPLETED)    

                

                    #Restore HP

            if event == "113":

                st.takeItems(ADENA_ID,0)

                st.getPlayer().restoreHP()

                return "1.htm"

                st.setState(State.COMPLETED)

 

                   #Restore MP

            if event == "114":

                st.takeItems(ADENA_ID,0)

                st.getPlayer().restoreMP()

                return "1.htm"

                st.setState(State.COMPLETED)

 

                        #Restore CP/HP/MP

            if event == "115":

                st.takeItems(ADENA_ID,0)

                st.getPlayer().restoreCP()

                st.getPlayer().restoreHP()

                st.getPlayer().restoreMP()

                return "1.htm"

                st.setState(State.COMPLETED)

 

 

Help me please. Thanks

in html is correct? for example the button for restore cp have root 112?   if event == "112"  

better post the html here i cannot explain you good what i mean :)

 

2nd if the roots are ok try to remove this lane : st.takeItems(ADENA_ID,0) 

and try again. (make backup from  file) :D

Edited by nikosdevil20
Link to comment
Share on other sites

  • 0

buahahahahaha

every time im crying when i see [help] i use Frozen...

and every one post 
DELETE IT Hahaahahahah use acis ..hahahahahhah :( 

maybe ppl cant use acis.. if have problem with frozen :|......

 

@On

problem fixed?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...