#Help with some lines

1 messages · Page 1 of 1 (latest)

sonic totem
#

Ive got some lines that show an error and im not quite sure how to fix

#

Hello ive got a problem with 3 lines in my skript

#

if {StrengthMin::%player%} is not set or {StrengthMin::%player%} is 0:

#

That

#

if attacker is in weather rain:

#

This

#

set cooldown of dragons breath for %player% to 2 seconds

#

And this

#

@clear pawn

sonic totem
#

what?

merry yew
sonic totem
#

I did

#

The lines i sent doesnt work

#

it sends an error msg

#

Lemme send the error

merry yew
# sonic totem

instead of in rain should probably check if weather is rain

tiny bison
#

are you using skream?

tiny bison
merry yew
tiny bison
#

thats where he got the condition from

sonic totem
#

whats skream?

tiny bison
sonic totem
#

idk im just helping a friend but these 3 lines i cant understand

#

Also this

tiny bison
sonic totem
#

Its custom potion

#

That he wants to make

#

With some effects

#

And custom crafting recipe

tiny bison
#

did he make the skript or did you?

sonic totem
#

he downloaded it from somewhere😭

tiny bison
#

ok tell him to make his own or ask some1

merry yew
sonic totem
#

But like its outdated so some lines show errors

#

Could u help with those 3 lines like ive fixed any other error only those 3 are confusing me

#

🙏

tiny bison
#

that skript is most likely extremely outdated

merry yew
#

^

tiny bison
#

send the full skript please?

sonic totem
#

Uuu

#

Its really long

tiny bison
#

idc

sonic totem
#

Okay

tiny bison
#

if your worried about nitro do upload as file

sonic totem
#

I have nitro

#

Here

merry yew
#

the hell

sonic totem
#

yea dont ask me bro

#

Idk why he even would downlowd

#

Download a skript

merry yew
#

then don't use it

sonic totem
#

He wants to so

#

🤷🏽

#

I mean like can u guys help?

tiny bison
#

infuse skript 🤦‍♂️

#

@sonic totem tell your friend to stop being a bum and just find a plugin or create something

sonic totem
#

bruh

#

i came here for help for the lines

#

and as i said

#

He doesnt want to

#

Because hes lazy

#

And he just made an smp

#

So like he doesnt have time

tiny bison
#

Smps aren't something you should rush

sonic totem
#

Well he did

#

He has active players now and everything like

tiny bison
#

also tell your friend if hes going to steal from others he should at least know what hes doing

#

infuse copy smh

sonic totem
#

Yeah ill inform him

#

but like can u help with the lines😭

tiny bison
#
  1. most of these lines i cant help because its outdated
sonic totem
#

i didn’t ignore u

#

scroll up i said what it was for

#

I mean like there is multiple of that line but in different names

tiny bison
#

also with the way skript works its not gonna show any errors until alot of these are fixed

#

so its alot more then 3

sonic totem
#

And they work

#

Yeah ik

tiny bison
#

most likely

sonic totem
#

but like the other potions work

#

and they are just copy pasted texts with different names

tiny bison
sonic totem
#

wym what it is for

#

Ohh

#

1s

tiny bison
#

like what should it be set to i mean

sonic totem
tiny bison
#

I cant read that

#

wtv i gtg

sonic totem
#

Alr cya bro

#

@merry yew

#

Can u help with the

#

If attacker is in rain

#

Line

merry yew
#

?

sonic totem
#

The “if attacker is in rain:”

#

Line

royal crown
#

wouldnt it be if weather in "%world of player%" is rainy or something

sonic totem
#

ill try

#

Doesnt work

royal crown
sonic totem
#

I see

#

Now this pops up

royal crown
#

damage/death?

#

lets see

sonic totem
#

It thinks its a damage death situation

royal crown
#

what line is that

#

oh wait

#

since theres on damage

sonic totem
#

I fixed it

#

i changed "%world of attacker%"

royal crown
#

oh yeah cuz victim doesnt matter

sonic totem
#

Yea

#

now the other 2 lines

#

U think u can help?

royal crown
sonic totem
#

I switched rhe line

#

To

#

if {StrengthMin::%player%} is 0 or {StrengthMin::%player%} is not set:

royal crown
#

oh you swapped them

#

if its not set and 0 does the same wouldnt you do

sonic totem
royal crown
#
  {StrengthMin::%player%} = 0```
sonic totem
#

So i switch or with and

royal crown
#

error

#

it cant be set and not set

sonic totem
#

okay

#

And what about the

#

Is not set

hybrid turtle
sonic totem
#

wym by do stuff

#

I dont understand what u meant by condition 1 condition 2 and do stuff

hybrid turtle
#

if any:
{StrengthMin::%player%} is 0
{StrengthMin::%player%} is not set
then:
do stuff

sonic totem
#

I dont want it to do stuff

hybrid turtle
#

ok

#

so then just stop the code

sonic totem
#

?

hybrid turtle
#

then:
stop

sonic totem
#

Wait ill send u a ss of the lines beneath aswell

hybrid turtle
#

ok

sonic totem
hybrid turtle
#

thats what you want to do if its set to 0?

sonic totem
#

this is what it does

#

if any:
{StrengthMin::%player%} is 0
{StrengthMin::%player%} is not set

#

Would this work?

royal crown
#

yeah im pretty sure

hybrid turtle
sonic totem
#

okay but if i add the then part

#

Do i add anything under then

royal crown
#

under then is the code

hybrid turtle
sonic totem
#

if {StrengthMin::%player%} is 0 or {StrengthMin::%player%} is not set:
then:
stop

#

Wait

royal crown
#

that doesnt work

sonic totem
#

Yea ik

royal crown
#

isnt then only put after if any:

sonic totem
#

if any:
{StrengthMin::%player%} is 0
{StrengthMin::%player%} is not set
then:
stop

royal crown
#

just set the variable earlier to 0 then do if {StrengthMin::%player%} is 0:

sonic totem
#

holy

#

That gave me so many errors

#

Its something wromg with the spacing

royal crown
#

oh yeah

severe nebula
#

So fix it

royal crown
#

indentation

#

sucks

#

like oh im sorry i added 1 extra space

sonic totem
#

I fixed the spacing

#

Now its the last line

sonic totem
severe nebula
#

I might be able to help

sonic totem
#

Alr

royal crown
#

on right click:
if player's tool is dragon breath:
if {Primary::%player%::*} contains "Ender":
if player has player's tool on cooldown:
stop
else:
cancel event
set cooldown of dragons breath for %player% to 2 seconds
remove 1 of dragon breath from player's inventory
wait 2 seconds
remove absorption from player
remove regeneration from player
apply absorption 2 to player for 2 minutes
apply regeneration 2 to player for 5 seconds
play sound "entity.player.burp" to player

sonic totem
#

set cooldown of dragons breath for %player% to 2 seconds

severe nebula
sonic totem
#

I just want it to set cooldown

#

Not do allat

royal crown
#

no im sending the code for that part

severe nebula
#

K

#

So "dragons breath" isn't a condition

#

Only reason the stuff above is correct is because its a item.

#

Do you want the minecraft cooldown?

sonic totem
#

U can still set a cooldown to drinking it

severe nebula
#

set item cooldown of dragon breath for player to 2 seconds

#

Try that but add %player%

sonic totem
#

Alr

severe nebula
sonic totem
severe nebula
#

Hm

royal crown
#

o wait

severe nebula
#

Yea i dont know, try messing with things.

royal crown
#

would event-item work

sonic totem
#

maybe

#

Ill try

royal crown
#

set item cooldown of player's tool for player to 2 seconds

#

or like this

#

no wait

#

set item cooldown of event-item for player to 2 seconds

#

player's tool will be just the tool

sonic totem
#

set item cooldown of event-item "dragon breath" for %player% to 2 seconds

royal crown
#

event item "dragon breath"

#

that defeats the purpose of event-item

sonic totem
#

no?

royal crown
#

set item cooldown of %event-item% for %player% to 2 seconds

hybrid turtle
#

you dont need the %%

royal crown
#

yeah

hybrid turtle
#

thats only for stuff inside text

sonic totem
#

if event-item is "dragon breath":
set item cooldown for %player% to 2 seconds

royal crown
#

remove %

hybrid turtle
sonic totem
#

Ive made an auto compressor before

#

And i did like

#

If event-item = “block” or “blah”

#

it worked

hybrid turtle
#

thats wierd

#

shouldnt work normally but ok

royal crown
#

yeaaaa

hybrid turtle
sonic totem
#

nope

royal crown
#

recoded

#

gtg

sonic totem
#

im just helping a friend

#

if event-item is "dragon breath": set item cooldown for player to 2 seconds

#

This doesnt work

sonic totem
hybrid turtle
#

and try it

sonic totem
#

okay

#

Still doesnt work

#

how about whta u said

hybrid turtle
#

send error and code

sonic totem
#

if event-item is dragon breath: set item cooldown for player to 2 seconds

#

And its the same error message

#

cant understand condition/effect

hybrid turtle
#

send the full code

sonic totem
#

the full script?

hybrid turtle
#

just the stuff around it if you can

#

are you on phone or compyter?

sonic totem
#

phone

#

Lets first trt thr thing u said

hybrid turtle
#

what was that

sonic totem
#

Without dragon breath after event-itsm

hybrid turtle
#

???

hybrid turtle
sonic totem
#

set item cooldown of %event-item% for %player% to 2 seconds

hybrid turtle
#

oh

#

you need to remove the %

#

thats only for stuff inside quotes

sonic totem
#

the %event-item%

#

and %player%?

hybrid turtle
#

yes just remove the %% signs

sonic totem
#

Ok

#

set item cooldown of event-item for player to 2 seconds

#

So like this

hybrid turtle
#

yes

sonic totem
#

It works

#

Woohoo

#

Thank so much!