lukasbjohansen Posted August 26, 2020 Share Posted August 26, 2020 so my skript looks like this command /npc: permission: "skript.npc" trigger: broadcast "test" on rightclick on entity if name of entity is "npc1": execute player command "/npc" as op It does not work and i can't get skutilities. what do i do Link to comment Share on other sites More sharing options...
lukasbjohansen Posted August 26, 2020 Author Share Posted August 26, 2020 The reason of a permission needed is so u need to go to the npc to acces a menu so u cant use it everywhere with just a command Link to comment Share on other sites More sharing options...
AWorthySon Posted August 26, 2020 Share Posted August 26, 2020 Heya! I'm not entirely sure what you're trying to achieve. My advice would be to use SkRayFall.https://skripthub.net/docs/?id=100 on npc right click: send "You just clicked an NPC with ID: %event-number%" This would be a simple solution to detect clicks. You can code whatever you desire, that was just an example. Always feel free to contact me or continue this thread if you need more help Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 26, 2020 Share Posted August 26, 2020 If you have TuSKe, you can do make player execute "/npc" with permission "skript.npc". Another way you could do it is with worldguard. If you have a region by the npc, you can test if the player is in a certain region when they did the command. If they are in the region, the stuff you want happens and if they aren't, it sends a message saying you cannot do this here or something like that. Or instead of making them execute a command, just make the things that happen in the command just when you click the npc. Unless you want there to be a command that some people can do. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now