#?

1 messages · Page 1 of 1 (latest)

pearl lake
#

how can i make thing like whenever player clicks item in gui close gui and let player type text for report and then sent it to luckperms specified group

rough crescent
#

make the GUI, do the conditions, set a variable or metadata or something that is checked when the player uses chat, send that to all players with the permission that you want

pearl lake
#

can u give me example code for that to learn it cuz i have no idea abt that

rough crescent
#

do you know basic skript?

pearl lake
#

yeah

#

i know few basic things

rough crescent
#

so you know how to make a GUI and check the clicked slot?

pearl lake
#

@rough crescent can u help me fix this

pearl lake
#

oh at line 2 i fixed it can u help me to fix line 1

#

14*

#

should i send code

rough crescent
#

it's not a variable

#

{combat.%{_p}%}

#

but {combat::%{_p}'s uuid%} is better

pearl lake
#

ok

serene cosmos
rough crescent
#

I kinda have to agree tho

#

I recommend you check out some tutorials

pearl lake
#

@rough crescent bro my code only sends text message to victim

#

i want to send to victim and attacker too

rough crescent
#

k then do that

#

send ... to victim and attacker

pearl lake
#

yeah i knew that

#

but

#

im lil confused abt my code

#

umm

#

@rough crescent umm

rough crescent
#

what even did you use?

#

also please check docs, read errors and look at tutorials

#

you're not gonna get anywhere like this

pearl lake
#

just help me fix this and were done

rough crescent
#

I'm helping you by telling you to learn basic skript

pearl lake
#

thanks but please just help me fix this

rough crescent
#

well I can tell you with 100% certainty that no one will be able to help you with the given information

rough crescent
pearl lake
#

wym

rough crescent
#

okay nvm

#

gl

pearl lake
#

broo sorry

#

i get it

#

i fixed

#

it needed {} this things i guess

#

has no errors but doesnt sents message:(

rough crescent
#

you know when you ask for help it helps if you share your code

pearl lake
#
 attacker is player
 victim is player

 combat(victim)
 combat(attacker)


function combat(p: player):

 if {combat.%{_p}%} is false:

  set {combat.cooldown.%{_p}%}  to 15
  set {combat::%{_p}'s uuid%} to true
  while {combat.cooldown.%{_p}%} is not 0:

   remove 1 from {combat.cooldown.%{_p}%}
   send action bar "&fCombat: &4%{combat.cooldown.%{_p}%}%" to {victim} and {attacker}

   if {combat.cooldown.%{_p}%} is 0:
    set {combat.%{_p}%} to false

   wait 1 second
 
 else:
  set {combat.cooldown.%{_p}%} to 15

on quit:
 if {combat.%player%} is true:
  kill player
  set {combat.%player%} to false
  set {combat.cooldown.%player%} to 0

on death:
  set {combat.%victim%} to false
  set {combat.cooldown.%victim%} to 0
#

code looks wierd in dc

rough crescent
#

you never set the variables

pearl lake
#

oh

#
 combat(attacker)```
#

what is this then

rough crescent
#

that's a parameter

pearl lake
#

ok

rough crescent
#

did you even make this?

#

I'm not judging you if you did, it's just that it feels out of place

pearl lake
#

i watched yt tutorial

#

yoo its fixed

#

i watched this

rough crescent
#

do you understand it tho?

pearl lake
#

yeah

rough crescent
#

also idk who made this but it kinda sucks

pearl lake
#

i just changed seconds to 21 from 15 and something is wrong with it

#

it counts from 21 to 0 in like 6 sec

#

i just changed it to 15 and its good

#

but i want it to be 21 xD

rough crescent
#

idk

#

#skript-help-2 message

hollow jolt
hollow jolt