New Share !
Screen
Version : High Five
xml skills
<skill id="500246" levels="1" name="Monture Cheval Blanc">
<set name="aggroPoints" val="1" />
<set name="operateType" val="OP_ACTIVE" />
<set name="skillType" val="BUFF" />
<set name="target" val="TARGET_SELF" />
<set name="transformId" val="500052" />
<cond msgId="1509">
<player olympiad="false" />
</cond>
<for>
<effect name="Monture" abnormalTime="180000" val="0" abnormalLvl="1" abnormalType="transform" />
</for>
</skill>
<skill id="500247" levels="1" name="Monture Cheval Noir">
<set name="aggroPoints" val="1" />
<set name="operateType" val="OP_ACTIVE" />
<set name="skillType" val="BUFF" />
<set name="target" val="TARGET_SELF" />
<set name="transformId" val="500053" />
<cond msgId="1509">
<player olympiad="false" />
</cond>
<for>
<effect name="Monture" abnormalTime="180000" val="0" abnormalLvl="1" abnormalType="transform" />
</for>
</skill>
<skill id="500248" levels="1" name="Monture Cheval Brun">
<set name="aggroPoints" val="1" />
<set name="operateType" val="OP_ACTIVE" />
<set name="skillType" val="BUFF" />
<set name="target" val="TARGET_SELF" />
<set name="transformId" val="500054" />
<cond msgId="1509">
<player olympiad="false" />
</cond>
<for>
<effect name="Monture" abnormalTime="180000" val="0" abnormalLvl="1" abnormalType="transform" />
</for>
</skill>
scripts.cfg
transformations/ChevalBrun.java
transformations/ChevalNoir.java
transformations/ChevalBlanc.java
Transformation java
ChevalBlanc
package transformations;
import com.l2jserver.gameserver.datatables.SkillTable;
import com.l2jserver.gameserver.instancemanager.TransformationManager;
import com.l2jserver.gameserver.model.L2Transformation;
public class ChevalBlanc extends L2Transformation
{
private static final int[] SKILLS = {5491,839};
public ChevalBlanc()
{
// id, colRadius, colHeight
super(500052, 31, 32.5);
}
@Override
public void onTransform()
{
if (getPlayer().getTransformationId() != 500052 || getPlayer().isCursedWeaponEquipped())
return;
transformedSkills();
}
public void transformedSkills()
{
// Decrease Bow/Crossbow Attack Speed
getPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false);
// Dismount
getPlayer().addSkill(SkillTable.getInstance().getInfo(839, 1), false);
getPlayer().setTransformAllowedSkills(SKILLS);
}
@Override
public void onUntransform()
{
removeSkills();
}
public void removeSkills()
{
// Decrease Bow/Crossbow Attack Speed
getPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false);
// Dismount
getPlayer().removeSkill(SkillTable.getInstance().getInfo(839, 1), false);
getPlayer().setTransformAllowedSkills(EMPTY_ARRAY);
}
public static void main(String[] args)
{
TransformationManager.getInstance().registerTransformation(new ChevalBlanc());
}
}
ChevalNoir
package transformations;
import com.l2jserver.gameserver.datatables.SkillTable;
import com.l2jserver.gameserver.instancemanager.TransformationManager;
import com.l2jserver.gameserver.model.L2Transformation;
public class ChevalNoir extends L2Transformation
{
private static final int[] SKILLS = {5491,839};
public ChevalNoir()
{
// id, colRadius, colHeight
super(500053, 31, 32.5);
}
@Override
public void onTransform()
{
if (getPlayer().getTransformationId() != 500053 || getPlayer().isCursedWeaponEquipped())
return;
transformedSkills();
}
public void transformedSkills()
{
// Decrease Bow/Crossbow Attack Speed
getPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false);
// Dismount
getPlayer().addSkill(SkillTable.getInstance().getInfo(839, 1), false);
getPlayer().setTransformAllowedSkills(SKILLS);
}
@Override
public void onUntransform()
{
removeSkills();
}
public void removeSkills()
{
// Decrease Bow/Crossbow Attack Speed
getPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false);
// Dismount
getPlayer().removeSkill(SkillTable.getInstance().getInfo(839, 1), false);
getPlayer().setTransformAllowedSkills(EMPTY_ARRAY);
}
public static void main(String[] args)
{
TransformationManager.getInstance().registerTransformation(new ChevalNoir());
}
}
ChevalBrun
package transformations;
import com.l2jserver.gameserver.datatables.SkillTable;
import com.l2jserver.gameserver.instancemanager.TransformationManager;
import com.l2jserver.gameserver.model.L2Transformation;
public class ChevalBrun extends L2Transformation
{
private static final int[] SKILLS = {5491,839};
public ChevalBrun()
{
// id, colRadius, colHeight
super(500054, 31, 32.5);
}
@Override
public void onTransform()
{
if (getPlayer().getTransformationId() != 500054 || getPlayer().isCursedWeaponEquipped())
return;
transformedSkills();
}
public void transformedSkills()
{
// Decrease Bow/Crossbow Attack Speed
getPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false);
// Dismount
getPlayer().addSkill(SkillTable.getInstance().getInfo(839, 1), false);
getPlayer().setTransformAllowedSkills(SKILLS);
}
@Override
public void onUntransform()
{
removeSkills();
}
public void removeSkills()
{
// Decrease Bow/Crossbow Attack Speed
getPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false);
// Dismount
getPlayer().removeSkill(SkillTable.getInstance().getInfo(839, 1), false);
getPlayer().setTransformAllowedSkills(EMPTY_ARRAY);
}
public static void main(String[] args)
{
TransformationManager.getInstance().registerTransformation(new ChevalBrun());
}
}
.dat
utx
ridedata.dat
BarraCouda :-*