disorder25 Posted April 21, 2009 Posted April 21, 2009 error is on line 521 on this section: #Restore HP/MP if event == "71": st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp()) st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp()) return "5.htm" st.setState(COMPLETED) line 831: #Restore Pets' HP/MP if event == "90": st.getPlayer().getPet().setCurrentHp(st.getPlayer().getPet().getMaxHp()) st.getPlayer().getPet().setCurrentMp(st.getPlayer().getPet().getMaxMp()) return "6.htm" st.setState(COMPLETED) and line 662: st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp()) st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp()) return "1.htm" st.setState(COMPLETED) and they all about the same thing, restore hp/mp Quote
LauQ Posted April 21, 2009 Author Posted April 21, 2009 Hey, Yes I should have add it at the 1st post: L2Jfree wants to know something additional before you get to the HP, so its: st.getPlayer().getStatus().(st.getPlayer().getMaxHP()) This is working code for l2jfree: st.getPlayer().getStatus().setCurrentHpMp(st.getPlayer().getMaxHp(), st.getPlayer().getMaxMp()) and for pet: st.getPlayer().getPet().getStatus().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) I think its fixed when u use alt + h, replace: '.setCurrentHp' with '.getStatus().setCurrentHp' and do the same for MP. And yes the buffer at Havoc is better, but I wont share it as I want to keep it exclusive :) btw: u arent at Havoc anymore now? Quote
disorder25 Posted April 21, 2009 Posted April 21, 2009 Yes i'm. i have a server but is just to learn how to do things. Is a test server only. Only 2 of my friends log in once in a while to test things. Iwas there yesterday but since is not public yet i'm just spend time on my server. Quote
removed_001 Posted July 17, 2010 Posted July 17, 2010 i think i havent seen before that! btw works perfect in gracia final ct2.3 (all features)! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.