Jump to content
  • 0

[ Script ] Mini-map Ping (X mark)


Question

Posted

I'm here again asking for the knowledge of our beloved awesome script pros.

My question:

Is it possible to make a map show ping mini-map using script?

Is its possible please share it to me xD

here's the example of the mini map ping I'm talking about (it's like part of a quest that guides players where to go)


359a1jc.png
 

2 answers to this question

Recommended Posts

Posted


*viewpoint <action>,<x>,<y>,<point number>,<color>;

This command will mark places on the mini map in the client connected to the

invoking character. It uses the normal X and Y coordinates from the main map.

The colors of the marks are defined using a hexadecimal number, same as the ones

used to color text in 'mes' output, but are written as hexadecimal numbers in C.

(They look like 0x<six numbers>.)

Action is what you want to do with a point, 1 will set it, while 2 will clear

it. 0 will also set it, but automatically removes the point after 15 seconds.

Point number is the number of the point - you can have several. If more than

one point is drawn at the same coordinates, they will cycle, which can be used

to create flashing marks.

// This command will show a mark at coordinates X 30 Y 40, is mark number 1,

// and will be red.

viewpoint 1,30,40,1,0xFF0000;

This will create three points:

viewpoint 1,30,40,1,0xFF0000;

viewpoint 1,35,45,2,0xFF0000;

viewpoint 1,40,50,3,0xFF0000;

And this is how you remove them:

viewpoint 2,30,40,1,0xFF0000;

viewpoint 2,35,45,2,0xFF0000;

viewpoint 2,40,50,3,0xFF0000;

The client determines what it does with the points entirely, the server keeps no

memory of where the points are set whatsoever.

  • Upvote 1
Posted
*viewpoint <action>,<x>,<y>,<point number>,<color>;

This command will mark places on the mini map in the client connected to the 
invoking character. It uses the normal X and Y coordinates from the main map. 
The colors of the marks are defined using a hexadecimal number, same as the ones 
used to color text in 'mes' output, but are written as hexadecimal numbers in C. 
(They look like 0x<six numbers>.)

Action is what you want to do with a point, 1 will set it, while 2 will clear 
it. 0 will also set it, but automatically removes the point after 15 seconds.
Point number is the number of the point - you can have several. If more than 
one point is drawn at the same coordinates, they will cycle, which can be used 
to create flashing marks.

    // This command will show a mark at coordinates X 30 Y 40, is mark number 1, 
    // and will be red.
    
    viewpoint 1,30,40,1,0xFF0000;

This will create three points:

    viewpoint 1,30,40,1,0xFF0000;
    viewpoint 1,35,45,2,0xFF0000;
    viewpoint 1,40,50,3,0xFF0000;

And this is how you remove them:

    viewpoint 2,30,40,1,0xFF0000;
    viewpoint 2,35,45,2,0xFF0000;
    viewpoint 2,40,50,3,0xFF0000;
    
The client determines what it does with the points entirely, the server keeps no 
memory of where the points are set whatsoever.

You're a genius /kis MWAH MWAH! /kis2 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...