Jump to content

Recommended Posts

Posted

New Share !

 

Screen

Version : High Five

 

9.jpg2.jpg1.jpg

 

 

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  :-*

Posted

nice work, look very nice, maybe we can do new monture, adapting new horse or some mob for make -beep-table ^^

 

I work at present on the new. I would show him to you as soon as it will be ended. The horse being there only for a trial phase. ;)

 

(Sorry for my english, I use the translator)

Posted

I work at present on the new. I would show him to you as soon as it will be ended. The horse being there only for a trial phase. ;)

 

(Sorry for my english, I use the translator)

ok I'll be looking forward :)
  • 2 weeks later...
Guest
This topic is now closed to further replies.


×
×
  • Create New...