1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved set score with SkRayfall (under players name) (German; English)

Discussion in 'Skript' started by Philotastisch, Jan 25, 2020.

Thread Status:
Not open for further replies.
  1. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    Auf Deutsch:

    Hallo,
    ich versuche seit ein paar Stunden eine Variable und zwei Wörter (auf Deutsch) anzeigen zu lassen.
    Leider ist
    Code (Text):
    1. behind loop-player
    kein text
    Code (Text):
    1. '"&eIn Firma: " behind loop-Player' is not a text (GmbH.sk, line 4: set score "&eIn Firma: " behind loop-Player to {GmbH.e.%loop-player%} for loop-player')
    .
    Kann mir Bitte jemand dabei helfen?

    Für die Personen die sich Fragen warum das Skript GmbH heißt, ich schreibe es für einen Server wo ich Developer bin und man eine Firma gründen soll wo der Firmen Inhaber Mitarbeitern Aufgaben geben kann.

    Mit freundlichen Grüßen
    Philotastisch

    -------------------------------------------------------------

    In English:

    Hi there,
    I have been trying to display a variable and two words (in German) for a few hours.
    Unfortunately
    Code (Text):
    1. behind loop-player
    is not a text
    Code (Text):
    1. '"&eIn Firma: " behind loop-Player' is not a text (GmbH.sk, line 4: set score "&eIn Firma: " behind loop-Player to {GmbH.e.%loop-player%} for loop-player')
    .
    Can someone please help me with this?

    For those who are wondering why the script is called GmbH, I am writing it for a server where I am a developer and where I should start a company where the company owner can give employees tasks.
    Thanks Google for the translation! ;D

    Sincerely yours
    Philotastisch

     
  2. Best Answer:
    Post #32 by PanHack, Jan 26, 2020
  3. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    you mean you want a scoreboard that display's task's for Admins ?
    Edit: give code if you have coded that
     
    #2 PanHack, Jan 25, 2020
    Last edited: Jan 25, 2020
    • Friendly Friendly x 1
  4. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    Here is the Code:

    Code (Text):
    1. every 2 ticks:
    2.     loop all players:
    3.         if {gmbh.%loop-player%} is false:
    4.             set score "&eIn Firma: " behind player to {gmbh.e.%loop-player%} for loop-player
    5.             stop
    6.         if {gmbh.%loop-player%} is true:
    7.             bind hologram "&bBesitzt Firma&8 &e%{n.gmbh.%loop-player%}%" to loop-player for 1 ticks offset by 0.0, 3.0, 0.0
    8.             stop
    9.  
    I want to make a line under Name of Players Display Name.
     
  5. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    What addons do you have ?
     
    • Like Like x 1
  6. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    MundoSK
    WildSkript
    SkDragon
    SkQuery
    SkExtras
    (ProtocolLib)
    Skellett
    SimpleNameTags
    skRayFall
     
  7. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    as i remember wildskript is causing memory leaks
    EDIT: what server version are you running?
     
  8. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    I would make like this
    --- Double Post Merged, Jan 25, 2020, Original Post Date: Jan 25, 2020 ---
    1.8.8
     
  9. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    you mean something like that ?
    --- Double Post Merged, Jan 25, 2020, Original Post Date: Jan 25, 2020 ---
    https://imgur.com/a/DsNFMA6
     

    Attached Files:

    • Friendly Friendly x 1
  10. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    yes, but above the head and the hologram should not drag after you if it is possible. because with it
    Code (Text):
    1. bind hologram
    it is kind of strange when it pops out of the ground and flies up to the place where you want it.
     
  11. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    Code (Text):
    1. command /test <text> <player>:
    2.     permission : test.test
    3.     trigger:
    4.         bind hologram "%arg 1%" to arg 2 for 10 seconds offset by 0, 2.3, 0
    5.         if arg 1 is not set:
    6.             send "&3Write what you want have above you!" to player
    7.         if arg 2 is not set:
    8.             send "&3Choose player!" to player
    9.             stop
    That's what i coded so far ( you need Holographics Displays plugin to make this script work )
     
  12. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    Thats my Problem.
    It moves behind me when i do Walk.
    isn't there another method or is it the only good one?
     
  13. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    im try'ing to figure it out ill let you know
     
  14. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    Okay, Thanks! I heard that it is also possible to create a hologram with skelett.
    Nur i dont know if it can follow a player.
     
  15. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    ok so i found out way that that wouldn't follow you
    basiclly you spawn invisible armour stand that teleports every 5 ticks
     
  16. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    Okay, Thanks! I try it in 2-3 minutues.
     
  17. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    and ?
    --- Double Post Merged, Jan 25, 2020, Original Post Date: Jan 25, 2020 ---
    do you have WILDSKRIPT addon ?
    if yes try this
    Code (Text):
    1. command /test <text>:
    2.     permission : test.test
    3.     trigger:
    4.         set player's tag to "arg 1"
     
  18. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    Is that so Right?
    At my test Server come 3 Errors.

    Code (Text):
    1. every 1 ticks:
    2.     loop all players:
    3.         if {gmbh.%loop-player%} is false:
    4.             spawn armorstand at player's location
    5.             add "{Invisible:1b}" to nbt of last spawned armor stand
    6.             set name of last spawned entity to "&eIn Firma: %{gmbh.e.%loop-player%}%"
    7.             wait 1 ticks
    8.             loop all entity in radius 1 around loop-player:
    9.             if loop-entity is armor stand:
    10.                 kill loop-entity
    11.             stop
    12.         if {gmbh.%loop-player%} is true:
    13.             bind hologram "&bBesitzt Firma&8 &e%{n.gmbh.%loop-player%}%" to loop-player for 1 ticks offset by 0.0, 3.0, 0.0
    14.             stop
    15.  
     
  19. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    same 3 error's but i fixed 2 of them
    ERROR : there is no world in a periodic event if no world is given in the event skript
     
  20. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    Code (Text):
    1. [21:27:36 ERROR]: 'player's tag' is not an entity type (gmbh.sk, line 4: set player's tag to "&eIn Firma: %{gmbh.e.%loop-player%}%"')
     
  21. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    ok forget that
     
    • Funny Funny x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...