On first join:
message "<red>%player% <green> please choose a race. By typing /race pick"
command /race pick <text>:
usage: <green>/race pick (<red>Dwarf, <green>Elf, <Red>Vampire <green>, <grey>Spirit <green>Argonian)
description: Pick a race
trigger:
set {race-.%player%} to "%text-argument%"
{race-.%player%} is equal to "Dwarf":
make player execute command "/Dwarf"
message "<green>You are now a <red>Dwarf"
{race-.%player%} is equal to "Elf":
make player execute command "/Elf"
message "<green>You are now an <green>Elf"
{race-.%player%} is equal to "Vampire":
make player execute command "/Vampire"
message "<green>You are now a <black><bold>Vampire"
{race-.%player%} is equal to "Argonian":
make player execute command "/Argonian"
message "<green>You are now a <grey>Argonian"
on login:
remove Jump Boost from the player
remove Strength from the player
command /Dwarf:
description: Pick the Dwarf class
trigger:
set {race.%player%} to "Dwarf"
wait 3 seconds
set the player's walk speed to 0.12
set Max Health of player to 15
remove Jump Boost from the player
remove Strength from the player
command /Elf:
description: Pick the Elf race
trigger:
set {race.%player%} to "Elf"
wait 3 seconds
set the player's walk speed to 0.3
apply Jump Boost to the player
remove Jump Boost from the player
remove Strength from the player
command /Vampire:
description: Pick the Vampire race
trigger:
set {race.%player%} to "Vampire"
wait 3 seconds
set the player's walk speed to 0.27
remove Jump Boost from the player
remove Strength from the player
command /Argonian:
description: Pick the Argonian race
trigger:
set {race.%player%} to "Argonian"
wait 3 seconds
set the player's walk speed to 0.25
remove Jump Boost from the player
remove Strength from the player
on login:
{race.%player%} is "Dwarf":
make player execute command "/Dwarf"
{race.%player%} is "Elf":
make player execute command "/Elf"
{race.%player%} is "Vampire":
make player execute command "/Vampire"
{race.%player%} is "Argonian":
make player execute command "/Argonian"
on break of ironore:
{race.%player%} is "dwarf":
chance of 50%:
drop 2 iron ingots
default:
drop 1 iron ingot
on break of goldore:
{race.%player%} is "dwarf":
chance of 50%:
drop 2 gold ingots
default:
drop 1 gold ingot
on break of diamondore:
{race.%player%} is "dwarf":
chance of 50%:
drop 2 diamonds
default:
drop 1 diamond
at 6am in "survival":
{race.%player%} is "vampire":
apply weakness to the player
at 6pm in "survival":
{race.%player%} is "vampire":
remove weakness from the player