God Mythera
Veteran OT User
data/creaturescripts.xml
The script for 9.x - 10.x (data/creaturescripts/Enter)
The script for 8.x+ (data/creaturescripts/Enter)
Code:
<event type="login" name="Enter" script="Enter.lua"/>
The script for 9.x - 10.x (data/creaturescripts/Enter)
Code:
-- Scripted by Rac 9.x - 10.x
function onLogin(cid)
N = getCreatureName(cid)
G = getPlayerGroupId(cid)
if G == 3 then
broadcastMessage("Administrator-> " .. N .. " <-Just logged in" , 22)
return 1
end
if G == 2 then
broadcastMessage("Gamemaster-> " .. N .. " <-Just logged in" , 22)
end
return 1
end
The script for 8.x+ (data/creaturescripts/Enter)
Code:
-- Scripted by Rac 8.x
Sp = " has just logged in"
itS = ". Staff Position: "
function onLogin(cid)
N = getCreatureName(cid)
G = getPlayerGroupId(cid) do
if G == 6 then
broadcastMessage(N .. Sp .. itS .."Administrator", 22)
elseif G == 5 then
broadcastMessage(N .. Sp .. itS .."Community Manager", 22)
elseif G == 4 then
broadcastMessage(N .. Sp .. itS .."Gamemaster", 22)
elseif G == 3 then
broadcastMessage(N .. Sp .. itS .."Senior Tutor", 22)
elseif G == 2 then
broadcastMessage(N .. Sp .. itS .."Tutor", 22)
elseif G == 1 then
broadcastMessage(N .. Sp .. " ", 20)
end
return 1
end
end