Completed.
Quote:
I've been working on the cool effects and, for the most part, I got them working.
I just can't figure out how to make the cool effect only happen once.
This is what I have so far:
I've tried with cases, but they wouldn't work.Code:if (Action == 230)//Cool Effect { string TheEquip = Equips[3]; string[] Splitter = TheEquip.Split('-'); uint ItemId = uint.Parse(Splitter[0]); int ClassType = (int)Job; if (Other.ItemQuality(ItemId) == 9) { if (Job == 10 || Job == 11 || Job == 12 || Job == 13 || Job == 14 || Job == 15) { MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior-s")); } if (Job == 40 || Job == 41 || Job == 42 || Job == 43 || Job == 44 || Job == 45) { MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer-s")); } if (Job == 20 || Job == 21 || Job == 22 || Job == 23 || Job == 24 || Job == 25) { MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter-s")); } if (Job == 132 || Job == 133 || Job == 134 || Job == 135) { MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s")); } if (Job == 142 || Job == 143 || Job == 144 || Job == 145) { MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s")); } if (Job == 100 || Job == 101) { MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s")); } } }
Any help would be greatly appreciated.
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s")); Action = 100;
if (Action == 230)//Cool Effect
{
string TheEquip = Equips[3];
string[] Splitter = TheEquip.Split('-');
uint ItemId = uint.Parse(Splitter[0]);
int ClassType = (int)Job;
if (Other.ItemQuality(ItemId) == 9)
{
if (Job >= 10 && Job <= 15)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior-s"));
}
if (Job >= 40 && Job <= 45)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer-s"));
}
if (Job >= 20 && Job <= 25)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter-s"));
}
if (Job >= 132 && Job <= 135)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
}
if (Job >= 142 && Job <= 145)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
}
if (Job == 100 || Job == 101)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
}
}
}