RPGhuds icon indicating copy to clipboard operation
RPGhuds copied to clipboard

I have a suggestion

Open TheMrLhuixx opened this issue 4 years ago • 6 comments

Could you add the option to execute commands when a player reaches the destination point?

TheMrLhuixx avatar Nov 15 '21 03:11 TheMrLhuixx

This should be handled by another plugin. Which commands do you need to run after the GPS destination is reached?

LoneDev6 avatar Nov 22 '21 13:11 LoneDev6

This should be handled by another plugin. Which commands do you need to run after the GPS destination is reached?

I know that it could be handled from another plugin, but my intention was to have better precision when the player reaches the destination and when "compass_reached" compass_reached is shown, then at that moment the commands are executed

TheMrLhuixx avatar Nov 22 '21 16:11 TheMrLhuixx

Nono I mean, I need an example to better understand which commands you wish to execute, let me know.

Because I doubt you want the same exact commands to be executed when you reach a spot. Maybe you also want commands to be defined in a list of set of commands, so you can decide which list of commands to execute based on the location.

For example:

commands:
  set_1:
    command_1:
      cmd: "tell %player_name% hello"
    command_2:
      cmd: "give %player_name% coal"
  set_2:
     command_1:
       cmd: "give %player_name% diamond"

Then run /rpgcompass LoneDev set world -227 200 136 set_2.

I'm just thinking out loud

LoneDev6 avatar Nov 22 '21 16:11 LoneDev6

The truth is that I only had in mind to execute commands such as playing a sound and also starting a conversation with npc just at the moment of reaching the destination ... but the way you are giving me the example is not a bad idea

TheMrLhuixx avatar Nov 22 '21 16:11 TheMrLhuixx

I think I'll implement this idea I had, it's more modular for all the needs of various server. Also you could execute a different sound for each different quest with my idea

LoneDev6 avatar Nov 22 '21 16:11 LoneDev6

I think I'll implement this idea I had, it's more modular for all the needs of various server. Also you could execute a different sound for each different quest with my idea

I think it's great

TheMrLhuixx avatar Nov 22 '21 16:11 TheMrLhuixx