Jump to content

Recommended Posts

Posted

Hello guys this topic is for them who uses l2jteon packs...

as you know Mirage does't work there so here is code...

 

import net.sf.l2j.gameserver.datatables.SkillTable;
import net.sf.l2j.gameserver.model.L2Effect;
import net.sf.l2j.gameserver.model.L2Skill;
import net.sf.l2j.gameserver.skills.Env;

/**
* @author kombat
*/
final class EffectBestowSkill extends L2Effect
{
public EffectBestowSkill(Env env, EffectTemplate template)
{
super(env, template);
}

/**
* @see net.sf.l2j.gameserver.model.L2Effect#getEffectType()
*/
@Override
public EffectType getEffectType()
{
return EffectType.BUFF;
}

/**
* @see net.sf.l2j.gameserver.model.L2Effect#onstart()
*/
@Override
public void onstart()
{
L2Skill tempSkill = SkillTable.getInstance().getInfo(getSkill().getTriggeredId(), getSkill().getTriggeredLevel());
if (tempSkill != null)
{
getEffected().addSkill(tempSkill);
return;
}
return;
}

/**
* @see net.sf.l2j.gameserver.model.L2Effect#onExit()
*/
@Override
public void onExit()
{
getEffected().removeSkill(getSkill().getTriggeredId());
}

/**
* @see net.sf.l2j.gameserver.model.L2Effect#onActionTime()
*/
@Override
public boolean onActionTime()
{
return false;
}
}

 

Credits:L2jBrasil....

Posted

Actually credits are to JFree lool since the 'L2jBrazil' guys just copied it.

 

Still its np, hope someone finds this useful ^^

Posted

Actually credits are to JFree lool since the 'L2jBrazil' guys just copied it.

 

Still its np, hope someone finds this useful ^^

its oneo :)

  • 2 weeks later...
Posted

Would you explain how to add it? to create a new file? if yes.. File name? file location? How should the skill look?

 

You should read few Guides about How to Compile and other guides related with Java in L2J.

Posted

You should read few Guides about How to Compile and other guides related with Java in L2J.

 

 

I know how to compile but only with diff files... I don't know what I have to do with this... Little explaination please :p

  • 1 month later...
  • 2 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...