i am want to make a plugin where if player join the server player will get 24 hours and each time he will die he will loose a hour and on killing a player gain a hour and there is 2 types of clocks and one clock is named extra time which gives us 30 minues extra time and 2nd clock is used to revive player there are crafting recipes for them extra time's recipe e need 4 diamonds and 4 echo shard and 1 clock the recipe is shaped in row 1 there is echo shard, diamond, echo shard in row 2 there is diamond, clock, diamond in row 3 there is echo shard, diamond, echo shard and for revive clock we need 4 diamonds, 4 echo shard, 1 echanted clock with custom name with green bold text extra time and lore add 30 minutes clock recipe is shaped in row 1 diamond, echo shard, diamond in row 2 echo shard, echanted clock with custom name with green bold text extra time and lore add 30 minutes, echo shard in row 3 diamond, echo shard, diamond and when player will revive 1st time player will get 12 hours then 2nd time 6 hours then 3rd time 3 hours then 4th time 1 and the half hour and then player will be eliminated permanently/banned from the server and in the random location int the world a chest will be generated and in the chest eliminated player's head when whe right click on it player will be revived/unbanned from the server and have full time(24 hours) and also there is a command /withdraw time then <integer>(1-23 any number). because atleast player have 1 hour to live.
#please anyone help i am new to skript
1 messages · Page 1 of 1 (latest)
Crossposting is not allowed, but anyway
get started here and we will help you with any issues you run into.
dude hire someone to do it cus i doubt anyones gunna do allat.
Also add some paragraphs and full stops. I get what ur saying but its very confusing
No 🎀
I can help a bit. Dm me
thankyou mister
god damn
that's a lot
ik right i want to make my own
the time part and those things aren't hard
but like u have a whole freaking essay of features
in line 32
u can just do
if player's held item is a enchanted clock named "&b&lExtra Time":```
same as line 43
ok brother
same as line 51
should i send you the whole code
oh i thought you should look like how good the code is
I am fixing some of the errors
oh
whats the variable {_time}
is it the time of the player?
it would be easier if u just sent the whole code
ooooh
I get what u mean
so u want to give player a clock that gives them the time withdrawn?
yes
no need
ok
it is actually line no. 91 in the code
well ok
wait
if the player does /withdraw 4
u want to give the player 8 clocks that give 30m each?
for example
no they will give 4 hour in a single click
stacked time
oh
the craftable give 30 minutes and withdrawal give whole hour
yes
idk how to make it
making withdraw systems weird
if {player.%player%.time} >= {_time} * 60 * 60:
remove {_time} * 60 * 60 from {player.%player%.time}
give player {_time} * 3600 of enchanted clock named "&a&lExtra Time" with lore "&eAdd 30 minutes"
send "&aYou have withdrawn %{_time}% hours as Extra Time clocks."
will that work ?
like how ?
wym
- why dont u just make it
if {player.%player%.time}>={_time} * 3600:
instead of doing 60*60
ok
is there an issue on this line?
on right click with enchanted clock named "&a&lRevive Clock" with lore "%{revive.%player%}%":
does it give u an error?
yes
do the same as the others line
on right click:
if player's held item is a enchanted clock named "&a&lRevive Clock" with lore "%{revive.%player%}%":
I cant help with line 83 / 89 though because I have never dealt with those types of errors
ok
you did alot of help
btw
yes
idk how to use arg-1
and
what does that mean or stands for
can you tell me please
permission: withdraw.time
trigger:
if arg-1 is not set:
send "&cUsage: /withdraw <hours>"
stop
set {_time} to arg-1 parsed as integer
if {_time} is not between 1 and 23:
send "&cYou can only withdraw between 1 and 23 hours."
stop
if {player.%player%.time} >= {_time} * 60 * 60:
remove {_time} * 60 * 60 from {player.%player%.time}
give player {_time} * 3600 of enchanted clock named "&a&lExtra Time" with lore "&eAdd 30 minutes"
send "&aYou have withdrawn %{_time}% hours as Extra Time clocks."
else:
send "&cYou do not have enough time to withdraw!"``` here
on the seventh line
arg-1 is the first arguement of the command
which in this case is [<integer>]
permission: withdraw.time
trigger:
if arg-1 is not set:
send "&cUsage: /withdraw <hours>"
stop
set {_time} to arg-1
if {_time} is not between 1 and 23:
send "&cYou can only withdraw between 1 and 23 hours."
stop
if {player.%player%.time} >= {_time} * 60 * 60:
remove {_time} * 60 * 60 from {player.%player%.time}
give player {_time} * 3600 of enchanted clock named "&a&lExtra Time" with lore "&eAdd 30 minutes"
send "&aYou have withdrawn %{_time}% hours as Extra Time clocks."
else:
send "&cYou do not have enough time to withdraw!"```
there
the 7th line is fixed
I used the skUnity parser to check if it was correct
btw do i need to install skunity plugin for skript or its for fix and helping other users
I dont think u need to
ok
so now the only erros are on line 26 and
89
those 2 I cant fix
hope I helped though
ok
np
yea space errors
send me the new code
and I will fix all the erros
its a bit of spoon feeding but its ok
@hollow coral
yes
its this?
yes
make it a file
how
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
there
I am testing it using skript parser
butI think its outdated
u have to test it
oh
u should update your skript
should i send you
?
read the errors
i am new
can't i : )
fix your indents omg
if you dont want to help then do not help me but i am asking to another player for help not you
I am telling you what to do.
-, i did all the gap now how can i fix other
problems
try reading the docs instead of making up syntax that doesnt exist
no need to be so freaking mean to him
cant u tell he is new
- he has checked the docs
um i used tabs
after a on first join: or a if statement u need to leave one space
oh-
wait
how do I upload a file
copy and paste the enter the a option pop buy nitro or upload as a file the erase your text
and hit enter
let me start the server
yea
because it expectes tabs
but finds spaces
I honestly dont know how to make tabs
when there is an indentation error
it means u have to either add more spaces
or switch spaces to tabsd
*tabs
see left side of your q button
there is tab button
when i use tab it says expected spaces when spaces it tabs
;-;
bro what-
yep
Another issue I have never experienced
truly amazing
my guy is the unluckiest skripter in the world
true