Release Spawn Guild Enemies / Allies !

10/11/2010 06:13 -Shunsui-#1
5165 ftw.. Under String type
Code:
public enum StringType
    {
        GuildName = 3,
        Spouse = 6,
        Effect = 10,
        GuildList = 11,
        ViewEquipSpouse = 16,
        Sound = 20,
        GuildEnemies = 22,
        GuildAllies = 21,
    }
and this is how u call it, on THE MOTHER FUCKING SPAWN VOID,
Code:
public static void Spawns(Character C, bool Check)
        {
            try
            {
                COPacket CSpawn = ConquerPacket.SpawnEntity(C);
                foreach (Character CC in Game.H_Chars.Values)
                {
                    if (CC != C && CC.Loc.Map == C.Loc.Map && Calculate.InBox(C.Loc.X, C.Loc.Y, CC.Loc.X, CC.Loc.Y, 17) && !Calculate.InBox(C.Loc.PreviousX, C.Loc.PreviousY, CC.Loc.X, CC.Loc.Y, 17) || !Check)
                    {
                        if (CC.EntityID != C.EntityID)
                        {
                            #region guild name spawn
                            C.Client.Send(ConquerPacket.SpawnEntity(CC));
                            if (C.Guild != null)
                            {
                                Guild T = C.Guild;
                                #region spawn guild name
                                if (CC.Guild != null)
                                {
                                    Guild M = CC.Guild;
                                    if (M.Enemies.ContainsKey(T.ID))
                                        CC.Client.Send(ConquerPacket.String(T.ID, (byte)StringType.GuildEnemies, T.Name));
                                    else if (M.Allies.ContainsKey(T.ID))
                                        CC.Client.Send(ConquerPacket.String(T.ID, (byte)StringType.GuildAllies, T.Name));
                                    else
                                        CC.Client.Send(ConquerPacket.String(T.ID, (byte)StringType.GuildName, T.Name));
                                }
                                else
                                {
                                    CC.Client.Send(ConquerPacket.String(CC.Guild.ID, (byte)StringType.GuildName, CC.Guild.Name));
                                }
                                #endregion
                            }

                            CC.Client.Send(CSpawn);
                            if (CC.Guild != null)
                            {
                                Guild T = CC.Guild;
                                #region spawn guild name
                                if (C.Guild != null)
                                {
                                    Guild M = C.Guild;
                                    if (M.Enemies.ContainsKey(T.ID))
                                        C.Client.Send(ConquerPacket.String(T.ID, (byte)StringType.GuildEnemies, T.Name));
                                    else if (M.Allies.ContainsKey(T.ID))
                                        C.Client.Send(ConquerPacket.String(T.ID, (byte)StringType.GuildAllies, T.Name));
                                    else
                                        C.Client.Send(ConquerPacket.String(T.ID, (byte)StringType.GuildName, T.Name));
                                }
                                else
                                {
                                    C.Client.Send(ConquerPacket.String(C.Guild.ID, (byte)StringType.GuildName, C.Guild.Name));
                                }
                                #endregion
                            }
                            #endregion
                           
                        }
                    }
                }
p.s.. use arcos save and load
10/11/2010 06:20 Arcо#2
When impulse posts on this thread I'll press thanks on him :p
10/11/2010 08:11 -diRt#3
Thanks Jose jalapeño on a stick.
10/11/2010 13:02 †he Knight#4
Thanks.