Skip to content

[Share] Updated Buff Master

Featured Replies

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

  • Author

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?

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...

it seems to be nice.

i will test it.

  • 10 months later...

I tried it ! It works perfectly ! Thnx !

i think i havent seen before that!

btw works perfect in gracia final ct2.3 (all features)!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.