• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Temple position

cooldodo

New Member
Joined
Jan 17, 2014
Messages
297
Reaction score
4
Every time when my players do the character the character log in then log out in a sec can anyone help me in that please
 
Sure. Here you are.
in Data/Config.lua

PHP:
-- Connection config
    worldId = 0
    ip = "localhost"
    bindOnlyGlobalAddress = false
    loginPort = 7171
    gamePort = 7172
    loginTries = 10
    retryTimeout = 5 * 1000
    loginTimeout = 60 * 1000
    maxPlayers = 1000
    motd = "Welcome to Morta!"
    displayOnOrOffAtCharlist = true
    onePlayerOnlinePerAccount = false
    allowClones = false
    serverName = "Morta"
    loginMessage = "Welcome to Morta"
    statusTimeout = 5 * 60 * 1000
    replaceKickOnLogin = true
    forceSlowConnectionsToDisconnect = false
    loginOnlyWithLoginServer = false
    premiumPlayerSkipWaitList = false
OTservlist: |

Click here> OTServlist (Register)
and then what do i do ?
 
@cooldodo

1st Step. (Register)
<Done>
2nd Step. (Login)

OTServlist LOGIN
3rd Step:
+ [Add Server]


Good luck with your server.
You are not allowed to advertise other servers in your Server Name field. Choose another server field! it keep saying this thing

@cooldodo

1st Step. (Register)
<Done>
2nd Step. (Login)

OTServlist LOGIN
3rd Step:
+ [Add Server]


Good luck with your server.
our server has to be online if you want to add it to our list! it keep saying this too
 
Last edited by a moderator:
@cooldodo, do not spam just be pacient. You can also edit your latest post.

First Step:
Config your Data/Config.lua
IP:
Port:


Second Step:
Run the Server (The Forgotten Server.exe?)

Third Step. (Wait few minuts, then try to add it on OTServlist).
 
@cooldodo, do not spam just be pacient. You can also edit your latest post.

First Step:
Config your Data/Config.lua
IP:
Port:


Second Step:
Run the Server (The Forgotten Server.exe?)

Third Step. (Wait few minuts, then try to add it on OTServlist).
i undertand second and third step but first step i dont understand what should i do with config.lua ?
 
PHP:
-- The Forgotten Server Config

-- Account Manager
accountManager = "yes" / Change this if you want to use a AAC creator online (webpage)newPlayerChooseVoc = "no"
newPlayerSpawnPosX = 95
newPlayerSpawnPosY = 117
newPlayerSpawnPosZ = 7
newPlayerTownId = 1
newPlayerLevel = 1
newPlayerMagicLevel = 0
generateAccountNumber = "yes"

-- Banishments
broadcastBanishments = "yes"
killsToBan = 5

-- Battle
worldType = "pvp"
hotkeyAimbotEnabled = "yes"
protectionLevel = 1
killsToRedSkull = 3
pzLocked = 60000
deathLosePercent = 10
criticalHitChance = 7
removeAmmoWhenUsingDistanceWeapon = "yes"
removeChargesFromRunes = "yes"

-- Commands
displayGamemastersWithOnlineCommand = "no"

-- Connection Config
ip = "127.0.0.1" / This is the IP your server listens on.
port = 7171
loginTries = 500
retryTimeout = 30 * 1000
loginTimeout = 60 * 1000
maxPlayers = "1000"
motd = "Welcome to the Forgotten Server!"
onePlayerOnlinePerAccount = "yes"
allowClones = 0
serverName = "Forgotten"
loginMessage = "Welcome to the Forgotten Server!"
adminLogsEnabled = "no"
statusTimeout = 5 * 60 * 1000

PD: Do not COPY it to your Config.lua just edit it.
 
-- Connection Config
ip = "127.0.0.1" / This is the IP your server listens on.
port = 7171
loginTries = 500
retryTimeout = 30 * 1000
loginTimeout = 60 * 1000
maxPlayers = "1000"
motd = "Welcome to the Forgotten Server!"
onePlayerOnlinePerAccount = "yes"
allowClones = 0
serverName = "Forgotten"
loginMessage = "Welcome to the Forgotten Server!"
adminLogsEnabled = "no"
statusTimeout = 5 * 60 * 1000[/php]

PD: Do not COPY it to your Config.lua just edit it.[/QUOTE]
do i put this instead of mine ?





-- Connection config
worldId = 0
ip = "localhost"
bindOnlyGlobalAddress = false
loginPort = 98.200.131.1677171
gamePort = 7172
loginTries = 10
retryTimeout = 5 * 1000
loginTimeout = 60 * 1000
maxPlayers = 1000
motd = "Welcome to Morta!"
displayOnOrOffAtCharlist = true
onePlayerOnlinePerAccount = false
allowClones = false
serverName = "Morta.se"
loginMessage = "Welcome to Morta"
statusTimeout = 5 * 60 * 1000
replaceKickOnLogin = true
forceSlowConnectionsToDisconnect = false
loginOnlyWithLoginServer = false
premiumPlayerSkipWaitList = false
 
@cooldodo

No, do not put my config.lua.
You need to configure it by yourself.
Open Data/Config.lua
And config it by yourself.

ip = "127.0.0.1" / This is the IP your server listens on.
serverName = "Forgotten"
loginMessage = "Welcome to the Forgotten Server!"
motd = "Welcome to the Forgotten Server!"
serverName = "Forgotten"
loginPort = 7171 ( Do not change it )
 
@cooldodo

No, do not put my config.lua.
You need to configure it by yourself.
Open Data/Config.lua
And config it by yourself.

ip = "127.0.0.1" / This is the IP your server listens on.
serverName = "Forgotten"
loginMessage = "Welcome to the Forgotten Server!"
motd = "Welcome to the Forgotten Server!"
serverName = "Forgotten"
loginPort = 7171 ( Do not change it )
affffffff the character log in and log out again i didnt do anything in login.lua please help me

Code:
local config = {
    loginMessage = getConfigValue('loginMessage'),
    useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}

function onLogin(cid)
    if (getConfigValue("accountManager") == FALSE and getCreatureName(cid) == "Account Manager") then
        return false
    end

    local loss = getConfigValue('deathLostPercent')
    if(loss ~= nil) then
        doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
    end

    local accountManager = getPlayerAccountManager(cid)
    if(accountManager == MANAGER_NONE) then
        local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
        if(lastLogin > 0) then
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
            str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
        else
            str = str .. " Please choose your outfit."
            doPlayerSendOutfitWindow(cid)
        end

        doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
    elseif(accountManager == MANAGER_NAMELOCK) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
    elseif(accountManager == MANAGER_ACCOUNT) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
    end

    if(not isPlayerGhost(cid)) then
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
    end

    registerCreatureEvent(cid, "Mail")
    registerCreatureEvent(cid, "GuildMotd")
    registerCreatureEvent(cid,'SpellUp')


    registerCreatureEvent(cid, "Idle")
    if(config.useFragHandler) then
        registerCreatureEvent(cid, "SkullCheck")
    end

    registerCreatureEvent(cid, "ReportBug")
    registerCreatureEvent(cid, "AdvanceSave")
    return true
end

thats my login.luna
 
Last edited by a moderator:

Similar threads

Back
Top