ganjaradio Posted September 28, 2016 Share Posted September 28, 2016 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 More sharing options...
0 Tryskell Posted September 28, 2016 Share Posted September 28, 2016 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 More sharing options...
0 ganjaradio Posted September 29, 2016 Author Share Posted September 29, 2016 Thank you, lock it Link to comment Share on other sites More sharing options...
0 SweeTs Posted September 29, 2016 Share Posted September 29, 2016 How come you didnt know that :o Link to comment Share on other sites More sharing options...
Question
ganjaradio
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