#reset map
1 messages · Page 1 of 1 (latest)
i try already no one give me
no ones reply me
one help?
Yes
can you help me
If you make the skript first
no i already make skript but if i reset my server my ids remove
i send the code?
ok
How tf am i gonna read it :/
@storm kernel
?
Send it :/
permission: op
permission message: &cYou don't have permission for this command.
trigger:
if arg-1 is set:
if arg-1 is "pos1":
set {Pos1} to player's location
send "&aYou have been set Position 1 it %player's location%" to player
if arg-1 is "pos2":
set {Pos2} to player's location
send "&aYou have been set Position 2 it %player's location%" to player
if arg-1 is "create":
if {Pos1} is set:
if {Pos2} is set:
create a regenerator with ID "%arg-2%" from {Pos1} to {Pos2}
send "&aYou have been create Arena Reset from &e%{Pos1}% &ato &e%{Pos2}% with id '%arg-2%'"
wait 2 tick
delete {Pos2}
delete {Pos1}
else if {Pos2} is not set:
send "&cYou need to set Position 2 of the area!"
else if {Pos1} is not set:
send "&cYou need to set Position 1 of the area!"
if arg-1 is "reset":
if arg-2 is set:
regenerate regenerator with ID "%arg-2%"
else if arg-2 is not set:
send "&cUsage: /Map reset 'ID'"
if arg-1 is "ids":
loop all regenerator ids:
send "&e%loop-value%" to player
if arg-1 is "delete":
if arg-2 is set:
loop all regenerator ids:
delete regenerator with ID "%arg-2%"
if arg-1 is "deleteall":
loop all regenerator ids:
delete regenerator with ID "%loop-value%"
else if arg-1 is not set:
send "&cUsage: /map &7( &6reset &8&l: &6ids &8&l: &6pos1 &8&l: &6pos2 &8&l: &6create &7)" to player
every 10 second:
loop all regenerator ids:
regenerate regenerator with ID "%loop-value%" ```
look
So what seems to be the problem
Let me look through the skript
ok
it still regens the map right?
I dont see what the problem should be
So it deletes the ids
yes
ids as in the positions?
Set the positions to a variable maybe?
And save the variable.
means on ids i put location?
What?
i change loop all regenerator ids:
to loop all regenerator location?
That may help
ok
the simplest way u can do this is every few ticks
Set a variable for blocks broken
And if that block was in that region
Set it back to that specific block
can you make a skript for me?
i am new i dont have any so much expiriance
Practice like all developers did
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Use them