#please anyone help i am new to skript

1 messages · Page 1 of 1 (latest)

hollow coral
#

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.

unborn badger
#

Crossposting is not allowed, but anyway

#

get started here and we will help you with any issues you run into.

opaque rapids
#

wow

#

thats a very readable ru-on sentence.

robust thorn
chilly phoenix
#

No 🎀

hollow coral
hollow coral
hollow coral
#

uhh

fast vine
#

the time part and those things aren't hard

#

but like u have a whole freaking essay of features

hollow coral
#

🥲

fast vine
#

in line 32

#

u can just do

#
  if player's held item is a enchanted clock named "&b&lExtra Time":```
#

same as line 43

hollow coral
#

ok brother

fast vine
#

same as line 51

hollow coral
#

should i send you the whole code

fast vine
#

whatever u want

#

I am looking at line

#

89

#

whats the point of line 89

hollow coral
fast vine
#

I am fixing some of the errors

hollow coral
fast vine
#

what u trying to do

hollow coral
#

yes

#

like 30 minutes

fast vine
#

whats the variable {_time}

#

is it the time of the player?

#

it would be easier if u just sent the whole code

hollow coral
#

here @fast vine

fast vine
#

ooooh

#

I get what u mean

#

so u want to give player a clock that gives them the time withdrawn?

hollow coral
#

yes

fast vine
#

hmm

#

I honestly dont know how to fix that

#

have u tried looking at the docs?

hollow coral
#

umm i was

#

let me recode all

#

then send you

#

is that a good idea

#

?

fast vine
hollow coral
#

ok

fast vine
#

the code is good

#

just the issue on line 89 I have never experienced before

hollow coral
fast vine
#

well ok

#

wait

#

if the player does /withdraw 4

#

u want to give the player 8 clocks that give 30m each?

#

for example

hollow coral
fast vine
#

hmm ok

#

why is the lore then add 30 minutes

hollow coral
#

stacked time

fast vine
#

oh

hollow coral
#

the craftable give 30 minutes and withdrawal give whole hour

fast vine
#

so if the player does /withdraw 4

#

it gives a clock that adds 4 hours?

hollow coral
#

yes

fast vine
#

have u made a redeem system?

#

like to redeem the clock?

hollow coral
#

idk how to make it

fast vine
#

making withdraw systems weird

hollow coral
#

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 ?

fast vine
#

Well

#

test it and see

#

(:

hollow coral
#

like how ?

fast vine
#

wym

#
  • why dont u just make it
#

if {player.%player%.time}>={_time} * 3600:

#

instead of doing 60*60

hollow coral
#

ok

fast vine
#

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?

hollow coral
#

yes

fast vine
#

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

hollow coral
#

ok

fast vine
#

nvm

#

let me see line 83

hollow coral
#

you did alot of help

fast vine
#

btw

hollow coral
#

yes

fast vine
#

wouldn't it work if u just did set {_time} to arg-1

#

(line 83)

hollow coral
#

idk how to use arg-1

#

and

#

what does that mean or stands for

#

can you tell me please

fast vine
#
    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>]

hollow coral
#

oh

#

it like i am learning maths in school

fast vine
#
    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

hollow coral
#

btw do i need to install skunity plugin for skript or its for fix and helping other users

hollow coral
#

ok

fast vine
#

so now the only erros are on line 26 and

#

89

#

those 2 I cant fix

#

hope I helped though

hollow coral
#

ok

hollow coral
#

thankyou brother

fast vine
#

np

hollow coral
#

;-;

fast vine
#

maybe its space errors

hollow coral
#

idk

#

let me

#

send you

#

@fast vine

fast vine
#

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

hollow coral
#

umm new code

#

uhh

#

i didnt made one

fast vine
#

that's the old one?

#

wym

hollow coral
fast vine
hollow coral
fast vine
#

AHH

#

ITS TOO BIG TO BE SENT IN DISCORD

hollow coral
#

make it a file

fast vine
#

how

#

there

hollow coral
#

ok

#

did that worked on your

#

side

#

?

fast vine
#

butI think its outdated

#

u have to test it

hollow coral
#

ok

#

i am using skript 2.9.0 beta

fast vine
#

oh...

#

I am using skript 2.7.3

#

;-;

hollow coral
#

oh

#

u should update your skript

#

should i send you

#

?

hollow coral
unborn badger
#

read the errors

hollow coral
unborn badger
#

so?

#

you can read can't you?

hollow coral
unborn badger
#

fix your indents omg

hollow coral
unborn badger
#

I am telling you what to do.

hollow coral
#

problems

unborn badger
#

try reading the docs instead of making up syntax that doesnt exist

fast vine
#

cant u tell he is new

#
  • he has checked the docs
hollow coral
fast vine
#

a lot of issues with spacing

#

remember

hollow coral
fast vine
#

after a on first join: or a if statement u need to leave one space

#

oh-

#

wait

#

how do I upload a file

hollow coral
#

copy and paste the enter the a option pop buy nitro or upload as a file the erase your text

#

and hit enter

fast vine
#

looks good to me

#

test though

hollow coral
#

let me start the server

fast vine
#

k

#

btw

#

can I join the server when its released?

#

or help with the making

hollow coral
#

ok

#

T_T

#

almost all text have errors

#

all errors

fast vine
#

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

hollow coral
#

see left side of your q button

#

there is tab button

#

when i use tab it says expected spaces when spaces it tabs

#

;-;

fast vine
#

bro what-

hollow coral
#

yep

fast vine
#

Another issue I have never experienced

#

truly amazing

#

my guy is the unluckiest skripter in the world

hollow coral