Server Online a gdy loguje Offline

Shito

Advanced User
Zarejestrowany
Dołączył
Marzec 25, 2010
Posty
158
Liczba reakcji
13
Witam mam taki problem, gdy w??czam server wszystko ?adnie si? ?aduje i pisze ?e OTS ONLINE. A gdy chc? zalogowa? wyskakuje mi ?e jest Offline :

Panowie prosz? o pomoc. Aha u?ywam Silnika TFS 0.3.6.
 
Odp: Server Online a gdy loguje Offline

Mo?liwo?ci jest kilka albo ?le wpisa?e? ip lub wcale mo?esz mie? co? zepsute z login.lua lub w ip changerze nie przestawi?e? wersji tibi i ip na jakie masz logowa?.
 
Odp: Server Online a gdy loguje Offline

@UP

Dzi?ki ?e poda?e? tyle przyczyn, ale Ip sprawdza?em kilkakrotnie w Ip changerze/ip config oraz sprawdza?em jak si? loguje. A co je?li mam co? nie tak z tym login.lua.??

//pr?bowa?em zalogowa? si? na r??nych silnikach i mam to samo ;/
 
Odp: Server Online a gdy loguje Offline

wklej do login.lua skrypt odemnie:

function onLogin(cid)
registerCreatureEvent(cid, "PlayerKill")
if (InitArenaScript ~= 0) then
InitArenaScript = 1
-- make arena rooms free
for i = 42300, 42309 do
setGlobalStorageValue(i, 0)
setGlobalStorageValue(i+100, 0)
end
end
-- if he did not make full arena 1 he must start from zero
if getPlayerStorageValue(cid, 42309) < 1 then
for i = 42300, 42309 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 2 he must start from zero
if getPlayerStorageValue(cid, 42319) < 1 then
for i = 42310, 42319 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 3 he must start from zero
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) -- did not arena level
end
setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end

function onLogin(cid)
if(InitHistory == 0) then
local historyPage = addEvent(historyPage, 60000, {})
InitHistory = historyPage
end
registerCreatureEvent(cid, "PlayerDeath")
return TRUE
end


function historyPage(parameters)
local historyPage = addEvent(historyPage, 60000, {})
if (tonumber(os.date("%d")) ~= getGlobalStorageValue(23456)) then
setGlobalStorageValue(23456, (tonumber(os.date("%d"))))
db.executeQuery("UPDATE `players` SET `onlinetime7`=players.onlinetime6, `onlinetime6`=players.onlinetime5, `onlinetime5`=players.onlinetime4, `onlinetime4`=players.onlinetime3, `onlinetime3`=players.onlinetime2, `onlinetime2`=players.onlinetime1, `onlinetime1`=players.onlinetimetoday, `onlinetimetoday`=0;")
db.executeQuery("UPDATE `players` SET `exphist7`=players.exphist6, `exphist6`=players.exphist5, `exphist5`=players.exphist4, `exphist4`=players.exphist3, `exphist3`=players.exphist2, `exphist2`=players.exphist1, `exphist1`=players.experience-players.exphist_lastexp, `exphist_lastexp`=players.experience;")
end
db.executeQuery("UPDATE `players` SET `onlinetimetoday`=players.onlinetimetoday+60, `onlinetimeall`=players.onlinetimeall+60 WHERE `online` = 1;")
end


local auction = db.getResult("SELECT `auction_balance` FROM `players` WHERE `id` = " .. getPlayerGUID(cid) .. ";")
if(auction:getDataInt("auction_balance") > 0) then
doPlayerAddMoney(cid, auction:getDataInt("auction_balance"))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You sold item on auction, you get " .. auction:getDataInt("auction_balance") .. " gps.")
db.executeQuery("UPDATE `players` SET `auction_balance` = 0 WHERE `id` = " .. getPlayerGUID(cid) .. ";")
auction:free()
end




registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "PlayerDeath")
registerCreatureEvent(cid, "WarAttack")
registerCreatureEvent(cid, "WarKill")
registerCreatureEvent(cid, "PlayerKill")
registerCreatureEvent(cid, "Inquisition")
registerCreatureEvent(cid, "Pythiusquest")

return TRUE



end
 
Odp: Server Online a gdy loguje Offline

Jak logujesz sie na ots , a masz go na kompie loguj sie przez IP: 127.0.0.1
 
Odp: Server Online a gdy loguje Offline

@lojej66

Wklei?em tw?j skrypt, niby jest ju? lepiej bo wida? list? postacie, ale gdy klikam na posta? (w moim przypadku account manager) to ca?y czas si? ?aduje....


@Pause
Robi?em tak , pojawia si? lista postaci a nast?pnie ci?gle si? ?aduje...
 
Odp: Server Online a gdy loguje Offline

A w confing.lua ots przestawia?e? co? mo?e z portami i innym zwi?zanymi z logowaniem rzeczami.? I mam nadzieje ?e je?li masz no-ip to nie wpisa?e? go confing tylko zwyk?e ip typu : 192.53.12
 
Odp: Server Online a gdy loguje Offline

@up
nie, wpisa?em Ip cyfrowe kt?re m?j komputer w tej chwili posiada. Mam internet Z Neostrady ,a z nim modem i zmienne ip. W Cobfigu nie zmienia?am port?w, zmienia?am linijk? na mysql .

Na dow?d ss cz??ci configu.

 
Ostatnia edycja:
Odp: Server Online a gdy loguje Offline

a Pr?bowales w gameport wpisac 7171... moze to jest ta przyczyna bo jak widze to wszystkie inne porty sa 7171...
 
Back
Do góry