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 In-game kill effect switcher

Discussion in 'Skript' started by OrangeCanadian, Apr 4, 2018.

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

    OrangeCanadian Active Member

    Joined:
    Aug 2, 2017
    Messages:
    72
    Likes Received:
    0
    Hello there! I'm i need of some help. So Here is my Skript code, but when i give the permission to someone the person gets both Potion and the Goldenapple please help me fix this issue. :emoji_slight_smile:

    on death of player:
    victim is a player:
    attacker is a player:
    player has permission "apple.me"
    execute player command "give %attacker% golden_apple 1 "

    on death of player:
    victim is a player:
    attacker is a player:
    player has permission "pot.me"
    execute console command "give %attacker% potion:16421 1"
    --- Double Post Merged, Apr 4, 2018, Original Post Date: Apr 4, 2018 ---
    It's supposed to give the Killer one of the selected buff. (In-game in the GUI)
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    217
    Is the person you OP? Because an OP will technically have ALL permissions, therefor they will get both.
    I have run into this type of error when testing, If its you, make sure to DE-OP yourself during testing
     
  3. OrangeCanadian

    OrangeCanadian Active Member

    Joined:
    Aug 2, 2017
    Messages:
    72
    Likes Received:
    0
    No i de-opped myself and tested it and it doesnt work
    I also demoted myself to Member rank
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    217
    oh duh, why didn't i notice this....
    "player has permission "pot.me""
    needs to be
    "victim has permission "pot.me""
     
  5. OrangeCanadian

    OrangeCanadian Active Member

    Joined:
    Aug 2, 2017
    Messages:
    72
    Likes Received:
    0
    I think i found the issue.
    --- Double Post Merged, Apr 4, 2018, Original Post Date: Apr 4, 2018 ---
    Ohh Thanks let me see.

    _OrangeCanadian#6045 Is my discord if you want to chat their. (This is complicated)
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    217
    let me know if that works or not.
    If it doesn't work, ill add you to discord
     
  7. OrangeCanadian

    OrangeCanadian Active Member

    Joined:
    Aug 2, 2017
    Messages:
    72
    Likes Received:
    0
    And is it possible to create a skript were when the player kills someone, is has a chance to run a command?
    --- Double Post Merged, Apr 4, 2018, Original Post Date: Apr 4, 2018 ---
    Im getting a friend on my server give me like 5 minutes. (If you can)
     
  8. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    217
    yeah totally

    Code (Skript):
    1. on death of player:
    2.     attacker is a players
    3.     chance of 10%:
    4.         execute console command "command here"
     
  9. OrangeCanadian

    OrangeCanadian Active Member

    Joined:
    Aug 2, 2017
    Messages:
    72
    Likes Received:
    0
    It doesn't work now
     
  10. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    217
    Please elaborate on "It doesn't work now"
     
  11. OrangeCanadian

    OrangeCanadian Active Member

    Joined:
    Aug 2, 2017
    Messages:
    72
    Likes Received:
    0
    and thanks
    --- Double Post Merged, Apr 4, 2018, Original Post Date: Apr 4, 2018 ---
    Now on kill i get nothing. But the permissions are added to the player... This is soo complicated
     
  12. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    217
    Show your code
     
  13. OrangeCanadian

    OrangeCanadian Active Member

    Joined:
    Aug 2, 2017
    Messages:
    72
    Likes Received:
    0
    This is very strange. The permissions get added to the player in the GUI. Then when i kill a player it doesn't give me anything
     
  14. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    217
    AGAIN... Show your code... i can't help you if i have no clue what you wrote
     
  15. OrangeCanadian

    OrangeCanadian Active Member

    Joined:
    Aug 2, 2017
    Messages:
    72
    Likes Received:
    0
    on death of player:
    victim is a player:
    attacker is a player:
    player has permission "apple.me"
    execute player command "give %attacker% golden_apple 1 "

    on death of player:
    victim is a player:
    attacker is a player:
    player has permission "pot.me"
    execute console command "give %attacker% potion:16421 1"
     
  16. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    217
    wow were back to this again..... i already told you how to edit this code and you didn't.
    player has permission "pot.me"
    needs to be
    attacker has permission "pot.me"
     
  17. OrangeCanadian

    OrangeCanadian Active Member

    Joined:
    Aug 2, 2017
    Messages:
    72
    Likes Received:
    0
    Okay thats it
     
  18. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    217
    Yeah, i know it is, because i told you to do that like 10 messages ago
     
  19. OrangeCanadian

    OrangeCanadian Active Member

    Joined:
    Aug 2, 2017
    Messages:
    72
    Likes Received:
    0
    You said needs to be
    "victim has permission "pot.me""
    earlier but ok>

    on death of player:
    victim is a player:
    attacker is a player:
    attacker has permission "apple.me"
    execute player command "give %attacker% golden_apple 1 "

    on death of player:
    victim is a player:
    attacker is a player:
    attacker has permission "pot.me"
    execute console command "give %attacker% potion:16421 1"
    --- Double Post Merged, Apr 4, 2018, Original Post Date: Apr 4, 2018 ---
    This is soo confusing to chat in this. You get the wrong messages at the wrong time...
     
  20. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    217
    Yeah it can be confusing, anyways its working now?
    I gotta head to bed here, (super late)
    But if you need more help i can help you in the morning!
    If this is working, please make sure to mark it as solved
     
Thread Status:
Not open for further replies.

Share This Page

Loading...