gregory13 Posted May 18, 2009 Posted May 18, 2009 guys i have a problem with my buffer when i press restore cp/hp it says me this and when i press bless of queen it tells me this http://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?
0 gregory13 Posted May 18, 2009 Author Posted May 18, 2009 the thing with bless i solve it can u tell me how can i solve the restore thing?
0 NosferatusS Posted May 19, 2009 Posted May 19, 2009 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 gregory13 Posted May 19, 2009 Author Posted May 19, 2009 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 NosferatusS Posted May 19, 2009 Posted May 19, 2009 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 Frank Posted May 19, 2009 Posted May 19, 2009 @gregory13 Double posts are not allowed. Please take a look at the rules. It is the last warning for you. Topic Locked.
Question
gregory13
guys i have a problem with my buffer
when i press restore cp/hp it says me this
and when i press bless of queen it tells me this
i know the error is at init.py but it looks good to me can u help me plz?
10 answers to this question
Recommended Posts