Created a Skilltype

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Lunawang
Posts: 41
Joined: Sat Mar 07, 2009 8:00 pm

Created a Skilltype

Post by Lunawang »

how to create it one skilltype or stacktype please?
can you make a guide for that plz?
Image
User avatar
DrHouse
L2j Inner Circle
L2j Inner Circle
Posts: 912
Joined: Mon Jan 22, 2007 12:14 am
Location: Spain

Re: Created a Skilltype

Post by DrHouse »

What do you mean?
Image

Leadership and management are not talk and talk, but talk and do

Proud of being a part of this project
User avatar
BiggBoss
L2j Veteran
L2j Veteran
Posts: 1104
Joined: Wed Apr 15, 2009 3:11 pm
Location: Spain

Re: Created a Skilltype

Post by BiggBoss »

Code: Select all

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

handler/skillhandler
Image
User avatar
Lunawang
Posts: 41
Joined: Sat Mar 07, 2009 8:00 pm

Re: Created a Skilltype

Post 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;	}} 
Image
User avatar
DrHouse
L2j Inner Circle
L2j Inner Circle
Posts: 912
Joined: Mon Jan 22, 2007 12:14 am
Location: Spain

Re: Created a Skilltype

Post 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!
Image

Leadership and management are not talk and talk, but talk and do

Proud of being a part of this project
Post Reply