#help me

1 messages · Page 1 of 1 (latest)

icy cove
#

it is necessary that the player receives, for example, 1 diamond if he plays 1 hour on the server?

tepid veldt
#

ok?!?!

kind isle
#

interesting

cosmic oracle
#

That’s crazy

icy cove
cosmic oracle
icy cove
cosmic oracle
#

Use on join
While player is online

tepid veldt
#

is this a one off thing or every hour?

icy cove
tepid veldt
#

dont need to tag me

#

use the first join event, wait an hour, give them the diamond

icy cove
#

you can throw off the finished code how it should work?

tepid veldt
#

huh?

icy cove
tepid veldt
#

stop tagging me

cosmic oracle
#

Lmfao

tepid veldt
#

huh? <-- this would imply "wtf do you mean?"

plucky dove
#
on join:
  while player is online:
    wait an hour
    give a diamond to the player
icy cove
plucky dove
#

I'm sure you can figure that out

#

happy to help if you are having a specific issue while implementing that

compact berry
# icy cove I need to be able to get a diamond 1 time a day
on join:
  set {jointime::%player%} to now

every minute:
  loop all players:
    if difference between now and {jointime::%loop-player%} is not less than 24 hours:
      drop diamond at loop-player
      set {jointime::%loop-player%} to now

on quit:
  delete {jointime::%player%}

on kick:
  delete {jointime::%player%}