emmm yes, this a noob release i know, but i'm starting to "work" in this source and i want to share somethings including when they are easy to do, so maybe u can help me to improve the code and improve my skills at coding :p
look for this in entity.cs
public Enums.ConquerAction Action
under the set statment (i dk how to call it :c)
HandleCoolEffect((Enums.ConquerAction)SpawnPacket[63]);
then add this where u want in entity.cs
thanks for read :)
look for this in entity.cs
public Enums.ConquerAction Action
under the set statment (i dk how to call it :c)
HandleCoolEffect((Enums.ConquerAction)SpawnPacket[63]);
then add this where u want in entity.cs
Code:
void HandleCoolEffect(Enums.ConquerAction action)
{
bool FullSuper = true;
if (action != Enums.ConquerAction.Cool || Owner.Equipment.TryGetItem(3) == null)
return;
else
{
uint ID = Owner.Equipment.TryGetItem(3).ID;
if (IsSuper(ID))
{
Network.GamePackets.StringPacket stringPacket = new Network.GamePackets.StringPacket(true);
stringPacket.UID = this.UID;
stringPacket.Type = Network.GamePackets.StringPacket.Effect;
for (byte i = 1; i < 8; i++)
{
if (i == 7)
continue;
if (this.Owner.Equipment.TryGetItem(i) != null)
{
if (!IsSuper(this.Owner.Equipment.TryGetItem(i).ID))
{
FullSuper = false;
break;
}
}
else
{
FullSuper = false;
break;
}
}
switch (this.Class / 10 * 10)
{
case 10:
{
stringPacket.Texts.Add(FullSuper ? "warrior" : "warrior-s");
break;
}
case 20:
{
stringPacket.Texts.Add(FullSuper ? "fighter" : "fighter-s");
break;
}
case 45:
{
stringPacket.Texts.Add(FullSuper ? "archer" : "archer-s");
break;
}
case 50:
{
return;
}
case 130:
case 140:
{
stringPacket.Texts.Add(FullSuper ? "taoist" : "taoist-s");
break;
}
}
Owner.Send(stringPacket);
}
}
}
bool IsSuper(uint ID)
{
return (ID - 9) % 10 == 0;
}