Jump to content

Question

Posted

Hello.

 

I'm having a problem with the revita pops in my server.

When I try to use them - nothing happens, absolutely nothing.

I spawn them with id 20034.

The server is using L2J gracia final.

 

Any ideas? :/

13 answers to this question

Recommended Posts

  • 0
Posted

This is the itemhandler -> http://svn.l2jserver.com/trunk/L2J_Server/java/com/l2jserver/gameserver/handler/ItemHandler.java , if I'm not wrong..

 

Skill, where can I find that? :/

When I press it - nothing happens in-game and there's nothing new in the gameserver console too.

  • 0
Posted

Not sure , into navicat , etcitems table should be at last column something with item's skill id (not sure , i'm not working on interlude+ )

 

After that , check data/stats/skill . Should be something like ( yes , that's for your item )

 

http://trac.assembla.com/L2jOfficial/changeset/1446/trunk/data/data/stats/skills/22000-22099.xml

  • 0
Posted

I made it like this:

    <skill id="22006" levels="1" name="Halloween Candy">
        <set name="itemConsumeCount" val="1" />
        <set name="target" val="TARGET_SELF" />
        <set name="skillType" val="GIVE_VITALITY" />
        <set name="operateType" val="OP_ACTIVE" />
        <set name="isPotion" val="true" />
        <set name="power" val="20000" />
    </skill>

 

I've restarted the server after that and still no change.

I tried //skill_test 22006 and it just gives the effect, but no vitality.

  • 0
Posted

this: GIVE_VITALITY is bugged, search for java codes inside your core connected with "GIVE_VITALITY" and give us :P

  • 0
Posted

this: GIVE_VITALITY is bugged, search for java codes inside your core connected with "GIVE_VITALITY" and give us :P

 

Hm..

This is the GiveVitality.java in gameserver/data/scripts/handlers/skillhandlers/

package handlers.skillhandlers;

import net.sf.l2j.gameserver.handler.ISkillHandler;
import net.sf.l2j.gameserver.model.L2Object;
import net.sf.l2j.gameserver.model.L2Skill;
import net.sf.l2j.gameserver.model.actor.L2Character;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.templates.skills.L2SkillType;

public class GiveVitality implements ISkillHandler
{
private static final L2SkillType[] SKILL_IDS =
{
	L2SkillType.GIVE_VITALITY
};

public void useSkill(L2Character activeChar, L2Skill skill, L2Object[] targets)
{
	for (L2Object target : targets)
	{
		if (target instanceof L2PcInstance)
		{
			((L2PcInstance) target).updateVitalityPoints((float)skill.getPower(), false, false);
		}
	}
}

public L2SkillType[] getSkillIds()
{
	return SKILL_IDS;
}
}

 

Anything else?

  • 0
Posted

After

package handlers.skillhandlers;

import net.sf.l2j.gameserver.handler.ISkillHandler;
import net.sf.l2j.gameserver.model.L2Object;
import net.sf.l2j.gameserver.model.L2Skill;
import net.sf.l2j.gameserver.model.actor.L2Character;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.templates.skills.L2SkillType;

Delete all and add

public class GiveVitality implements ISkillHandler
{
private static final L2SkillType[] SKILL_IDS =
{
	L2SkillType.GIVE_VITALITY
};

@Override
public void useSkill(L2Character activeChar, L2Skill skill, L2Object[] targets)
{
	for (L2Object target : targets)
	{
		if (target.isPlayer())
		{
			if (skill.hasEffects())
			{
				target.getActingPlayer().stopSkillEffects(skill.getId());
				skill.getEffects(activeChar, target.getActingPlayer());
				SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
				sm.addSkillName(skill);
				target.sendPacket(sm);
			}
			target.getActingPlayer().updateVitalityPoints((float)skill.getPower(), false, false);
			target.getActingPlayer().sendPacket(new UserInfo(target.getActingPlayer()));
		}
	}
}

@Override
public L2SkillType[] getSkillIds()
{
	return SKILL_IDS;
}
}

  • 0
Posted

Edited it like that, started the server and got this error:

1. ERROR in D:\L2 server\gameserver\data\scripts\handlers\skillhandlers\GiveVita
lity.java (at line 36)
        if (target.isPlayer())
                   ^^^^^^^^
The method isPlayer() is undefined for the type L2Object
----------
2. ERROR in D:\L2 server\gameserver\data\scripts\handlers\skillhandlers\GiveVita
lity.java (at line 42)
        SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.YOU_FE
EL_S1_EFFECT);
        ^^^^^^^^^^^^^
SystemMessage cannot be resolved to a type
----------
3. ERROR in D:\L2 server\gameserver\data\scripts\handlers\skillhandlers\GiveVita
lity.java (at line 42)
        SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.YOU_FE
EL_S1_EFFECT);
                           ^^^^^^^^^^^^^
SystemMessage cannot be resolved
----------
4. ERROR in D:\L2 server\gameserver\data\scripts\handlers\skillhandlers\GiveVita
lity.java (at line 42)
        SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.YOU_FE
EL_S1_EFFECT);
                                                          ^^^^^^^^^^^^^^^
SystemMessageId cannot be resolved
----------
5. ERROR in D:\L2 server\gameserver\data\scripts\handlers\skillhandlers\GiveVita
lity.java (at line 47)
        target.getActingPlayer().sendPacket(new UserInfo(target.getActingPlayer(
)));
                                                ^^^^^^^^
UserInfo cannot be resolved to a type
----------
5 problems (5 errors)The method isPlayer() is undefined for the type net.sf.l2j.
gameserver.model.L2Object
SystemMessage cannot be resolved to a type
SystemMessage cannot be resolved
SystemMessageId cannot be resolved
UserInfo cannot be resolved to a type
Failed executing script: D:\L2 server\gameserver\data\scripts\handlers\MasterHan
dler.java. See MasterHandler.java.error.log for details.

  • 0
Posted

If I could do it on my own, I wasn't going to ask for help.... :/

Can anyone help me adapt it for T2.3 so that the damn revita pops would finally work? :(

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • The Return of L2Elixir – A Legacy Reborn in 2025 Read more features: https://l2elixir.org/features/ It’s time to relive the magic. Many of you remember L2Elixir, first launched in 2008 – a server that brought players together, created friendships, rivalries, and unforgettable memories. For two+ incredible years, until its closure in 2010, Elixir was more than just a server… it was home. In 2018, a fake project borrowed the name and damaged that legacy, but the true memories of L2Elixir never died. Today, in 2025, we are proud to announce that a new dedicated team has taken up the mantle to bring L2Elixir back to life – with respect for the past and a fresh vision for the future.   What to Expect We’re not here to be “just another server.” Our mission is to bring back nostalgia with innovation, offering a unique progression experience: Interlude-Like start, capturing that classic old-school feeling. A natural evolution into Gracia Final. Followed by Gracia Epilogue, keeping the journey alive without losing balance. This is not a copy-paste server – it’s a carefully crafted world designed to honor the spirit of Lineage II while introducing fresh ideas to keep the gameplay alive and rewarding. Why L2Elixir? A balanced environment where community comes first. A project built with passion, not profit. A server that values longevity, fairness, and nostalgia.   📅 Launch Date & Details Closed Beta: Online. Open Beta & Rewards: November 15 & 21:00 UTC +2 Launch: November 28 & 21:00 UTC +2   🔗 Join the Community Be part of history once again. Follow our Discord, join the discussion, and prepare to step back into the world where legends were made.   https://l2elixir.org/ https://discord.gg/5ydPHvhbxs L2Elixir 2025 – Honoring the Past. Building the Future.
    • 10-24-2025 - OUR TOPIC IS RELEVANT! CONTACT US BY THE CONTACTS BELOW
    • Can someone decompile in classes this LineageSkilleffect.u ? I am willing to pay if needed,  protocol god any. https://wormhole.app/BEj0pr#osVXtnL9Q-AmmVmxOcEZfw
    • I didn't have the key for the cache too i just writen random things, then the second time i opened it i didn't need to use the serial key again
    • estoy montandolo en mi win10pro jaja descargue tu rar y ahora no puedo iniciar la cache ya que pide una key serial podrias ayudarme asi lo monto para jugar solo  en el server.exe tambien me pide un serial   
  • 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