Jump to content
  • 0

Please help with a skill


Question

Posted

Hello, I tried today to make Hide skill for Interlude, well i made it alone i didnt c/p anything so here is what i have:

In skills folder:

 

<skill id="3267" levels="1" name="Hide">

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

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

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

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

 <for>

   <effect name="Invis" time="15" val="0" />

 </for>

</skill>

 

 

and my EffectInvis.java file:

 

/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package com.it.br.gameserver.skills.effects;

import com.it.br.gameserver.model.actor.instance.L2PcInstance;
import com.it.br.gameserver.model.L2Effect;
import com.it.br.gameserver.network.L2GameClient;
import com.it.br.gameserver.skills.Env;

public class EffectInvis extends L2Effect
{
private L2GameClient _client;
public L2GameClient getClient()
{
	return _client;
}

public void setClient(L2GameClient client)
{
	_client = client;
}
public EffectInvis(Env env, EffectTemplate template)
{
	super(env, template);
}

@Override
public EffectType getEffectType()
{
	return L2Effect.EffectType.INVISIBLE;
}

@Override
public boolean onStart() 
{
	final L2PcInstance activeChar = getClient().getActiveChar();
	activeChar.getAppearance().setInvisible();
	activeChar.broadcastUserInfo();
	activeChar.decayMe();
	activeChar.spawnMe();
       return true;
}

@Override
public boolean onActionTime()
{
	final L2PcInstance activeChar = getClient().getActiveChar();
	activeChar.getAppearance().setVisible();
	activeChar.broadcastUserInfo();
	return false;
}


@Override
public void onExit()
public void onExit()
{
	final L2PcInstance activeChar = getClient().getActiveChar();
	activeChar.getAppearance().setVisible();
	activeChar.broadcastUserInfo();
}
}

 

Now my problem:

I get the skill in game, with black icon(this is not a problem actually) but when i click it, it doesn't do anything.

Can anyone tell me why? I can't find the problem.. thanks.

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...