Jump to content
  • 0

I have a problem with buffer


gregory13

Question

guys i have a problem with my buffer

when i press restore cp/hp it says me this

43076814.jpg

 

and when i press bless of queen it tells me this

width=600 height=480http://img141.imageshack.us/img141/1373/47472243.jpg[/img]

 

 

i know the error is at init.py but it looks good to me can u help me plz?

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

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)

 

Link to comment
Share on other sites

  • 0

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)

 

Link to comment
Share on other sites

  • 0

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

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...