[Help] Boss Identifier

01/03/2020 15:07 hunters_guard#1
Hi guys how are you?. I just wanted your help here on how can I make this into infinite/permanent blinking indicator in minimap when the boss spawn in the area (which the indicator is the location of the boss spawn).

My problem is that the blinking indicator will stop after 2-3sec. I use the TeamSearchmember Actiontype of "106" to locate the boss location in minimap.

How can I make the blinking indicator permanent until the boss has been dead and even I am too far away from the boss location.

Here is my progress of the work [Only registered and activated users can see links. Click Here To Register...]

the code I use
Code:
 
if (timer > client.Player.BossStamp.AddSeconds(1))
                {
                    client.Player.BossStamp.AddSeconds(1);
                    using (var rec = new ServerSockets.RecycledPacket())
                    {
                        //client.Player.BossStamp.AddSeconds(1);
                        foreach (var mob in client.Player.View.Roles(Role.MapObjectType.Monster))
                        {

                            if ((mob as Game.MsgMonster.MonsterRole).Boss == 1 && (mob as Game.MsgMonster.MonsterRole).Alive)
                            {

                                var stream = rec.GetStream();
                                ActionQuery action = new ActionQuery()
                                {
                                    ObjId = mob.UID,
                                    // dwParam = 1015,
                                    Type = ActionType.TeamSearchForMember,
                                    wParam1 = mob.X,
                                    wParam2 = mob.Y
                                };

                                //mob.Send(GetArray(stream, true));
                                mob.Send(stream.ActionCreate(&action));
                            }
                        }
                    }

                }
01/03/2020 18:19 Spirited#2
Doing a search of all monsters every second sounds very expensive for a dot on your minimap. If you know a boss spawns at a location, maybe you could edit the minimap with a static dot of the spawn. You could also make a website that helps players find map events (just list what bosses are active or coming active by coordinates like GW2 does). I don't know of any way to do this through packets to the client.
01/03/2020 21:18 Super Aids#3
Instead of going through all monsters to figure out what monster's are bosses just have a collection of active bosses per map and only go through that collection.

This would typically mean a single iteration per user per map.

Ex. if you have 5 maps with active bosses and each map has 100 users that's only 500 iterations.

Where as with your current method you can have that easily alone per user in a single map.

Like I can imagine BI having thousands of iterations per user.

A better way instead of pinging like this constantly would be to do it every time a user makes a movement if the movement is after a specific time since last movement so walking three blocks doesn't trigger it three times. This would make sure that only active players are requesting the information. Use this in combination with the small collection of active bosses per map and you'll almost be guaranteed to have it "lag-free".
01/04/2020 01:28 hunters_guard#4
what if I will add another effect just like this to infinite it's blinking time while boss is alive? just like the status flag? would it be effective? oh I forgot I should know what is the name of this (blinking violet effect in minimap). If anyone here know can you tell me what the name of this folder or it's destination.


Thank you for your comments @[Only registered and activated users can see links. Click Here To Register...] & @[Only registered and activated users can see links. Click Here To Register...]

Thank you.