View difference between Paste ID: rn2jMVcH and 3YxGyST0
SHOW: | | - or go back to the newest paste.
1
command /spawnvillager:
2
	trigger:
3
		spawn a priest
4-
		apply slowness 9999 to spawned creature for 99999 seconds
4+
		set {villager} to spawned creature's location
5-
		apply resistance 9999 to spawned creature for 99999 seconds
5+
		wait 10 tick
6-
		set name of spawned creature to "&6AREA VIP"
6+
		kill spawned creature
7
		make console execute command "/sk reload %script%.sk"
8
		stop
9
on skript load:
10
		spawn a priest at {villager}
11
		set name of spawned villager to "&6AREA VIP"
12
		apply slowness 100000 to spawned priest for 999999999 days
13
		set {_loc} to location of block at spawned creature
14
		loop all villagers in radius 1 of block at {_loc}:
15
				set {_villager} to loop-entity
16
		while health of {_villager} is more than 0:
17
				wait 5 ticks
18
				teleport {_villager} to {_loc}
19
on damage:
20
    victim is a villager:
21
        victim's name is "&6AREA VIP":
22
      	    cancel event
23
command /rvillager:
24
	trigger:
25
		if player has permission "staff.warp":
26
			loop all priests
27
command /setvillager:
28
	trigger:
29
		if player has permission "staff.warp":
30
			set {teleport.villager} to player's location
31
			send "&bVoce setou o local warp VIP"
32
			stop
33
		
34
on rightclick on priest:
35
	if player has permission "vip.warp":
36
		cancel event
37
		teleport player to {teleport.villager}
38
		send "&0&l[&4*&0]&2Bem Vindo a area &6&lVIP" to player
39
		play raw sound "mob.enderdragon.wings" at player with pitch 1 volume 10
40
		stop