Utilize o screen, caso você não possua ele instalado utilize o comando:
sudo apt-get install screen
após a instalação siga os próximos passos abaixo. ;]
screen -A -S tfs --- cria a "janela" chamada tfs
apos criar a screen, navegue até o local do executável (cd /home/theforgottenserver/) e execute-o.
para minimizar a screen utilize Ctrl + A + D.
caso queira voltar pra janela do servidor
screen -r tfs
e caso queira fecha-la
screen -X -S tfs
espero ter ajudado
até!
O IP local do seu micro, é realmente 192.168.1.3?
O IP que é colocado no config.lua, você tem de pegar no site www.meuip.com.br.
Sobre as portas, estão corretamente liberadas.
até!
Tente usar o seguinte script.
function onLogin(cid)
if getPlayerStorageValue(cid, 8177) == -1 then
doPlayerSendTextMessage(cid,22, 'Voce foi promovido!')
setPlayerPromotionLevel(cid, 1)
setPlayerStorageValue(cid, 8177, 1)
end
end
O erro é simples, e está no seu script de anti-mc
function onKill(cid, target)
if isPlayer(cid) and isPlayer(target) then
if getPlayerIp(cid) == getPlayerIp(target) then
local pid, level = getPlayerGUID(cid), getPlayerLevel(cid)
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = ".. level - 1 .." WHERE `id` = ".. pid ..";")
end
end
return true
end
Você reduz o level diretamente no database, fazendo com que o HP/MP do personagem permaneçam o mesmo. Tente trocar pelo script abaixo.
Onde local experience, é o valor de experiencia que o player irá perder.
local experience = 10000
function onKill(cid, target)
if isPlayer(cid) and isPlayer(target) then
if getPlayerIp(cid) == getPlayerIp(target) then
local pid, level = getPlayerGUID(cid), getPlayerLevel(cid)
doPlayerAddExperience(cid, -experience)
end
end
return true
end
Obs: o script não foi testado.
Espero ter ajudado, até!
Qual anti-vírus você utiliza?
Existem alguns que tem firewall junto, e é necessário liberar lá também.
Caso não tenha firewall junto com seu anti-vírus, verifique novamente a liberação de portas. (modem, firewall do windows)
o IP dinâmico que seu micro possui, é o mesmo do qual foi liberada as portas no modem?
att. ;~
Certamente VanBuuren.
Aplicou as configurações no AP? tem certeza que desabilitou o DHCP?
Existem combos também (Modem+AP), talvez esteja confundindo as coisas.
Faça mais uma checagem, relacionado a portas liberadas e IP do seu micro, e se possível informe qual a marca, e/ou modelo do seu AP.
booonis, pelo fáto de ser internet compartilhada não influencia em nada, sabendo liberar as portas para o IP do micro.
E sobre entrar no modem, o usuário já havia comentado que não tem acesso.
att. ;~
Tente trocar o shop.lua existente na pasta globalevents, por esse aqui.
-- ### CONFIG ###
-- message send to player by script "type" (types you can check in "global.lua")
SHOP_MSG_TYPE = 19
-- time (in seconds) between connections to SQL database by shop script
SQL_interval = 30
-- ### END OF CONFIG ###
function onThink(interval, lastExecution)
local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';")
if(result_plr:getID() ~= -1) then
while(true) do
id = tonumber(result_plr:getDataInt("id"))
action = tostring(result_plr:getDataString("action"))
delete = tonumber(result_plr:getDataInt("delete_it"))
cid = getCreatureByName(tostring(result_plr:getDataString("name")))
if isPlayer(cid) == TRUE then
local itemtogive_id = tonumber(result_plr:getDataInt("param1"))
local itemtogive_count = tonumber(result_plr:getDataInt("param2"))
local container_id = tonumber(result_plr:getDataInt("param3"))
local container_count = tonumber(result_plr:getDataInt("param4"))
local add_item_type = tostring(result_plr:getDataString("param5"))
local add_item_name = tostring(result_plr:getDataString("param6"))
local received_item = 0
local full_weight = 0
if add_item_type == 'container' then
full_weight = getItemWeightById(itemtogive_id, 1)
end
local free_cap = getPlayerFreeCap(cid)
if full_weight <= free_cap then
if add_item_type == 'container' then
local new_container = doCreateItemEx(container_id, 1)
local iter = 0
while iter ~= container_count do
doAddContainerItem(new_container, itemtogive_id, itemtogive_count)
iter = iter + 1
end
received_item = doPlayerAddItemEx(cid, new_container)
else
local new_item = doCreateItemEx(itemtogive_id, itemtogive_count)
received_item = doPlayerAddItemEx(cid, new_item)
end
if received_item == RETURNVALUE_NOERROR then
doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.')
db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";")
db.executeQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";")
doPlayerSave(cid)
end
end
end
if not(result_plr:next()) then
break
end
end
result_plr:free()
end
return TRUE
end
O próprio script já deleta oque fica em z_ots_comunication. Nessa linha aqui:
db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";")
Espero ter ajudado.
Provavelmente o DHCP do AP (acess point) está ativado por isso ao invez de entrar no moden, entra só no AP. O correto seria desabilitar o DHCP do AP, fazendo assim você acessar seu moden e liberar as portas.
@hicke,
tente procurar a sua dúvida no forum antes de postar.
Existem tópicos que respondem a sua dúvida, e oque você realmente precisa pra eliminar esse problema é bloquear o MC.
Dá uma olhada aqui.
http://www.xtibia.com/forum/topic/127384-pedido-antimc/
até, (: