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

    • And Discord: https://discord.gg/3aYqWNqb
    • Ofc: https://discord.gg/3aYqWNqb
    • You can find some H5 skins shared in old L2 modding Discords, but most of the higher‑quality ones are either paid or come bundled with full client edits. I usually mix in commissioned work and whatever I can patch myself. On a side note, I fund a lot of these commissions by selling off game items through instant sell cs2 skins, which has been a quick way for me to get some cash for projects.
    • There is no need for gRPC in this case, even tho originally it was gRPC based but since we don't need it to be bi-directional, we switched to simple http requests for the web calls and SSEs for the data streamed from the server. There are distributed locks in place to precent race conditions between actions that can happen between multiple web instances and the server.   Local models can also be slow depending on the model, and most external models can actually be faster than local ones if you use Flash 2.5 or something along those lines. I am running on 512GB of Unified Memory on my Mac Studio M3 Ultra so the speed of the local model for a small model is pretty good but I tested it with Gemini too and it works equally as fast and in some cases faster. The way it works is that I'm using pgvector (one of the benefits of moving to Postgres) to search the data and see what the player can see etc and there is some batching of the next few actions for 2-4 seconds for the user until the next LLM request fires. The batching also includes branching on logic so if they for example fall under some HP they will move to kiting instead of attacking or maybe they heal etc.   Everything is authed and permission-based. The server and the backend of the frontend have secure communication between them, either with a symmetric key (not recommended for production) or a certificate (the recommended way), so there is no worry. It's all tied to the account's access level, etc., so nobody can make an action that they normally wouldn't be allowed to do. Even the MCP is token-based, and there are prompt injection protections in place. The MCP is audited, and every mutation needs confirmation. The admin area is only accessible to the admin account anyway so normal users can't access it.  
  • 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..