View difference between Paste ID: 7CvharqL and KT52im6d
SHOW: | | - or go back to the newest paste.
1
On first join:
2
	message "<red>%player% <green> please choose a race. By typing /race pick"
3
4
command /race pick <text>:
5
	usage: <green>/race pick (<red>Dwarf, <green>Elf, <Red>Vampire <green>, <grey>Spirit <green>Argonian) 
6
	description: Pick a race
7
	trigger:
8
		set {race-.%player%} to "%text-argument%"
9
		{race-.%player%} is equal to "Dwarf":
10
			make player execute command "/Dwarf"
11
			message "<green>You are now a <red>Dwarf"
12
		{race-.%player%} is equal to "Elf":
13
			make player execute command "/Elf"
14
			message "<green>You are now an <green>Elf"
15
		{race-.%player%} is equal to "Vampire":
16
			make player execute command "/Vampire"
17
			message "<green>You are now a <black><bold>Vampire"			
18
		{race-.%player%} is equal to "Argonian":
19
			make player execute command "/Argonian"
20
			message "<green>You are now a <grey>Argonian"
21
22
on login:
23-
	remove the potion effect jumpboost from the player
23+
	remove Jump Boost from the player
24-
	remove the potion effect waterbreathing from the player
24+
	remove Strength from the player
25-
	remove the potion effect strength from the player
25+
26
command /Dwarf:
27
	description: Pick the Dwarf class
28
	trigger:
29
		set {race.%player%} to "Dwarf"
30
		wait 3 seconds
31
		set the player's walk speed to 0.12
32
		set Max Health of player to 15
33
		remove Jump Boost from the player
34-
		remove potion effect jumpboost from the player
34+
		remove Strength from the player
35-
		remove potion effect waterbreathing from the player
35+
36-
		remove potion effect strength from the player
36+
37
	description: Pick the Elf race
38
	trigger:
39
		set {race.%player%} to "Elf"
40
		wait 3 seconds
41
		set the player's walk speed to 0.3
42
		apply Jump Boost to the player
43
		remove Jump Boost from the player
44-
		apply potion effect jumpboost to the player
44+
		remove Strength from the player
45-
		remove potion effect waterbreathing from the player
45+
46-
		remove potion effect strength from the player
46+
47
	description: Pick the Vampire race
48
	trigger:
49
		set {race.%player%} to "Vampire"
50
		wait 3 seconds
51
		set the player's walk speed to 0.27
52
		remove Jump Boost from the player
53
		remove Strength from the player
54-
		remove potion effect jumpboost from the player
54+
55-
		remove potion effect waterbreathing from the player
55+
56-
		remove potion effect strength from the player
56+
57
	trigger:
58
		set {race.%player%} to "Argonian"
59
		wait 3 seconds
60
		set the player's walk speed to 0.25
61
		remove Jump Boost from the player
62
		remove Strength from the player
63
		
64-
		apply potion effect water breathing to the player
64+
65-
		remove potion effect jumpboost from the player
65+
66-
		remove potion effect strength from the player
66+
67
	{race.%player%} is "Elf":
68
		make player execute command "/Elf"
69
	{race.%player%} is "Vampire":
70
		make player execute command "/Vampire"
71
	{race.%player%} is "Argonian":
72
		make player execute command "/Argonian"
73
		
74
on break of ironore:
75
	{race.%player%} is "dwarf":
76
		chance of 50%:
77
			drop 2 iron ingots
78-
on mine of iron ore:
78+
79-
	if {race.%player%} is "dwarf":
79+
80
	
81
on break of goldore:
82
	{race.%player%} is "dwarf":
83
		chance of 50%:
84
			drop 2 gold ingots
85-
on mine of gold ore:
85+
86-
	if {race.%player%} is "dwarf":
86+
87
	
88
on break of diamondore:
89
	{race.%player%} is "dwarf":
90
		chance of 50%:
91
			drop 2 diamonds
92-
on mine of diamond ore:
92+
93-
	if {race.%player%} is "dwarf":
93+
94
			
95
at 6am in "survival":
96
	{race.%player%} is "vampire":
97
		apply weakness to the player
98
	
99-
at time 0:
99+
at 6pm in "survival":
100-
	if {rage.%player%} is "vampire"
100+
	{race.%player%} is "vampire":
101-
	apply potion of weakness tier 1 to player for 999 days
101+
		remove weakness from the player