Jump to content

[Share] Updated Buff Master


Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...