• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

First Login Script

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.
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:

slp13at420

Mad Scientist
luv the race/class tables
bump nice :D

- - - Updated - - -

ooooh since it announces to ALL ... then maybe use a :GetTeam() method.
team = {
[0] = "An Alliance",
[1] = "A Horde"
};
something like that then you could do :
SendWorldMessage("Hello! I'm "..player:GetName()..", "..team[player:GetTeam].." "..Races[player:GetRace()].." .......
 
Last edited:

slp13at420

Mad Scientist
VG38KD4.png


ACE Core.

Code:
[COLOR="#808080"]
-- Script made by Zadax ;o

print "Loading the First Login Script"

local Team = {
	[0] = "Alliance",
	[1] = "Horde"
};
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 for the "..Team[player:GetTeam()].." . I'm a new character. Nice to meet you.");
end

RegisterPlayerEvent(30, FirstLogin)
[/COLOR]
Ignore the "A" in team name lol I changed my mind on how I was gonna place it n forgot to edit the table entry prior to the pic.
 
Last edited:
Top