- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
everest-rj
Hi.
I wrote a code (java in the core) to increase the summons Decay time so a char summoner can ress your own summon, but any scroll of ress and skill the resurrection (id:1016) can ress the summon.
i tried subst <set name="target" val="TARGET_CORPSE_PLAYER" />
for <set name="target" val="TARGET_SUMMON" />
but dont work.
the xml below contain the setup for skill Resurrection...
In com.l2jfree.gameserver.handler.ISkillHandler i tried write a code to allow ress summon but dont work, i dont know if Im working on correct class or package.
I imported ...
import com.l2jfree.gameserver.model.actor.instance.L2SummonInstance;
and wrote this code but does not happen nothing, no erros, no exceptions just dont work...
// -- added this block else if for test skill resurrection on summon else if (cha instanceof L2SummonInstance) { if (((L2PetInstance) cha).getOwner() == activeChar) cha.doRevive(Formulas.getInstance().calculateSkillResurrectRestorePercent(skill.getPower(), activeChar.getStat().getWIT())); } // --How can allow the skil resurrection lvl 1 ress summons and in which class i must start work?
Cheers,
Everest.
16 answers to this question
Recommended Posts