Jump to content
  • 0

[help] Allow skill resurrection on summons


Question

Posted

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

 

  <skill id="1016" levels="9" name="Resurrection">
    <table name="#mpConsume_Init"> 12 18 25 31 36 39 42 46 48 </table>
    <table name="#mpConsume"> 47 70 97 121 144 156 165 182 191 </table>
    <table name="#power"> 0 20 30 40 50 55 60 65 70 </table>
    <table name="#aggro"> 121 196 290 374 460 502 542 595 624 </table>
    <set name="mpInitialConsume" val="#mpConsume_Init" />
    <set name="mpConsume" val="#mpConsume" />
    <set name="power" val="#power" />
    <set name="target" val="TARGET_CORPSE_PLAYER" />
    <set name="reuseDelay" val="120000" />
    <set name="hitTime" val="6000" />
    <set name="skillType" val="RESURRECT" />
    <set name="isMagic" val="true" />
    <set name="operateType" val="OP_ACTIVE" />
    <set name="castRange" val="400" />
    <set name="effectRange" val="900" />
    <set name="aggroPoints" val="#aggro" />
  </skill>

 

 

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.

 

 

 

Recommended Posts

  • 0
Posted

<table name="#mpConsume_Init"> 12 18 25 31 36 39 42 46 48 </table>

    <table name="#mpConsume"> 47 70 97 121 144 156 165 182 191 </table>

    <table name="#power"> 0 20 30 40 50 55 60 65 70 </table>

    <table name="#aggro"> 121 196 290 374 460 502 542 595 624 </table>

    <set name="mpInitialConsume" val="#mpConsume_Init" />

    <set name="mpConsume" val="#mpConsume" />

    <set name="power" val="#power" />

    <set name="target" val="TARGET_CORPSE_PET" />

    <set name="reuseDelay" val="120000" />

    <set name="hitTime" val="6000" />

    <set name="skillType" val="RESURRECT" />

    <set name="isMagic" val="true" />

    <set name="operateType" val="OP_ACTIVE" />

    <set name="castRange" val="400" />

    <set name="effectRange" val="900" />

    <set name="aggroPoints" val="#aggro" />

 

Good luck

  • 0
Posted

but if i use <set name="target" val="TARGET_CORPSE_PET" />

i can ress pet and summons but cant ress any player.

 

I want ress player and summons understad?

 

can i add 2 val?

 

 

<table name="#mpConsume_Init"> 12 18 25 31 36 39 42 46 48 </table>

    <table name="#mpConsume"> 47 70 97 121 144 156 165 182 191 </table>

    <table name="#power"> 0 20 30 40 50 55 60 65 70 </table>

    <table name="#aggro"> 121 196 290 374 460 502 542 595 624 </table>

    <set name="mpInitialConsume" val="#mpConsume_Init" />

    <set name="mpConsume" val="#mpConsume" />

    <set name="power" val="#power" />

    <set name="target" val="TARGET_CORPSE_PLAYER" />

    <set name="target" val="TARGET_CORPSE_PET" />

    <set name="reuseDelay" val="120000" />

    <set name="hitTime" val="6000" />

    <set name="skillType" val="RESURRECT" />

    <set name="isMagic" val="true" />

    <set name="operateType" val="OP_ACTIVE" />

    <set name="castRange" val="400" />

    <set name="effectRange" val="900" />

    <set name="aggroPoints" val="#aggro" />

 

  • 0
Posted

i can create a new skill too but i no want change the client side... if i create a new skill i need some icon for the new one. ill try edit this scroll of ress pet.

 

some troble i post here

 

ty

  • 0
Posted

<skill id="2179" levels="1" name="Blessed Scroll of Resurrection: Pet">

  <set name="power" val="100"/>

  <set name="target" val="TARGET_CORPSE_PET"/>

  <set name="hitTime" val="15000"/>

  <set name="skillType" val="RESURRECT"/>

  <set name="operateType" val="OP_ACTIVE"/>

  <set name="castRange" val="400"/>

  <set name="effectRange" val="600"/>

</skill>

  • 0
Posted

Ok, Rly B.s.o.ress.pet have the value val="TARGET_CORPSE_PET" its mean u can ress pet, buuut in the java code have a restriction for it there are a condition if not PET u cannot use this scroll, doest not matter if in the xml file have the enum "TARGET_CORPSE_PET", so if u try use this scrolls in summons your client ill receive the msg "Incorrect target." I changed the java code to allow the enum TARGET_CORPSE_PET to be valid for summons. if u add TARGET_CORPSE_PET for skill resurrection u dont have this problem because this skill condition no have this restriction. Later ill try code something to allow this skill ress player and summons. The problem in the xml file for skill ress is it dont allow table for target (ill try change it in the java) ...

 

<skill id="1016" levels="9" name="Resurrection">

<table name="#mpConsume_Init"> 12 18 25 31 36 39 42 46 48 </table>

    <table name="#mpConsume"> 47 70 97 121 144 156 165 182 191 </table>

    <table name="#power"> 0 20 30 40 50 55 60 65 70 </table>

    <table name="#aggro"> 121 196 290 374 460 502 542 595 624 </table>

    <table name="#target"> TARGET_CORPSE_PLAYER TARGET_CORPSE_PET </table>

    <set name="mpInitialConsume" val="#mpConsume_Init" />

    <set name="mpConsume" val="#mpConsume" />

    <set name="power" val="#power" />

    <set name="target" val="#target" />

    <set name="reuseDelay" val="120000" />

    <set name="hitTime" val="6000" />

    <set name="skillType" val="RESURRECT" />

    <set name="isMagic" val="true" />

    <set name="operateType" val="OP_ACTIVE" />

    <set name="castRange" val="400" />

    <set name="effectRange" val="900" />

    <set name="aggroPoints" val="#aggro" />

</skill>

  • 0
Posted

TARGET_NONE,

        TARGET_SELF,

        TARGET_ONE,

        TARGET_PARTY,

        TARGET_ALLY,

        TARGET_CLAN,

        TARGET_PET,

        TARGET_SUMMON,

        TARGET_AREA,

        TARGET_FRONT_AREA,

        TARGET_BEHIND_AREA,

        TARGET_AURA,

        TARGET_FRONT_AURA,

        TARGET_BEHIND_AURA,

        TARGET_CORPSE,

        TARGET_UNDEAD,

        TARGET_AREA_UNDEAD,

        TARGET_MULTIFACE,

        TARGET_CORPSE_ALLY,

        TARGET_CORPSE_CLAN,

        TARGET_CORPSE_PLAYER,

        TARGET_CORPSE_PET,

        TARGET_AREA_CORPSE_MOB,

        TARGET_CORPSE_MOB,

        TARGET_UNLOCKABLE,

        TARGET_HOLY,

        TARGET_FLAGPOLE,

        TARGET_PARTY_MEMBER,

        TARGET_PARTY_OTHER,

        TARGET_ENEMY_SUMMON,

        TARGET_OWNER_PET,

        TARGET_GROUND

 

see it and change target .

Guest
This topic is now closed to further replies.


  • Posts

    • 11-29-2025 - OUR TOPIC IS RELEVANT! CONTACT US BY THE CONTACTS BELOW
    • 🔥 Launch was a success! Over 500 players joined L2Elixir on opening day, and we are holding a steady 420–450 online! We faced extortion attempts and heavy DDoS attacks, but our protections held strong — even if the cost was far higher than expected. What matters is we fought back and kept the server online for you. ⚔️ 💙 Our priority is simple: Deliver a stable, fair, and growing server that will evolve for years to come. We continue to invest in protections, advertising, and development — and we won’t stop. All we ask from YOU is one thing: 👉 Keep playing. The more active the community is, the faster the server grows. 💠 Important Note: We have no paid clans or CPs, no “boosted” groups, no unfair benefits. Everyone has an equal chance to progress and compete. Thank you to everyone who joined, supported, and believed in this project. Let’s make L2Elixir great again — even in 2025–2026! 🚀   Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs   @Atom Can you please move to Private Servers? Thanks!
    • https://jumpshare.com/share/kIdeKALOhgtMKpBKqxpg Test Equip Armors-> FullPlate, Gloves, Legs, Chest , Boots
    • 黑色星期五 — 为您的流量提供高级福利 仅在11月28日,我们的特别促销码可为您提供13%的商店折扣。 促销码: BLACKFRIDAY (13% 折扣) 您可以通过我们的网站或 Telegram 机器人在商店购物! 有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram Messenger 方便访问商店。 其他服务: 虚拟号码服务: 前往 用于购买 Telegram Stars 的机器人: 前往 – 快速且优惠地在 Telegram 中购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们向您呈现当前的 促销和特惠活动 列表,用于购买我们服务的产品和服务: 1. 您可以在首次购买时使用促销码:SOCNET(15% 折扣) 2. 获取 $1 商店余额或 10–20% 折扣 — 只需在我们网站注册后发送您的用户名,格式如下:“SEND ME BONUS, MY USERNAME IS...” — 您需要在我们的论坛帖子中写下这句话! 3. SMM 面板首次试用可获得 $1:只需在我们的网站(支持)提交主题为“Get Trial Bonus”的工单。 4. 我们的 Telegram 频道和 Stars 购买机器人每周都会举办 Telegram Stars 抽奖活动! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ 邮箱: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock