Marker on map

  • Автор темы Автор темы Haber
  • Дата начала Дата начала

Haber

Единомышленник
Пользователь
Сообщения
39
Розыгрыши
0
Репутация
0
Реакции
3
Баллы
135
Hi. Client protocol 311, I have encountered a problem with Markers on the map. Something along the lines of Show Target on map. Has anyone managed to do/fix this in this client ? I would appreciate your help.
Need to accurately add markers from game files using Radar Control.
At this moment nothing is displayed. The packages and the code itself is 100% ok.
Thanks in advance for your help
 

Bad english sorry. Can u show with prints? I may help u
 
Ji. I u use translator. I need this( or similar, some other, whatever)mark:
(Red Flag) - this is from client h5
1694093442752.png
 
This is spot right? like 1694095085613.webp on new clients

If is i know how to handle with that, but need know what u want to do.

I full edited my own for have only 1-40 spots and change some data also

1694097024862.webp
 
Great! Need to call this flag from files like Radar Control eg:
player.sendPacket(new RadarControl(2, 2, 0, 0, 0));
player.sendPacket(new RadarControl(0, 2, loc));
 
A... u want to just spawn the icon via some package... sry i dont know this part. I was thinking about only client need.

But try contact @Salty Mike ... skilled, nice person and nice job prices.
 
Yes, I know him, nice guy! Thanks for trying to help!
 
I could not find a way to put the Red Flag, and I tested every possible combination in RadarControl!
Код:
    /**
     *
     * @param showRadar - 0 = show; 1 = does nothing; 2 = delete
     * @param type - Should be: 1 = arrow around char; 2 = flag on the map?
     *             but is 0-2 = everything is arrow around char   
     * 2 0 = delete arrow around char
     * 0 0 = QUEST? (arrow around char is gone when you open Quest Menu)
     * 0 1-9 = QUEST? (arrow around char is gone when you open Quest Menu)
     */

But there is a GFX function that puts a pin on the map like this:

image.webp

This is how it is used:

C#:
function ShowGFXYellowPin (Vector XYZ, string TargetName)
{
    local string param;

    if( XYZ.X == 0 && XYZ.Y == 0 && XYZ.Z == 0 )
        return;

    param = "";
    ParamAdd(param,"X",string(XYZ.X));
    ParamAdd(param,"Y",string(XYZ.Y));
    ParamAdd(param,"Z",string(XYZ.Z));
    ParamAdd(param,"targetName",TargetName);
    ParamAdd(param,"questName","");
    CallGFxFunction("MiniMapGfxWnd","TeleportBookMarkWnd_ShowPoisition",param);
}


And this is how you remove it:

C#:
function HideGFxYelloPin ()
{
    CallGFxFunction("MiniMapGfxWnd","TeleportBookMarkWnd_HidePosition","");
}
 
Назад
Сверху Снизу