NPC Update

This commit is contained in:
Christer Warén 2024-01-20 00:09:02 +02:00
parent cf9080a68c
commit 6a32584d11

View File

@ -5,12 +5,12 @@
#
#--------------------------------------------------
on npc click:
if player's world is "lobby":
if npc's name is "Robotti825":
if player doesn't have the permission "group.jasen":
message "&7[&r%npc's name%&7]&r Annoin sinulle jäsenroolin, muistathan käyttäytyä!" to player
if player doesn't have the permission "group.aikainenjasen":
make console execute command "/lp user %player's name% group add jasen"
on damage:
if attacker's world is "lobby":
if victim is "Robotti825":
if attacker doesn't have the permission "group.jasen":
message "&7[&r%victim%&7]&r Annoin sinulle jäsenroolin, muistathan käyttäytyä!" to attacker
if attacker doesn't have the permission "group.aikainenjasen":
make console execute command "/lp user %attacker% group add jasen"
else:
message "&7[&r%npc's name%&7]&r Olet jo jäsen" to player
message "&7[&r%victim%&7]&r Olet jo jäsen" to attacker