- Joined
- Feb 1, 2009
- Messages
- 5
- Reaction score
- 0
Hi, FIrst of all
I managed, ofc, to spawn any new mount, the mechanical slay, the lion... the problem is when i summon the corresponding items (they look like the horse summoning bracelet), nothing happends,
now, using the model used to summon the light purple horse, i saw 2 things:
1. u need to add the skill to the lion or sledge
2. u need to define the skill value
now, i observed that mounting the horse is a transformation basically, it s not like riding the wolf
so i found out the id value links the skill to the transformation java file, but i cant figure out in the java file what determines the model id...how the transformation looks...
i think if i find out what determines the transformation look i can at least transform to the lion or anything else using the bracelet...better then nothing, BUT
since the ligh tpurple mounted horse is basically the same like any other transform i suppose there is a lion or slay with the model on it...
so all i need is the way to link the model to the java file, if the java file determines how the model looks...
sounds confusing...it is...pls some experts help me, it would be just great to have the rideable sledge and lion indeed rideable. ty
I managed, ofc, to spawn any new mount, the mechanical slay, the lion... the problem is when i summon the corresponding items (they look like the horse summoning bracelet), nothing happends,
now, using the model used to summon the light purple horse, i saw 2 things:
1. u need to add the skill to the lion or sledge
2. u need to define the skill value
now, i observed that mounting the horse is a transformation basically, it s not like riding the wolf
package transformations;
import net.sf.l2j.gameserver.datatables.SkillTable;
import net.sf.l2j.gameserver.instancemanager.TransformationManager;
import net.sf.l2j.gameserver.model.L2Transformation;
public class LightPurpleManedHorse extends L2Transformation
{
public LightPurpleManedHorse()
{
// id, duration (secs), colRadius, colHeight
super(106, 1800, 12.0, 32.0);
}
public void onTransform()
{
if (getPlayer().getTransformationId() != 106 || getPlayer().isCursedWeaponEquipped())
return;
// give transformation skills
transformedSkills();
}
public void transformedSkills()
{
// Dismount
getPlayer().addSkill(SkillTable.getInstance().getInfo(839, 1), false);
// Decrease Bow/Crossbow Attack Speed
getPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false);
getPlayer().setTransformAllowedSkills(new int[]{839,5491});
}
public void onUntransform()
{
// remove transformation skills
removeSkills();
}
public void removeSkills()
{
// Dismount
getPlayer().removeSkill(SkillTable.getInstance().getInfo(839, 1), false);
// Decrease Bow/Crossbow Attack Speed
getPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false);
getPlayer().setTransformAllowedSkills(new int[]{});
}
public static void main(String[] args)
{
TransformationManager.getInstance().registerTransformation(new LightPurpleManedHorse());
}
}
so i found out the id value links the skill to the transformation java file, but i cant figure out in the java file what determines the model id...how the transformation looks...
i think if i find out what determines the transformation look i can at least transform to the lion or anything else using the bracelet...better then nothing, BUT
since the ligh tpurple mounted horse is basically the same like any other transform i suppose there is a lion or slay with the model on it...
so all i need is the way to link the model to the java file, if the java file determines how the model looks...
sounds confusing...it is...pls some experts help me, it would be just great to have the rideable sledge and lion indeed rideable. ty