Jump to content
  • 0

Low Character's Hp And Pet Buff


ganjaradio

Question

Hello, im making a code to add some effects on character when he has low hp, but when should i add the code? :P

Alsp where should i add another:code:ive made that gives to the pet a buff if the summoner is dead?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

reduceCurrentHp is the place, if you use script (for mobs) it's onAttack event. You have to check current HPs in any case.

 

About second question, doDie on L2PcInstance. Check if there is a pet, if yes retrieve it and do whatever you want with it.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...