my code on this post is under 5165 source.
Maybe, u shuld change the chances of the effect to show XD...Quote:
Ok just a quick question on this but does this mean that if I am let`s say TG and lvling weapons on stake will the gem effects go off randomly?
Because when I first put the code in it only gave effects when I went from stake to stake, but if I continuesly hit the same stake then the gem effects would not appear after the first hit.
And as pointed out does it still activate all gems at the same time or is one of these codes different now so that the gems work independently?
Also great work on this guys :D
namespace NewestCOServer.Features
{
class GemEffect
{
public static void GemEffects(Game.Item.Gem Gem, Main.GameClient MyClient)
{
switch (Gem)
{
#region GemEffects
case Game.Item.Gem.SuperDragonGem:
{
[COLOR="Red"]if (MyMath.ChanceSuccess(1.0))[/COLOR] { MyClient.AddSend(Packets.String(MyClient.MyChar.En tityID, 10, "goldendragon")); }
break;
}
case Game.Item.Gem.SuperPhoenixGem:
{
[COLOR="Red"]if (MyMath.ChanceSuccess(1.0))[/COLOR] { MyClient.AddSend(Packets.String(MyClient.MyChar.En tityID, 10, "phoenix")); }
break;
}
case Game.Item.Gem.SuperRainbowGem:
{
[COLOR="Red"]if (MyMath.ChanceSuccess(1.0))[/COLOR] { MyClient.AddSend(Packets.String(MyClient.MyChar.En tityID, 10, "rainbow")); }
break;
}
case Game.Item.Gem.SuperMoonGem:
{
[COLOR="Red"]if (MyMath.ChanceSuccess(1.0))[/COLOR] { MyClient.AddSend(Packets.String(MyClient.MyChar.En tityID, 10, "moon")); }
break;
}
case Game.Item.Gem.SuperFuryGem:
{
[COLOR="Red"]if (MyMath.ChanceSuccess(1.0))[/COLOR] { MyClient.AddSend(Packets.String(MyClient.MyChar.En tityID, 10, "fastflash")); }
break;
}
case Game.Item.Gem.SuperKylinGem:
{
[COLOR="Red"]if (MyMath.ChanceSuccess(1.0))[/COLOR] { MyClient.AddSend(Packets.String(MyClient.MyChar.En tityID, 10, "goldenkylin")); }
break;
}
#endregion
}
}
}
}