• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

CreatureEvent Staff Login for TFS 1.0 & 0.4 (9.x - 10.x & 8.x)

Was this helpful?

  • Yes.

    Votes: 5 62.5%
  • No.

    Votes: 3 37.5%

  • Total voters
    8

God Mythera

Veteran OT User
Joined
Aug 11, 2012
Messages
2,048
Solutions
2
Reaction score
256
Location
United States
data/creaturescripts.xml
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
 
Back
Top