walk or stoped help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

xbxy

Active Member
Jan 26, 2017
170
8
0
28
I want to be a TNTRUN

Code:
on step on purpur block:
    #set block below player to air
    wait 3 ticks
    set event-block to air

The above code to do mobile destruction
But once the player stops, it can't continue

I try to use the TuSKe event
On Stop Walk:
Invalid discovery event

Code:
on player stop walking:
    send "s"

[05:06:20 INFO]: [Skript] Reloading 1.sk...
[05:06:20 ERROR]: can't understand this event: 'on player stop walking' (1.sk, line 43: on player stop walking:')
[05:06:20 INFO]: [Skript] Encountered 1 error while reloading 1.sk!


command /spawn:
    trigger:
        if player is stopped:
            teleport player to spawn of world
        else:
            send "You can't teleport while moving!"

[05:08:48 INFO]: [Skript] Reloading 1.sk...
[05:08:48 ERROR]: Can't compare a player with 'stopped' (1.sk, line 45: if player is stopped:')
[05:08:48 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (1.sk, line 47: else:')
[05:08:48 INFO]: [Skript] Encountered 2 errors while reloading 1.sk!

My server version is 1.11.2
[05:09:50 INFO]: [TuSKe] Disabling TuSKe v1.7
[05:09:50 INFO]: [SkQuery] Disabling SkQuery v3.5.1
[05:09:50 INFO]: [skRayFall] Disabling skRayFall v1.9.7
[05:09:50 INFO]: [skRayFall] Bacon has been eaten. Make some more soon!
[05:09:50 INFO]: [skDragon] Disabling skDragon v0.13.1
[05:09:50 INFO]: §3[§bskDragon§3] §aPlugin is now disabled. Most likely you shut down or reset your server
[05:09:50 INFO]: [Skellett] Disabling Skellett v1.7.7c
[05:09:50 INFO]: [SkStuff] Disabling SkStuff v1.6.4
[05:09:50 INFO]: [SkStuff] SkStuff 1.6.4 has been successfully disabled.
[05:09:50 INFO]: [Skript] Disabling Skript v2.2-dev23
 
Last edited:
As said before, I temporarily removed this event due to a memory leak. It was a mistake that I forgot that was causing some issues. I will fix it but I don't know when since I have less time to work on TuSKe.
 
As said before, I temporarily removed this event due to a memory leak. It was a mistake that I forgot that was causing some issues. I will fix it but I don't know when since I have less time to work on TuSKe.
Is there any other way to detect players to stop?
 
code_language.skript:
set {_loc} to location of player
#if you want a countdown, use like this:
loop 3 times:
    If location of player isn't {_loc}:
        send "You can not move!"
        stop
     wait a second
#Else if you want to just check if he is stopped, try this:
wait 3 ticks
If location of player isn't {_loc}:
    send "You can not move!"
    stop
#And continue your code here
 
Status
Not open for further replies.