I have been working on my older source for a while now, and ive already fixed allot and ive added some things (Note: Its LOTF 5017..)
Now my question is, how to i make transform work properly...
I have this as code..
Code:
if (SkillId == 1270)
{
XpList = false;
Transform = true;
TransformActivated = DateTime.Now;
Model = 214;
MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
MyClient.SendPacket(General.MyPackets.Vital(UID, 12, ulong.Parse(Avatar.ToString() + Model.ToString())));
}
Code:
public DateTime TransformActivated = DateTime.Now; public bool Transform = false;
Code:
if (Transform)
{
if (DateTime.Now > TransformActivated.AddSeconds(60))
{
Transform = false;
Model = RealModel;
MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
MyClient.SendPacket(General.MyPackets.Vital(UID, 12, ulong.Parse(Avatar.ToString() + Model.ToString())));
}
}
But now my question is: How can i add a countdown to the skill and make it so I cant jump while transformed?
Thanks in advance,
JobvdH!






