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 our 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.

Death npc

Discussion in 'Skript' started by DarKevuN, Aug 14, 2019.

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

    DarKevuN Member

    Joined:
    Aug 14, 2019
    Messages:
    4
    Likes Received:
    0
    Hello,
    Okay I'm french so sorry for english =)

    Here I would like a script:

    on death npc:
    if name is "test":
    send "Yeah" to attacker

    Help me

    --- Double Post Merged, Aug 14, 2019, Original Post Date: Aug 14, 2019 ---
    Kill by player ^^
     
  2. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    304
    Likes Received:
    20
    Code (Text):
    1. on death of npc:
    2.     if victim's name is "test"
    3.         send "Yeah" to attacker
    4.  
    5. # didn't understand your merged post but smth like this (?)
    6.  
    7. on death of npc:
    8.     if victim's name is "test"
    9.         send "%attacker% killed %victim%" to attacker
     
  3. DarKevuN

    DarKevuN Member

    Joined:
    Aug 14, 2019
    Messages:
    4
    Likes Received:
    0

    Dont work cant understand this event
     

    Attached Files:

  4. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    304
    Likes Received:
    20
    Code (Text):
    1. on death:
    2.     if victim is npc:
     
  5. DarKevuN

    DarKevuN Member

    Joined:
    Aug 14, 2019
    Messages:
    4
    Likes Received:
    0
    With a name? or id (57)
     
  6. LukynkaCZE

    LukynkaCZE Active Member

    Joined:
    May 12, 2019
    Messages:
    26
    Likes Received:
    0
    • Agree Agree x 1
  7. DarKevuN

    DarKevuN Member

    Joined:
    Aug 14, 2019
    Messages:
    4
    Likes Received:
    0

    it would be necessary

    on death:
    if attcker is player
    if npc name is "test"
    message "gg" to attacker
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.
Loading...