Jump to content
  • 0

I have a problem with buffer


Question

10 answers to this question

Recommended Posts

  • 0
Posted

The problem is that your script for the NPC buffer has wrong link/direction to the CP/HP heal... open __init__ in your script/custom/buffer (smthing like that) and find the CP/HP heal section...

 

should looks smthing like this

 

		#Restore HP/CP
		st.getPlayer().restoreHPCP()
		st.setState(COMPLETED)

 

  • 0
Posted

only the part with hp/cp i will here it is:i did what u told me

 

 

#Song of Water

if event == "69":

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

st.setState(COMPLETED)

 

#Song of Wind

if event == "70":

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

st.setState(COMPLETED)

 

#Restore HP/CP

st.getPlayer().restoreHPCP()

st.setState(COMPLETED)

 

#Cancel Buffs - Thanks to YummiE

if event == "72":

st.getPlayer().stopAllEffects()

return "5.htm"

st.setState(COMPLETED)

 

#Wind Walk

if event == "73":

SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

  • 0
Posted

the line at the CP/HP that is missing is

 

if event == "[number of event]":

 

use this code

 

		#Restore HP/CP
	if event == "71":
		st.getPlayer().restoreHPCP()
		return "5.htm"
		st.setState(COMPLETED)

 

this should solve the problem

 

 

  • 0
Posted

@gregory13  Double posts are not allowed. Please take a look at the rules. It is the last warning for you.

 

Topic Locked.

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..