[request] Super Gens effect

02/20/2009 21:06 Konquer1#1
how to put the effect of super dragon, phoenix and other learning
02/21/2009 01:27 damianpesta#2
Quote:
Originally Posted by Konquer1 View Post
how to put the effect of super dragon, phoenix and other learning
Code:
            int into = 0;
            if (Equips[1] != null && Equips[1] != "0")
                into = 1;
            else if (Equips[2] != null && Equips[2] != "0")
                into = 2;
            else if (Equips[3] != null && Equips[3] != "0")
                into = 3;
            else if (Equips[6] != null && Equips[6] != "0")
                into = 6;
            else if (Equips[8] != null && Equips[8] != "0")
                into = 8;
            else
                return;
            string[] item = Equips[into].Split('-');

            if (item[4] == "13")
            {
                if (Other.ChanceSuccess(3))
                {
                    foreach (DictionaryEntry DE in World.AllChars)
                    {
                        Character Chaar = (Character)DE.Value;
                        if (Chaar.Name != Name)
                        {
                            Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldendragon"));
                        }
                    }
                    MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldendragon"));
                }
            }
Do the rest yourself in purpose of learning , credits to Keving15
02/21/2009 01:29 justprownage#3
He'll probably need this:

Code:
[U][B]Gem IDs:[/B][/U]
Normal PhoenixGem=700001
Refinded-PhoenixGem=2
Super-PhoenixGem=3
normal-DragonGem=11
Refinded-DragonGem=12
Super-DragonGem=13
Normal-FuryGem=21
Refinded-FuryGem=22
Super-FuryGem=23
Normal-RainbowGem=31
Refinded-RainbowGem=32
Super-RainbowGem=33
Normal-KylinGem=41
Refinded-KylinGem=42
Super-KylinGem=43
Normal-VioletGem=51
Refinded-VioletGem=52
Super-VioletGem=53
Normal-MoonGem=61
Refinded-MoonGem=62
Super-MoonGem=63
Normal-TortoiseGem=71
Refinded-TortoiseGem=72
Super-TortoiseGem=73
02/22/2009 16:26 Konquer1#4
Thanks


but I wanted what I need to put in VISUAL C #
02/22/2009 16:36 _Emme_#5
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.