Not sure what you meant, so here I'll post both SuperEffect(When doing action 'Cool') and SuperGemEffect.
SuperEffect:
Should be put somewhere it checks what you're doing, in my case ; in a timethread.
Quote:
foreach (DictionaryEntry DE in LiveManager.H_Chars)
{
Character Player = (Character)DE.Value;
if (Player.Action == 230)
{
if (Player.Equipment[3].Quality == Extra.ItemQuality.Super)
{
string jobname = "";
if (Player.Job >= 10 && Player.Job <= 15)
jobname = "warrior-s";
else if (Player.Job >= 20 && Player.Job <= 25)
jobname = "figher-s";
else if (Player.Job >= 40 && Player.Job <= 45)
jobname = "archer-s";
else if (Player.Job == 100 || Player.Job == 101 || Player.Job >= 132 && Player.Job <= 145)
jobname = "taoist-s";
Player.MyClient.SendData(Packets.String(Player.Ent ityID, 10, jobname));
Player.Action = 100;
}
}
}
|
SuperGemEffect:
Should be put in the attack case
Quote:
if (Mess.ChanceSuccess(4))
{
for (int i = 0; i < 10; i++)
{
Extra.Item s = C.MyChar.Equipment[i];
Extra.Gem s1 = s.Soc1;
Extra.Gem s2 = s.Soc2;
if ((int)s.Soc1 % 10 == 3 || (int)s.Soc2 % 10 == 3)
{
string e = "";
if ((int)s1 == 3 || (int)s2 == 3)
e = "phoenix";
else if ((int)s1 == 13 || (int)s2 == 13)
e = "goldendragon";
else if ((int)s1 == 23 || (int)s2 == 23)
e = "lounder1";
else if ((int)s1 == 33 || (int)s2 == 33)
e = "rainbow";
else if ((int)s1 == 43 || (int)s2 == 43)
e = "goldenkylin";
else if ((int)s1 == 53 || (int)s2 == 53)
e = "purpleray";
else if ((int)s1 == 63 || (int)s2 == 63)
e = "moon";
else if ((int)s1 == 73 || (int)s2 == 73)
e = "recovery";
C.SendData(Packets.String(C.MyChar.EntityID, 10, e));
}
}
}
|
Ofcourse, this wont work with copy+pasting, but you should understand.
Note : Its not the best codes.