iiDeadKxnggg Posted August 20, 2021 Share Posted August 20, 2021 Can't figure it out Link to comment Share on other sites More sharing options...
Ramina__ Posted August 20, 2021 Share Posted August 20, 2021 3 hours ago, iiDeadKxnggg said: Can't figure it out Just Replace servername with your server name!! options: afktime: 600 # how many seconds a player has to be afk before the skript runs. command /afk: trigger: if {afk::%player%} is not set: set {afk::%player%} to true broadcast "&4&lServername>> &c%player% Is Now &4&lAFK" send title "&4&LYou are AFK!" with subtitle "&cMove in any direction." to player for {@afktime} seconds play sound "block.note_block.pling" to player set {_loc} to location of player while {afk::%player%} is set: wait 1 second if location of player != {_loc}: delete {afk::%player%} broadcast "&4&lServername>> &c%player% Is No Longer &4&lAFK" send title "&4&LYou are no longer AFK!" to player for 2 seconds play sound "block.note_block.pling" to player on chat: if {afk::%player%} is not set: stop else if {afk::%player%} is set: delete {afk::%player%} broadcast "&4&lServerName>> &c%player% Is No Longer &4&lAFK" send title "&4&LYou are no longer AFK!" to player for 2 seconds play sound "block.note_block.pling" to player on any move: if {afk::%player%} is set: delete {afk::%player%} send title "&4&LYou are no longer AFK!" to player for 2 seconds play sound "block.note_block.pling" to player every second: set {_loc} to location of player if location of player != {_loc}: set {afktime::%player%} to 0 delete {afk::%player%} broadcast "&4&lServername>> &c%player% Is No Longer &4&lAFK" send title "&4&LYou are no longer AFK!" to player for 2 seconds play sound "block.note_block.pling" to player if location of player = {_loc}: add 1 to {afktime::%player%} if {afktime::%player%} = {@afktime}: set {afk::%player%} to true broadcast "&4&lServername>> &c%player% Is Now &4&lAFK" send title "&4&LYou are AFK!" with subtitle "&cMove in any direction." to player for {@afktime} seconds play sound "block.note_block.pling" to player delete {afktime::%player%} Link to comment Share on other sites More sharing options...
emopediaMC Posted August 25, 2021 Share Posted August 25, 2021 On 8/21/2021 at 9:48 AM, nolando09 said: Just Replace servername with your server name!! options: afktime: 600 # how many seconds a player has to be afk before the skript runs. command /afk: trigger: if {afk::%player%} is not set: set {afk::%player%} to true broadcast "&4&lServername>> &c%player% Is Now &4&lAFK" send title "&4&LYou are AFK!" with subtitle "&cMove in any direction." to player for {@afktime} seconds play sound "block.note_block.pling" to player set {_loc} to location of player while {afk::%player%} is set: wait 1 second if location of player != {_loc}: delete {afk::%player%} broadcast "&4&lServername>> &c%player% Is No Longer &4&lAFK" send title "&4&LYou are no longer AFK!" to player for 2 seconds play sound "block.note_block.pling" to player on chat: if {afk::%player%} is not set: stop else if {afk::%player%} is set: delete {afk::%player%} broadcast "&4&lServerName>> &c%player% Is No Longer &4&lAFK" send title "&4&LYou are no longer AFK!" to player for 2 seconds play sound "block.note_block.pling" to player on any move: if {afk::%player%} is set: delete {afk::%player%} send title "&4&LYou are no longer AFK!" to player for 2 seconds play sound "block.note_block.pling" to player every second: set {_loc} to location of player if location of player != {_loc}: set {afktime::%player%} to 0 delete {afk::%player%} broadcast "&4&lServername>> &c%player% Is No Longer &4&lAFK" send title "&4&LYou are no longer AFK!" to player for 2 seconds play sound "block.note_block.pling" to player if location of player = {_loc}: add 1 to {afktime::%player%} if {afktime::%player%} = {@afktime}: set {afk::%player%} to true broadcast "&4&lServername>> &c%player% Is Now &4&lAFK" send title "&4&LYou are AFK!" with subtitle "&cMove in any direction." to player for {@afktime} seconds play sound "block.note_block.pling" to player delete {afktime::%player%} Looks awfully similar to an AFK skript I posted, just with some broadcasts... Developer Joined Minecraft in 2010 on PC Joined Minehut in August 2016 1 year Skript experience 2 months Java experience 5 months Javascript experience Link to comment Share on other sites More sharing options...
pnguin Posted August 25, 2021 Share Posted August 25, 2021 16 minutes ago, emopediaMC said: Looks awfully similar to an AFK skript I posted, just with some broadcasts... I'm sure you made that code because it looks so familiar I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
Ramina__ Posted August 25, 2021 Share Posted August 25, 2021 Just now, skPizza said: I'm sure you made that code because it looks so familiar Im sorry ok.. I just wanted to fit in and have people be proud of me Link to comment Share on other sites More sharing options...
pnguin Posted August 25, 2021 Share Posted August 25, 2021 18 minutes ago, emopediaMC said: Looks awfully similar to an AFK skript I posted, just with some broadcasts... Ye i found it Just now, nolando09 said: Im sorry ok.. I just wanted to fit in and have people be proud of me I like how you want to fit in but copying isn't the way to go. I recommend watching Minehut's skript tutorials https://www.youtube.com/c/Minehut/playlists I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
Ramina__ Posted August 25, 2021 Share Posted August 25, 2021 Just now, skPizza said: Ye i found it I like how you want to fit in but copying isn't the way to go. I recommend watching Minehut's skript tutorials https://www.youtube.com/c/Minehut/playlists I'm sorry.. Link to comment Share on other sites More sharing options...
pnguin Posted August 25, 2021 Share Posted August 25, 2021 1 minute ago, nolando09 said: I'm sorry.. I'm not mad at you I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
jarxayyes Posted March 26, 2022 Share Posted March 26, 2022 On 8/25/2021 at 11:52 AM, Ramina__ said: I'm sorry.. skid Link to comment Share on other sites More sharing options...
WimfishAlt Posted April 21, 2022 Share Posted April 21, 2022 @jamieisthebest Lock for necro 1 If this helped make sure to leave a like Programmer Owner of fishymini Languages used: Python Html Java JS Skript Link to comment Share on other sites More sharing options...
Recommended Posts