#Errors

1 messages · Page 1 of 1 (latest)

tidal abyss
#

Domain expansion code

round tusk
round tusk
#

@tidal abyss

tidal abyss
#

@round tusk

#

I forgot it and not on pc

#

Do you mind reading code please so Rory

balmy brook
#

how is that supposed to help

#

only thing we can find is very obvious syntax errors

#

you need to send_error and/or debugit

tidal abyss
#

Like what

#

Syntax

#

Errors

#

Friend coded a lot

#

And he’s knew

#

Updated version sent

#
    permission: domain.use
    trigger:
        give player 1 nether star named "&0&k1&bDomain Expansion&0&k1"
        send "&aYou have received the Domain Expansion! Use it wisely." to player

on rightclick with nether star:
    if name of player's tool is "&0&k1&bDomain Expansion&0&k1":
        if clicked entity is a player:
            set {_player1} to location of player
            set {_player2} to location of clicked entity

            remove 1 nether star named "&0&k1&bDomain Expansion&0&k1" from player's inventory

            teleport player to location(0, 64, 0, world("world"))
            teleport clicked entity to location(0, 64, 5, world("world"))

            send "&cYou have been dragged into the Domain Expansion! Fight!" to player and clicked entity
            play sound "ENTITY_WITHER_SPAWN" with volume 1 and pitch 1 for player and clicked entity

            set {inDomain::%player%} to true
            set {inDomain::%clicked entity%} to true

on quit:
    if {inDomain::%player%} is true:
        kill player
    if {inDomain::%event-player%} is set:
        kill event-player
        delete {inDomain::%event-player%}

every 1 second:
    loop all players:
        if {inDomain::%loop-player%} is true:
            if loop-player is within radius 10 of location(0, 64, 0, world("world")):
                if loop-player's opponent is dead:
                    wait 60 seconds
                    teleport loop-player to the spawn of world("world")
                    send "&aYou have won the battle and returned to spawn!" to loop-player
                    delete {inDomain::%loop-player%}
#

@balmy brook debug?

#

Wdym

balmy brook
#

dont ping me

tidal abyss
#

Sry there a lot issues?

balmy brook
#

idk

#

you cant tell me

tidal abyss
#

Ok why not

balmy brook
#

no, you arent telling me what's wrong with the code

#

so I dont know

tidal abyss
#

Oh but I’m banned on minehut

#

Can’t trat

#

Test

jovial cave
#

localhosts:

tidal abyss
#
    permission: domain.use
    trigger:
        give player 1 nether star named "&0&k1&bDomain Expansion&0&k1"
        send "&aYou have received the Domain Expansion! Use it wisely." to player

on rightclick with nether star:
    if name of player's tool is "&0&k1&bDomain Expansion&0&k1":
        if clicked entity is a player:
            set {_player1} to location of player
            set {_player2} to location of clicked entity

            remove 1 nether star named "&0&k1&bDomain Expansion&0&k1" from player's inventory

            teleport player to location(0, 64, 0, world("world"))
            teleport clicked entity to location(0, 64, 5, world("world"))

            send "&cYou have been dragged into the Domain Expansion! Fight!" to player and clicked entity
            play sound "ENTITY_WITHER_SPAWN" with volume 1 and pitch 1 for player and clicked entity

            set {inDomain::%uuid of player%} to true
            set {inDomain::%uuid of clicked entity%} to true
        else:
            send "&cYou need to click on another player to activate Domain Expansion." to player

on quit:
    if {inDomain::%uuid of event-player%} is set:
        kill event-player
        delete {inDomain::%uuid of event-player%}

every 1 second:
    loop all players:
        if {inDomain::%uuid of loop-player%} is true:
            if loop-player is within radius 10 of location(0, 64, 0, world("world")):
                if {opponentDead::%uuid of loop-player%} is true:
                    wait 60 seconds
                    teleport loop-player to the spawn of world("world")
                    send "&aYou have won the battle and returned to spawn!" to loop-player
                    delete {inDomain::%uuid of loop-player%}```
#

Debugged according to friend

#

He’s not good thi

#

According to other devs

#

If it does work a public domain skript is revolutionary

#

Hi x8oght

balmy brook
#

why the heck isnt the wait 60 seconds + all lines below it just in the right click event.

tidal abyss
#

I didn’t code it

balmy brook
#

then you dont need to loop all players every second

tidal abyss
#

I don’t know skript

#

Lmao

balmy brook
#

then why are you here??

tidal abyss
#

I can refer that to him

#

Wait I’m just kidding ig I’m a pro coder!

#

Xight

#

Want me to ask him that

balmy brook
#

How are we supposed to have a conversation about the code with you if

  1. You "didnt code it"
  2. You "dont know skript"?
tidal abyss
#

I do know a lot

#

Trust

jovial cave
#

bro knows so much he created useless local variables {_player1} and {_player2}

tidal abyss
#

the looppp ensures continuous monitoring of the battle status, so we can detect when the opponent dies and trigger the wait only after confirming the battless end not just when the item is use

#

He said that

jovial cave
#

the "loop" also gets re-called every second

tidal abyss
#

Yes does that lag server

balmy brook
tidal abyss
#

I have the persons discord if you want it

#

There a dev friend

balmy brook
tidal abyss
#

Oh

#

Ok

#

Well that’s not me

#

So as long as the code works I don’t mind if they use ai to explain or write

#

So they don’t code??

jovial cave
#

considering you're here i'd say it doesn't work

tidal abyss
#

Ok

#

Do I make them resign

#

Bc I won’t have coder

balmy brook
#

ill never understand minehut people

tidal abyss
#

???

#

I play minehut but I’m banned

balmy brook
#

hiring/applying as devs and then everything goes through without proof

tidal abyss
#

Yea they said they dev so i give rank

#

And they send me code

#

For whatever I ask like instantly

balmy brook
#

instantly?

#

then its very likely they use AI, cause thinking about how to create stuff takes time

#

not to mention testing, which was probably neglected

tidal abyss
#

Oh

#

Do they not type fast

#

Fast

#

They said they have 300 words per second

#

So they get code quick

balmy brook
#

per SECOND???

tidal abyss
#

Yes

balmy brook
#

Thats some next level shit

tidal abyss
#

They are good bc

#

They type fast

#

I think

round tusk
#

If you can't run the code on a server then why do you need it?

tidal abyss
#

Because my brothers server uses it

#

It’s on minehut

#

But I can’t play

balmy brook
tidal abyss
#

So I just play with his account

balmy brook
#

300 words per SECOND?

jovial cave
balmy brook
#

MINUTE, not second

tidal abyss
#

He’s fast typed

#

Really speedy

tidal abyss
#

He says he practice word toting games

round tusk
tidal abyss
#

Oh

tidal abyss
#

Or minute

balmy brook
#

minute

jovial cave
#

minute

#

i type like 144wpm max

balmy brook
#

I think there was a youtube video about a guy that reached 200WPM, which is very impressive.

to do 150% of that in 1/60th the time is impossible

#

time yourself, see if you can do more than 2-3 words a second

#

then realise the other guy claims to be 100 times faster

tidal abyss
#

Wait what

#

So he’s world record typerrr

#

???

jovial cave
#

lying*

tidal abyss
#

Do I tell him he broke redord

balmy brook
#

they're lying, or they are copy-pasting AI code

#

or both

tidal abyss
#

If I have bad English

#

Dinner sorry mind me

tidal abyss
#

I fire them

tidal abyss
#

@balmy brook

#

found the error i just tested on falix

#
    permission: domain.use
    trigger:
        give player 1 nether star named "&0&k1&bDomain Expansion&0&k1"
        send "&aYou have received the Domain Expansion! Use it wisely." to player

on rightclick with nether star:
    if name of player's tool is "&0&k1&bDomain Expansion&0&k1":
        if clicked entity is a player:
            set {_player1} to location of player
            set {_player2} to location of clicked entity

            remove 1 nether star named "&0&k1&bDomain Expansion&0&k1" from player's inventory

            teleport player to location(0, 64, 0, world("world"))
            teleport clicked entity to location(0, 64, 5, world("world"))

            send "&cYou have been dragged into the Domain Expansion! Fight!" to player and clicked entity
            play sound "ENTITY_WITHER_SPAWN" with volume 1 and pitch 1 for player and clicked entity

            set {inDomain::%uuid of player%} to true
            set {inDomain::%uuid of clicked entity%} to true
        else:
            send "&cYou need to click on another player to activate Domain Expansion." to player

on quit:
    if {inDomain::%uuid of event-player%} is set:
        kill event-player
        delete {inDomain::%uuid of event-player%}

every 1 second:
    loop all players:
        if {inDomain::%uuid of loop-player%} is true:
            if loop-player is within radius 10 of location(0, 64, 0, world("world")):
                if {opponentDead::%uuid of loop-player%} is true:
                    wait 60 seconds
                    teleport loop-player to the spawn of world("world")
                    send "&aYou have won the battle and returned to spawn!" to loop-player
                    delete {inDomain::%uuid of loop-player%}```
#

the returned value of the function loctation location is not a world