player in different map

06/11/2010 16:48 .Summer#1
I know this is a stupid question.
I have searched everywhere for it, cuz i know it is there.
Anybody can find it.

example:
Quote:
Players in arena can kill players in other map
06/11/2010 16:59 kinshi88#2
What?
06/11/2010 17:09 -impulse-#3
Quote:
Originally Posted by .Summer View Post
I know this is a stupid question.
I have searched everywhere for it, cuz i know it is there.
Anybody can find it.

example:
It was already discussed. Look for one of terroare's posts and you'll find the solution.

This is caused because of a '(' and a ')' miss.
06/11/2010 18:22 .Summer#4
Quote:
Originally Posted by -impulse- View Post
It was already discussed. Look for one of terroare's posts and you'll find the solution.

This is caused because of a '(' and a ')' miss.
Okay thanks :)
I will search for it :P
I searched all day, but didnt find, but thanks for reply. Now i know who posted :D
06/12/2010 00:51 Arcо#5
Quote:
Originally Posted by .Summer View Post
Okay thanks :)
I will search for it :P
I searched all day, but didnt find, but thanks for reply. Now i know who posted :D
I THINK this was posted in my 5165 bugs thread.
try looking in there.
06/12/2010 01:27 .Summer#6
I already fixed it long time ago, when impulse pasted post :P
else thanks !
06/12/2010 05:01 WHITELIONX#7
I thought it was a dmap problem? I used to get the same error when somebody was in pka and another char was in lottery lol. I am pretty sure the char in lottery was able to kill a char in pka >.<
06/12/2010 20:25 kinshi88#8
Sounds like you need to check the map of the target(s) when attacking.
06/12/2010 20:28 .Summer#9
is fixed kinshi :D
else thanks :)
06/12/2010 21:23 ~Master#10
Could you tell me how did you fix it?
06/12/2010 21:51 .Summer#11
in world.cs
search for:
public static void Spawns(Character C, bool Check)
replace all with:
Code:
        public static void Spawns(Character C, bool Check)
        {
            try
            {
                COPacket CSpawn = Packets.SpawnEntity(C);
                foreach (Character CC in H_Chars.Values)
                {
                    if (CC != C && CC.Loc.Map == C.Loc.Map && MyMath.InBox(C.Loc.X, C.Loc.Y, CC.Loc.X, CC.Loc.Y, 17) && (!MyMath.InBox(C.Loc.PreviousX, C.Loc.PreviousY, CC.Loc.X, CC.Loc.Y, 17) || !Check))
                    {
                        C.MyClient.AddSend(Packets.SpawnEntity(CC));
                        if (CC.MyGuild != null)
                            C.MyClient.AddSend(Packets.String(CC.MyGuild.GuildID, (byte)StringType.GuildName, CC.MyGuild.GuildName));

                        CC.MyClient.AddSend(CSpawn);
                        if (C.MyGuild != null)
                            CC.MyClient.AddSend(Packets.String(C.MyGuild.GuildID, (byte)StringType.GuildName, C.MyGuild.GuildName));
                    }
                }
                Hashtable MapMobs = (Hashtable)H_Mobs[C.Loc.Map];
                if (MapMobs != null)
                {
                    foreach (Mob M in MapMobs.Values)
                        if (M.Alive && MyMath.InBox(C.Loc.X, C.Loc.Y, M.Loc.X, M.Loc.Y, 16) && (!MyMath.InBox(C.Loc.PreviousX, C.Loc.PreviousY, M.Loc.X, M.Loc.Y, 16) || !Check))
                            C.MyClient.AddSend(Packets.SpawnEntity(M));
                }
                Hashtable MapItems = (Hashtable)H_Items[C.Loc.Map];
                if (MapItems != null)
                {
                    foreach (DroppedItem DI in MapItems.Values)
                        if (MyMath.InBox(C.Loc.X, C.Loc.Y, DI.Loc.X, DI.Loc.Y, 14) && (!MyMath.InBox(C.Loc.PreviousX, C.Loc.PreviousY, DI.Loc.X, DI.Loc.Y, 14) || !Check))
                            C.MyClient.AddSend(Packets.ItemDrop(DI));
                }
                foreach (NPC N in H_NPCs.Values)
                    if (N.Loc.Map == C.Loc.Map && MyMath.InBox(C.Loc.X, C.Loc.Y, N.Loc.X, N.Loc.Y, 14) && (!MyMath.InBox(C.Loc.PreviousX, C.Loc.PreviousY, N.Loc.X, N.Loc.Y, 14) || !Check))
                    {
                        if (N.MaxHP == 0)
                            C.MyClient.AddSend(Packets.SpawnNPC(N));
                        else
                            C.MyClient.AddSend(Packets.SpawnNPCWithHP(N));
                    }

                foreach (Features.PersonalShops.Shop S in H_PShops.Values)
                    if (S.NPCInfo.Loc.Map == C.Loc.Map && MyMath.InBox(C.Loc.X, C.Loc.Y, S.NPCInfo.Loc.X, S.NPCInfo.Loc.Y, 14) && (!MyMath.InBox(C.Loc.PreviousX, C.Loc.PreviousY, S.NPCInfo.Loc.X, S.NPCInfo.Loc.Y, 14) || !Check))
                    {
                        C.MyClient.AddSend(Packets.SpawnNamedNPC(S.NPCInfo, S.Name));
                        if (S.Hawk != "")
                            C.MyClient.AddSend(Packets.ChatMessage(26514, S.Owner.Name, "ALL", S.Hawk, 2104, 0));
                    }
                foreach (Companion Cmp in H_Companions.Values)
                    if (Cmp.Loc.Map == C.Loc.Map && MyMath.InBox(C.Loc.X, C.Loc.Y, Cmp.Loc.X, Cmp.Loc.Y, 16) && (!MyMath.InBox(C.Loc.PreviousX, C.Loc.PreviousY, Cmp.Loc.X, Cmp.Loc.Y, 16) || !Check))
                        C.MyClient.AddSend(Packets.SpawnEntity(Cmp));
                Features.GuildWars.ThePole.Spawn(C, Check);
                Features.GuildWars.TheLeftGate.Spawn(C, Check);
                Features.GuildWars.TheRightGate.Spawn(C, Check);
            }
            catch { }
        }
credits:
terroare
06/14/2010 20:06 daniel7851109#12
thanks your the best summer :)
06/15/2010 02:55 xStylo#13
lol thanks :)