and then what do i do ?Sure. Here you are.
in Data/Config.lua
OTservlist: |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
Click here> OTServlist (Register)
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@cooldodo
1st Step. (Register)
<Done>
2nd Step. (Login)
OTServlist LOGIN
3rd Step:
+ [Add Server]
Good luck with your server.
i undertand second and third step but first step i dont understand what should i do with config.lua ?@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).
-- 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
affffffff the character log in and log out again i didnt do anything in login.lua please help me@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 )
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