Zadax
Enthusiast
First-Login Greeting Script
Hello! As the title says, it's a script that triggers at a character's first login. It displays a "Introduction" message introducing new characters. I hope you like it.
Hello! As the title says, it's a script that triggers at a character's first login. It displays a "Introduction" message introducing new characters. I hope you like it.
Code:
-- Script made by Zadax ;o
print "Loading the First Login Script"
local Races = {
[1] = "a Human",
[2] = "an Orc",
[3] = "a Dwarf",
[4] = "a Night Elf",
[5] = "an Undead",
[6] = "a Tauren",
[7] = "a Gnome",
[8] = "a Troll",
[10] = "a Blood Elf",
[11] = "a Draenei"
};
local Classes = {
[1] = "C79C6E",
[2] = "F58CBA",
[3] = "ABD473",
[4] = "FFF569",
[5] = "FFFFFF",
[6] = "C41F3B",
[7] = "0070DE",
[8] = "69CCF0",
[9] = "9482C9",
[11] = "FF7d0A"
};
function FirstLogin (event, player)
SendWorldMessage("Hello! I'm "..player:GetName()..", "..Races[player:GetRace()].." |cFF"..Classes[player:GetClass()]..""..player:GetClassAsString().."|r. I'm a new character. Nice to meet you.");
end
RegisterServerHook(75, FirstLogin)
Last edited: