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!

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

Making Corpses

Discussion in 'Requests' started by ezmann!44, Jul 15, 2017.

  1. ezmann!44

    ezmann!44 Active Member

    Joined:
    Jul 2, 2017
    Messages:
    35
    Likes Received:
    1
    Category: Armorstands, Beds, Citizens, Npc

    Suggested name: Corpses

    What I want:
    A remake of the corpses plugin in Skript.
    (Spawns an NPC when the player dies, so it looks like they died and they're on the floor)

    https://www.spigotmc.org/resources/corpses.1817/

    Also if the player dies in mid air, it could maybe fall onto the floor <- gravity (dont have to do this :emoji_grinning: )

    Ideas for commands:
    No commands :emoji_slight_smile:


    Ideas for permissions:
    No permission :emoji_slight_smile:


    [​IMG]
    --- Double Post Merged, Jul 16, 2017, Original Post Date: Jul 15, 2017 ---
    bump :emoji_grinning:

    I'm sure a lot of people would love this script and download it :emoji_slight_smile:
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    and im sure its not easy. maybe.
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    @ChisleLP tru it might be easy it might be not

    but if they do it i will be happy
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    I thinking about doing this, but i have no any ideas. how... they did with armorstand and make show as player texture. (Skins)
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    @ChisleLP i think they did it with a half bed and the fake npc is sleeping on it, i downloaded the plugin and tryed it out and broke the blocks below the npc, and 1-2 blocks below, there was a half bed block , i broke it and the npc dissapeerd
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    after 1 hours trying. With armorstand, somethings won't work...

    then i try with Npc... I can't force npc that he sleep in a bed... (Need a API (Only java))

    So im surrending with it. Maybe some other can do it...


    what i got:
    Code (Skript):
    1. on death:
    2.     victim is a player
    3.     broadcast "%victim% died"
    4.     create a citizen named "%victim%" at victim
    5.     set {NPC.%Victim%} to last created citizen id
    6.     broadcast "%{NPC.%victim%}%"
    7.     set {_l} to block 2 below location of victim
    8.     set location of {_l} to bed
    9.     make npc {NPC.%Victim%} sleep at block at location of player
    10.     wait 10 seconds
    11.    
    12.    
    13.     make console execute command "/npc sel %{NPC.%victim%}%"
    14.     make console execute command "/npc rem"
    15.     #remove citizen {NPC.%victim%}
    16.     #despawn citizen {NPC.%victim%} #!Console Error! Doesn't work for me
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    @ChisleLP im really sad that you couldn't get it to work. Imagine if it would!
    You could make it a resource in the forums and like 100+ people would download it!

    I hope someone will be able to do this eventually.
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    It's really simple to do this with my NPC system that isn't public yet. Essentially, just spawn an npc with the given skin using mundosk, set the block below it to a bed for a second (Can be done clientside, if it isn't a bed the client won't make the player sleep) and then you can send the sleep packet, then set it back to the original block.
     
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    or you can use skellett and corpsereborn
     
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    @Joager I want it in Skript

    thats why I made the post xD
     
    #10 ShaneBee, Jul 17, 2017
    Last edited by a moderator: Jul 17, 2017
  11. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    someone should do this
     
  12. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    I don't understand, why don't you just use the java plugin itself rather than having to go through the hassle of creating the same thing with Skript?
     
  13. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    @OP & @Pykaxe So , im trying to do it using only skript.

    That's my "working in progress":

    Small version:
    [​IMG]
    Large version:
    [​IMG]
     
    #13 ShaneBee, Aug 2, 2017
    Last edited by a moderator: Aug 2, 2017
    • Like Like x 2
  14. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    @YoshYz I like it! Great work!

    @Funtime It has stupid features that I don't want and Can't change, like sending 5 messages to console at start. Not working properly, without other stupid plugins.
     
  15. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    @Pykaxe need to fix some things and i'll release it in a few days!
     
    • Like Like x 1
  16. DonaldTrump

    DonaldTrump Member

    Joined:
    Feb 6, 2017
    Messages:
    14
    Likes Received:
    1
    Sorry for the necro, but did you manage to do this in the end ?
     
  17. YoshYz

    YoshYz Well-Known Member

    Joined:
    Jan 28, 2017
    Messages:
    694
    Likes Received:
    82
    I just sent the file to who asked me to have it.
     
    • Like Like x 1
  18. DonaldTrump

    DonaldTrump Member

    Joined:
    Feb 6, 2017
    Messages:
    14
    Likes Received:
    1
    Is there any chance you still have that file and can send it to me too? :3
     
  19. YoshYz

    YoshYz Well-Known Member

    Joined:
    Jan 28, 2017
    Messages:
    694
    Likes Received:
    82
    I will search it tonight and let you know.
     
  20. DonaldTrump

    DonaldTrump Member

    Joined:
    Feb 6, 2017
    Messages:
    14
    Likes Received:
    1
    Thank you very much. :emoji_slight_smile:
     
Loading...