Page 1 of 1

Created a Skilltype

Posted: Thu Aug 20, 2009 10:10 pm
by Lunawang
how to create it one skilltype or stacktype please?
can you make a guide for that plz?

Re: Created a Skilltype

Posted: Thu Aug 20, 2009 10:25 pm
by DrHouse
What do you mean?

Re: Created a Skilltype

Posted: Thu Aug 20, 2009 10:27 pm
by BiggBoss

Code: Select all

 <set name="skillType" val="BUFF"><set name="skillType" val="PDAM"> 
etc

handler/skillhandler

Re: Created a Skilltype

Posted: Thu Aug 20, 2009 11:00 pm
by Lunawang
if i have this effect?
how to created a skilltype OPEN_DOOR?

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

Re: Created a Skilltype

Posted: Thu Aug 20, 2009 11:05 pm
by DrHouse
There is an enum called L2SkillType, in gameserver.skills package. I guess you mean that.

BTW you dont have any effect there, just an skillhandler!