• 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!

Solved LOGIN problem

megazx

Graphic designer
Joined
Mar 4, 2013
Messages
444
Solutions
2
Reaction score
32
Location
Egypt
the site working and i can log in and see character list but cant log in the game

i opened ports
7171 TCP/UDP
7172 TCP/UDP
80 TCP/UDP

but doesnt log in

please help me

- - - Updated - - -

bumb
 
If you can access from outside your network but not within your network then it is a loopback issue with your router, very common issue now adays being that a lot of routers refuse loopback for security and the server actually asks for another connection request because of the login server, you should be able to connect from the host computer using 127.0.0.1, and I don't really know c++ but never really looked to see why the server allows 127.0.0.1 without loopback issues but not any other ip
 
iam using vps
and this server was online before and i didnt have that issue
and idid some thing wrong i sit up windows and i had to run and set up the wep and the mysql
 
Does it say disconnect when you try logging in or does it just keep running and running without logging in?

If it keeps saying connecting or whatever, then it is most likely a login script issue in creaturescripts
 
sorry i tried to log in with local host 127.0.0.1 on the vps the same problem its just dont want to open the character and no errors on console and i write the acc and pass it open the acc and select character but dont open after some time it

show error connection timed out 10060 u can see the wep Syphera SERVER

- - - Updated - - -

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



function onLogin(cid)
	
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, "Idle")
	
if(config.useFragHandler) then
		
registerCreatureEvent(cid, "SkullCheck")
	
end
	
registerCreatureEvent(cid, "inquisitionPortals")
	
registerCreatureEvent(cid, "ReportBug")
	
registerCreatureEvent(cid, "AdvanceSave")
	
registerCreatureEvent(cid, "ArenaKill")
	
registerCreatureEvent(cid, "reward")

registerCreatureEvent(cid, "LevelUp")
	
registerCreatureEvent(cid, "PythiusTheRotten")
registerCreatureEvent(cid, "Arena")
	   
if getPlayerStorageValue(cid, 42309) < 1 then
        
for i = 42300, 42309 do
            
setPlayerStorageValue(cid, i, 0)
        
end
    
end
    
if getPlayerStorageValue(cid, 42319) < 1 then
        
for i = 42310, 42319 do
            
setPlayerStorageValue(cid, i, 0)
        
end
    
end
    
if getPlayerStorageValue(cid, 42329) < 1 then
        
for i = 42320, 42329 do
            
setPlayerStorageValue(cid, i, 0)
        
end
    
end
    
if getPlayerStorageValue(cid, 42355) == -1 then
        
setPlayerStorageValue(cid, 42355, 0) 
end
    
setPlayerStorageValue(cid, 42350, 0) 
setPlayerStorageValue(cid, 42352, 0) 
return true

end


this is login.lue creature script

- - - Updated - - -

thanks for Help guys

SOLVED
 
yes it would be nice to know the solution, people spend time trying to help they want a solution here for future reference if this problem occurs with someone else, it is more than likely that it will.
 
I have this problem aswell it is sooooooooooooooo dammnnnnnn annoying!!!!!!!!!! My ports are all open 80,7171 and 7172 i just dont know what to do anymore.... It's only for other people though i can login myself...
 
Back
Top