Jump to content
  • 0

restore hp/mp/cp


JadoN

Question

exw mia buffer exw vali na gemizi cp hp mp alla to hp kai to mp dn to gemizi enw to cp mia xara kai sta alla leei script error enw sto cp m to gemizi kanonika

                        #Restore CP

if event == "115":

st.takeItems(ADENA_ID,0)

st.getPlayer().restoreCP()

return "1.htm"

st.setState(COMPLETED)

 

            #Restore HP

if event == "116":

st.takeItems(ADENA_ID,0)

st.getPlayer().restoreHP()

return "1.htm"

st.setState(COMPLETED)

 

            #Restore MP

if event == "117":

st.takeItems(ADENA_ID,0)

st.getPlayer().restoreMP()

return "1.htm"

st.setState(COMPLETED)

 

auta einai einai sto script

 

 

<td align=center><button value="Restore Hp" action="bypass -h Quest 9999_NPCBuffer 116" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>

<td align=center><button value="Restore Cp" action="bypass -h Quest 9999_NPCBuffer 115" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>

<td align=center><button value="Restore Mp" action="bypass -h Quest 9999_NPCBuffer 117" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>

 

kai auta sto html

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Δοκίμασε αυτό.

 

   

     #Restore MP
         if event == "117":
            st.takeItems(ADENA_ID,0)
            st.getPlayer().setCurrentMP(st.getPlayer.getMaxMP)
            return "1.htm"
            st.setState(COMPLETED)

Link to comment
Share on other sites

  • 0

if event == "?":

st.takeItems(ADENA_ID,0)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(), st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(State.COMPLETED)

Link to comment
Share on other sites

  • 0

exw mia buffer exw vali na gemizi cp hp mp alla to hp kai to mp dn to gemizi enw to cp mia xara kai sta alla leei script error enw sto cp m to gemizi kanonika

auta einai einai sto script

 

 

<td align=center><button value="Restore Hp" action="bypass -h Quest 9999_NPCBuffer 116" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>

<td align=center><button value="Restore Cp" action="bypass -h Quest 9999_NPCBuffer 115" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>

<td align=center><button value="Restore Mp" action="bypass -h Quest 9999_NPCBuffer 117" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>

 

kai auta sto html

  oriste  parto apla  eki p 8a to balis na balis kai ton ari8mo na min einai  idio id stin buffer  #Heal

if event == "71":

st.takeItems

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

                                st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

                                st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

return "1.htm"

st.setState(COMPLETED)

 

Link to comment
Share on other sites

  • 0

Όλο δικό σου μάστορα ^^

 

            #Restore CP

        if event == "115":

            st.takeItems(ADENA_ID,0)

            st.getPlayer().restoreCP()

            return "1.htm"

            st.setState(COMPLETED)

 

            #Restore HP - MP

        if event == "116":

            st.takeItems(ADENA_ID,0)

            st.getPlayer().restoreHPMP()

            return "1.htm"

            st.setState(COMPLETED)

<td align=center><button value="Restore CP" action="bypass -h Quest 9999_NPCBuffer 115" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>

<td align=center><button value="Restore HP - MP" action="bypass -h Quest 9999_NPCBuffer 116" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>

 

Η άμα τα θες όλα σε ένα ...

            #Restore CP - HP - MP

        if event == "115":

            st.takeItems(ADENA_ID,0)

            st.getPlayer().restoreCP()

            st.getPlayer().restoreHPMP()

            return "1.htm"

            st.setState(COMPLETED)

<td align=center><button value="CP/HP/MP" action="bypass -h Quest 9999_NPCBuffer 115" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>

Link to comment
Share on other sites

  • 0

ta methods sto instance einai:

setCurrentHpMp(getMaxHp(), getMaxMp());
setCurrentCp(getMaxCp());

 

Ara:

 

                        #Restore CP

        if event == "115":

            st.takeItems(ADENA_ID,0)

            st.getPlayer().setCurrentCp(getMaxCp());

            return "1.htm"

            st.setState(COMPLETED)

 

            #Restore HP

        if event == "116":

            st.takeItems(ADENA_ID,0)

            st.getPlayer().setCurrentHpMp(getMaxHp(), 0);

            return "1.htm"

            st.setState(COMPLETED)

 

            #Restore MP

        if event == "117":

            st.takeItems(ADENA_ID,0)

            st.getPlayer().setCurrentHpMp(0, getMaxMp());

            return "1.htm"

            st.setState(COMPLETED)

 

gia frozen

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • Yes, something like that. More specifically, the running, attacking and attack wait animations for female human with a bow.
    • Do you mean do something like I did?
    • I tried searching, but couldn't find an answer to my question. That is why I created the topic.
    • Is it worth it listing on any of them? Or its better if i just buy ads on fb/forums/google etc.?
    • I'm looking to edit existing character animations for the L2 Interlude client. What I did successfully so far: Exported the files files from animations/Fighter.ukx (to get the .psk and .psa files) Imported a couple .psk + one .psa file to Blender and made my changes to the animations. Exported the resulting .psa file (which ended up being the same size as the original file, so everything should be fine). I downloaded multiple different UnrealED editors - the one from UT2004, L2Editor posted by lordofdes here, L2Editor posted by 911reg. From there on I had trouble with converting back to .ukx. Below are different methods I've tried and failed. Method 1: Made a new .ukx file inside UT2004's UnrealED, containing only my edited .psa file and 1 .psk file Converted my .ukx file with Gildor's tool Placed the resulting file in the animations folder Used L2FileEdit to change the LineageWarrior.int file in the systems folder in order to reroute to the animations I edited Started up the game, but the changed animations were replaced instead with a simple walking animation for some reason   Method 2: Tried the following workflow with both L2Editors (911reg's version and lordofdes's version) (using and not using Gildor's UnrealED patches) Trying to open the original Fighter.ukx file resulted in some of the L2Editor variants crashing. With the ones that didn't crash, I saved the .ukx file with another name (even tried adding my custom .psa file but the result was the same as below). There was file size difference between the .ukx I made and the original .ukx. I tried both substituting the .ukx file as is in the animations folder and after I encrypted it using 911reg's version's encdec.exe In both cases the game crashed when I was about to go to the character screen (made sense since the file size should have been the same). What am I missing here? Is it at all possible to edit the original character animations?
  • Topics

×
×
  • Create New...