Jump to content

Recommended Posts

Posted

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

Posted

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?

Posted

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.

  • 2 weeks later...
  • 1 month later...
  • 2 months later...
  • 10 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock