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

    • Migrating a legacy Interlude server to PostgreSQL while adding real observability is basically forcing 2006 MMO engineering to attend a 2026 infrastructure conference at gunpoint. PS: which revision of aCis? PS: 🧻what was broken during this whatever you call it.    AAC Guard beign asked to adapt to this be like: - Creating bugs since early 2018
    • OH MY LORDDDDDDDDDDDDDDDDDDDDD   FINALLY
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
    • I came out of my cave as I do once every 5 years. By now, I know nobody really cares about L2, but I still find it fun to experiment. Everything you see here will be free and open source. I have no interest in selling anything.   Long story short, I like to revisit Interlude and apply what I've learned to see how far I can push it. Here's Outerlude, a public fork of aCis for the modern age.   Video demo:   Work that has been done:   Redone the netcode from scratch to be async The NPC AI was completely redone based on Finite State Machines Moved to PostgreSQL and using some of its cool features Lots of config that should be hot reloadable has moved to the database OpenTelemetry instrumentation, where it makes sense, and a Grafana dashboard A built-in REST API for server management A built-in MCP Server for LLMs Nidrah AI, an AI Agent to make managing the server easier Real-time server map view Chat auditing and live snooping A new Fake Players Engine with a Node logic system and a new LLM planner for any behavior Just watch the video   If there is interest in this and I'm happy with it, or I get bored (which I always do), I will open-source it. Let me know what you think and if there is some feature you'd like me to implement.
  • Topics

×
×
  • Create New...

Important Information

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