Hello guys,
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..
and this:
And again, to remove the transform this (In skilltimers):
#EDIT: The disguise part works fine, i transform in this case into a robot and i will get transformed back after 60 seconds.. (But it doesnt show up a counter and a Restore button. and i can jump while transformed..)
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!
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!