Created a Skilltype
Posted: Thu Aug 20, 2009 10:10 pm
how to create it one skilltype or stacktype please?
can you make a guide for that plz?
can you make a guide for that plz?
Code: Select all
<set name="skillType" val="BUFF"><set name="skillType" val="PDAM">
Code: Select all
package net.sf.l2j.gameserver.handler.skillhandlers; import net.sf.l2j.gameserver.handler.ISkillHandler;import net.sf.l2j.gameserver.model.L2Skill;import net.sf.l2j.gameserver.model.actor.L2Character;import net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance;import net.sf.l2j.gameserver.templates.skills.L2SkillType; public class OpenDoor implements ISkillHandler{ private static final L2SkillType[] SKILL_IDS = { L2SkillType.OPEN_DOOR }; public void useSkill(L2Character activeChar, L2Skill skill, L2Character... targets) { for (L2Character element : targets) { if (element instanceof L2DoorInstance) { L2DoorInstance door = (L2DoorInstance) element; door.openMe(); door.onOpen(); activeChar.sendMessage("Unlock the door!"); } } } public L2SkillType[] getSkillIds() { return SKILL_IDS; }}