Jump to content
cybbro

/back or something?

Recommended Posts

could I use command /back or something to get back to the location I just died to pick up items? 

Share this post


Link to post
Share on other sites

yea I would like to have a back command in script so I could go back where I died, is that possible? 

Share this post


Link to post
Share on other sites
on death:
	set {back} to player's location
	send "&bYour location has been set for /back"

command /back:
	permission: skript.back
	permission message: &cYou don't have permission!
	trigger:
		teleport player to {back}

WARNING:
Spoonfeed

I didn't test this yet.

 


image.png.d9f8e22e5a1b54e9fbbffc2dd0cac848.png

shit.png

signatire.jpg

Share this post


Link to post
Share on other sites
on death:
	set {back.%player'a uuid%} to player's location
	send "&bYour location has been set for /back"

command /back:
	permission: skript.back
	permission message: &cYou don't have permission!
	trigger:
		teleport player to {back.%player's uuid%}

Fixed

Share this post


Link to post
Share on other sites

here you go:

on death:
  set {deathlocation.%uuid of player%} to player's location
command /back:
  trigger:
    teleport player to {deathlocation.%uuid of player%}
    send "&aYou teleported to your previous location!" to player

on quit:
  delete {deathlocation.%uuid of player%}

Hope that helped!


» PRO rank «
»
SKRIPT
Developer «
»
HOURS 
Owner «

CONTACT:
 » Discord:
skRecipe#2126 «
»
Username:
skRecipe «

                                                                                                                untitled.png

Share this post


Link to post
Share on other sites
On 1/23/2020 at 4:30 PM, skUniversal said:

on death:
	set {back} to player's location
	send "&bYour location has been set for /back"

command /back:
	permission: skript.back
	permission message: &cYou don't have permission!
	trigger:
		teleport player to {back}

WARNING:
Spoonfeed

I didn't test this yet.

 

You might want to change the variable to {back.%player%} so that each player has a different /back position


» IGN: izzzzthewiz «

» Rank: VIP «

» Skript dev «

» Owner of GangUnit «

» Discord: izzzzthewiz#3840 «

I+have+diabetes

Share this post


Link to post
Share on other sites
On 1/23/2020 at 10:30 AM, skUniversal said:

on death:
	set {back} to player's location
	send "&bYour location has been set for /back"

command /back:
	permission: skript.back
	permission message: &cYou don't have permission!
	trigger:
		teleport player to {back}

WARNING:
Spoonfeed

I didn't test this yet.

 

change {back} to {back::%uuid of player%}

 


» PRO rank «
»
SKRIPT
Developer «
»
HOURS 
Owner «

CONTACT:
 » Discord:
skRecipe#2126 «
»
Username:
skRecipe «

                                                                                                                untitled.png

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   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.


×
×
  • Create New...