Jump to content
  • 0

restore hp/mp/cp


Question

Posted

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

7 answers to this question

Recommended Posts

  • 0
Posted

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

 

   

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

  • 0
Posted

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)

  • 0
Posted

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)

 

  • 0
Posted

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

 

            #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>

  • 0
Posted

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

Guest
This topic is now closed to further replies.


×
×
  • Create New...