Jump to content
  • 0

Revita pops


HellRose

Question

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? :/

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

  • 0

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;
}
}

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Hi, my client version is Classic Kamael.   I build up the story line gradually with the option to turn different parts of the story on and off.   I mean you start a server and you only have The Kamael classic. As an admin, you will be able to gradually enable additional zones, RBs, items, instances, etc. through configs, up to Hi5 (I only have hi5 for now). Sometime in the future I want to add the GoD stuff as well because the new RB is strong and the regular S grade stuff is weak. Of course, there are some limitations of the game client, which I will not remove yet.   For example, I couldn't put Rafforty NPC on hi5 position because you can't get it here and there in the Classic client, so I put it on others.   It's a change that I like.   I'm most looking forward to coming up with zones, quests and instances for Gracia.
    • Hello. If you are looking for a reliable writing company that can provide a high level of service and high quality writing, then I recommend you to visit Essay Pro review https://nocramming.com/essaypro-review, where you can make sure for yourself that this company can be the best assistant in your difficult studies. The company's review is objective and easy to understand, which will help any user to quickly understand the information.
    • Why not making hi5 files to support login/play at the client and only make some client parts for the rest? Isnt it more easy?
    • Powerful Spells Caster & Spiritual Healer Web: lovespellsafrika.com Phone: +27780802727 WhatsApp +27789121499 Email: bbaantu@gmail.com Real Magic Spells | How To Get Back Ex-Boyfriend or Ex-Girlfriend. Real Magic Spells for all purpose; Now you can benefit through the use of spells like Love Spells, Money Spells, Talismans, Charms, Prayers, Curses and Chants. Magic Spells can be spell cast for many purposes. Talismans and Charms work as powerful Ingredients. If you need any spiritual knowledge on the power of Spells and Magic you can always Powerful Magic Rings Love Spells                     Casting of Simple and Effective Love Spells Easy Love Spells Spells for Attraction between two Lovers Binding Love Spells Get back Lost Lover Spells Spells to Strengthen Love Relation Lost Love Spells Soul Mate Spells Marriage Spell for a happy Married Life. Retrieve a Lost Love Spells Bring Back Your Love Spells Gay Love Spells, Lesbian Love Spells Anti-Love Spells, Divorce Spells, Break up Spells How to Get Back Ex-Boyfriend, or Ex-Girlfriend Casting Spells to Get Rid of Your Husband, Wife or Partner without Fights or them hating you Magic Rings, Powerful Love Rings Spells to stop a divorce Voodoo Spells for Love Love Return Spells Money & Prosperity Spells Phone: +27780802727 WhatsApp +27789121499 How to Cast Magic Money Spells Lottery Spells or Lotto Spells Voodoo Spells for Money Black Magic Spell for Money Protection & Banishing Spells Black Magic Spells and Curses to Destroy Enemy or Evil People Protection from Black Magic Spells and Curses Dark Magic Spells Voodoo Spells for Revenge Spells to win court cases &legal matters Healing spells for all purpose Stroke Diabetics Lottery Spells Phone: +27780802727 WhatsApp: +27789121499 Web: lovespellsafrika.com
  • Topics

×
×
  • Create New...