-
Erro ao compilar no UBUNTO otservbr-global 12.60
.Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? problemas ao tenta compilar otservbr-global 12.60 Linux Ubunto 18.04 Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
(Resolvido)"Ajuda +REP" Load Monster erro
Obrg
-
-
Site só fica On pra mim, o que fazer?
Olha acesso local utilize 127.0.0.1 ou localhost em seu navegador. problema é só no site ou ninguém consegui acessa o server também.
-
(Resolvido)"Ajuda +REP" Load Monster erro
Pessoal estou com erro ao inicia o servidor ele não carrega esses monsters, isso quando compilado em linux quando compilado em windows esses mostros inicia normalmente. distrito 0.4, 3777 , 8.6 [20:16:54.145] [Warning - Monsters::loadMonster] Cannot load monster (Draken Abomination) file (data/monster/8.6/Draken Abomination.xml). [20:16:54.145] Info: failed to load external entity "data/monster/8.6/Draken Abomination.xml" I/O warning : failed to load external entity "data/monster/8.6/Draken Elite.xml" [20:16:54.146] [Warning - Monsters::loadMonster] Cannot load monster (Draken Elite) file (data/monster/8.6/Draken Elite.xml). [20:16:54.146] Info: failed to load external entity "data/monster/8.6/Draken Elite.xml"
-
-
(Resolvido)Script staminia Regeneração
JÁ TESTEI OS 2 SCRIPTS AQUI NÃO FUNCIONO
-
(Resolvido)Script staminia Regeneração
Pessoal alguém me consegui um script para regenerar staminia quando o player estiver nos treines 8.6 The Forgotten Server 0.4
-
Compra vip em GAME
tentei amigo mas não funciono não deu nem deu para da user no item
-
Compra vip em GAME
Mano o user item funciono mas não foi adicionada vip Lembrando esse sistema deixa a informação de vip na coluna de accounts não s via storange
-
Compra vip em GAME
Desculpa não entendi o script, feito para comprar via comando ou user item
-
Compra vip em GAME
vip = { name = "Vip system"; author = "Mock"; version = "1.0.0.0"; query="ALTER TABLE `accounts` ADD `vip_time` INTEGER"; query2="ALTER TABLE `accounts` ADD `vip_time` INT(15) NOT NULL" } function vip.setTable() dofile('config.lua') if sqlType == "sqlite" then db.executeQuery(vip.query) else db.executeQuery(vip.query2) end end function vip.getVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; ae = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..getPlayerAccount(cid).."';") if ae:getID() == -1 then return 0 end local retee = ae:getDataInt("vip_time") or 0 ae:free() return retee end function vip.getVipByAcc(acc) assert(acc,'Account is nil') local a = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';") if a:getID() ~= -1 then return a:getDataInt("vip_time") or 0, a:free() else error('Account don\'t find.') end end function vip.setVip(cid,time) dofile("config.lua") assert(tonumber(cid),'Parameter must be a number') assert(tonumber(time),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; db.executeQuery("UPDATE `"..sqlDatabase.."`.`accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='".. getPlayerAccount(cid).."';") end function vip.getVipByAccount(acc) assert(acc,'Account is nil') return db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';"):getDataInt("vip_time") or 0 end function vip.hasVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) or 0 if os.time(day) < t then return TRUE else return FALSE end end function vip.hasVips(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) if os.time(day) < t then return TRUE else return FALSE end end function vip.accountHasVip(acc) assert(acc,'Account is nil') if os.time() < vip.getVipByAccount(acc) then return TRUE else return FALSE end end function vip.getDays(days) return (3600 * 24 * days) end function vip.addVipByAccount(acc,time) assert(acc,'Account is nil') assert(tonumber(time),'Parameter must be a number') local a = vip.getVipByAcc(acc) a = os.difftime(a,os.time()) if a < 0 then a = 0 end; a = a+time return vip.setVipByAccount(acc,a) end function vip.setVipByAccount(acc,time) dofile("config.lua") assert(acc,'Account is nil') assert(tonumber(time),'Parameter must be a number') db.executeQuery("UPDATE `accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='"..acc.."';") return TRUE end function vip.returnVipString(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == TRUE then return os.date("%d %B %Y %X ", vip.getVip(cid)) end end
-
Compra vip em GAME
Pessoal então estou fazendo um servidor bem balanceado para players pagantes e não pagantes. o sistema de vip do meu projeto é comprado via gesior, gostaria que tive-se a opção em game também com user em um item seria ótimo. alguém pode me da uma mão de como fazer isso, esse é meu sistema de vip atual. vip = { name = "Vip system"; author = "Mock"; version = "1.0.0.0"; query="ALTER TABLE `accounts` ADD `vip_time` INTEGER"; query2="ALTER TABLE `accounts` ADD `vip_time` INT(15) NOT NULL" } function vip.setTable() dofile('config.lua') if sqlType == "sqlite" then db.executeQuery(vip.query) else db.executeQuery(vip.query2) end end function vip.getVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; ae = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..getPlayerAccount(cid).."';") if ae:getID() == -1 then return 0 end local retee = ae:getDataInt("vip_time") or 0 ae:free() return retee end function vip.getVipByAcc(acc) assert(acc,'Account is nil') local a = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';") if a:getID() ~= -1 then return a:getDataInt("vip_time") or 0, a:free() else error('Account don\'t find.') end end function vip.setVip(cid,time) dofile("config.lua") assert(tonumber(cid),'Parameter must be a number') assert(tonumber(time),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; db.executeQuery("UPDATE `"..sqlDatabase.."`.`accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='".. getPlayerAccount(cid).."';") end function vip.getVipByAccount(acc) assert(acc,'Account is nil') return db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';"):getDataInt("vip_time") or 0 end function vip.hasVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) or 0 if os.time(day) < t then return TRUE else return FALSE end end function vip.hasVips(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) if os.time(day) < t then return TRUE else return FALSE end end function vip.accountHasVip(acc) assert(acc,'Account is nil') if os.time() < vip.getVipByAccount(acc) then return TRUE else return FALSE end end function vip.getDays(days) return (3600 * 24 * days) end function vip.addVipByAccount(acc,time) assert(acc,'Account is nil') assert(tonumber(time),'Parameter must be a number') local a = vip.getVipByAcc(acc) a = os.difftime(a,os.time()) if a < 0 then a = 0 end; a = a+time return vip.setVipByAccount(acc,a) end function vip.setVipByAccount(acc,time) dofile("config.lua") assert(acc,'Account is nil') assert(tonumber(time),'Parameter must be a number') db.executeQuery("UPDATE `accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='"..acc.."';") return TRUE end function vip.returnVipString(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == TRUE then return os.date("%d %B %Y %X ", vip.getVip(cid)) end end
-
COMPRAR PONTOS DENTRO DO JOGO
Olá pessoal gostaria de saber ser e possível criar um script para compra de pontos no site. exemplo 1kk por 1 ponto no site
-
RME não salva Resp
Olá Pessoal estou com seguinte problema, meu quando abro meu map no rme e adiciono um respaw no mapa ele não aparece quando ligo o servidor, notei que eles fera a xml de spawn mas não atualiza ela com os novos montros, tentei cria outro mapa para testa e quando gerou a xml ele inseri-o os resp. então o problema é o seguinte quando vou editar o mapa original ele não salva.
-
Porta VIP
Não funciono parou o script
-
Porta VIP
Pessoal estou com problema com um script de uma porta vip, então ele estar funcionando mas o problema é que ele estar teleportando para dentro da porta não para depois dela ai fica uma impressão de bugado alguém pode me ajuda script local stor = 13540 -- storage function onUse(cid, item, fromPos, item2, toPos) if not hasVip(cid) then doTeleportThing(cid, fromPos) doSendMagicEffect(fromPos, CONST_ME_POFF) doPlayerSendCancel(cid, "You need vip account to pass.") end doSendMagicEffect(fromPos, CONST_ME_MAGIC_BLUE) return true end