Posta seu script por favor ? na pasta data/talkactions/serveinfo.lua
- Fórum
- OTServ
- Suporte
- Tópicos Sem Resposta
- [Encerrado] .!Serverinfo
[Encerrado] .!Serverinfo
Por VitiinhoPierini, 13 de mai. de 2013 em Tópicos Sem Resposta
info
Grupo: Visconde
Registrado: 07/02/12
Posts: 427
Reputação: +112

info
Grupo: Campones
Registrado: 13/05/13
Posts: 14
Reputação: +1

local config = {
rateExperience = getConfigInfo('rateExperience'),
rateSkill = getConfigInfo('rateSkill'),
rateLoot = getConfigInfo('rateLoot'),
rateMagic = getConfigInfo('rateMagic'),
rateSpawn = getConfigInfo('rateSpawn'),
protectionLevel = getConfigInfo('protectionLevel'),
stages = getBooleanFromString(getConfigInfo('experienceStages'))
}
function onSay(cid, words, param, channel)
local exp = config.rateExperience
if(config.stages) then
exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier)
end
doPlayerPopupFYI(cid, "Server Information:\n\nExperience rate: x" .. exp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel)
return true
end
info
Grupo: Visconde
Registrado: 07/02/12
Posts: 427
Reputação: +112

local config = {
rateExperience = getConfigInfo('rateExperience'),
rateSkill = getConfigInfo('rateSkill'),
rateLoot = getConfigInfo('rateLoot'),
rateMagic = getConfigInfo('rateMagic'),
rateSpawn = getConfigInfo('rateSpawn'),
protectionLevel = getConfigInfo('protectionLevel'),
stages = getBooleanFromString(getConfigInfo('experienceStages'))
}
function onSay(cid, words, param, channel)
local exp = config.rateExperience
if(config.stages) then
exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier)
doPlayerPopupFYI(cid, "Server Information:\n\nExperience rate: x" .. exp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel)
return true
end
Testa aê.
info
Grupo: Campones
Registrado: 13/05/13
Posts: 14
Reputação: +1

=/
NADA AINDA Troquei o Antigo Por Esse Que Me Mandou !
Aguardo.. outras respostas
info
Grupo: Visconde
Registrado: 07/02/12
Posts: 427
Reputação: +112

Deu algum erro no distro ? qual ?
function onSay(cid, words, param, channel)
local config = {
rateExperience = getConfigInfo('rateExperience'),
rateSkill = getConfigInfo('rateSkill'),
rateLoot = getConfigInfo('rateLoot'),
rateMagic = getConfigInfo('rateMagic'),
rateSpawn = getConfigInfo('rateSpawn'),
protectionLevel = getConfigInfo('protectionLevel'),
stages = getBooleanFromString(getConfigInfo('experienceStages'))
}
doPlayerPopupFYI(cid, config)
return true
end
Editado Maio 13 por KarlKalvin
info
Grupo: Campones
Registrado: 13/05/13
Posts: 14
Reputação: +1

nao, apenas o comando, nao funciona no server !
MENOS MAL !
info
Grupo: Visconde
Registrado: 07/02/12
Posts: 427
Reputação: +112

Teste o novo script que postei acima, e se der algum erro.. avise.
info
Grupo: Campones
Registrado: 13/05/13
Posts: 14
Reputação: +1

[13:23:28.508] [Warning - ProtocolGame::sendFYIBox] Trying to send an empty or too huge message.
esse é o erro
info
Grupo: Visconde
Registrado: 07/02/12
Posts: 427
Reputação: +112

function onSay(cid, words)
local msg = [[ IP: 127.0.0.1
RateLoot: 990x
RateExp: 100x
RateBless: 30x
]]
doPlayerPopupFYI(cid, msg)
return true
end
Use isso, configure manualmente... vou pedir a um amigo me ajudar com esse script do serveinfo.. ;/
Para editar basta editar os numeros ali acima, ou para add basta add nova tag..
Editado Maio 13 por KarlKalvin
info
Grupo: Campones
Registrado: 13/05/13
Posts: 14
Reputação: +1

http://pythera.com/index.php?subtopic=serverinfo
ai esta , de uma olhada !
OBRIGADO, NAO SOLUCIONOU MEU PROBLEMA +REP POR TENTAR AJUDA !function onSay(cid, words)
local msg = [[ IP: 127.0.0.1
RateLoot: 990x
RateExp: 100x
RateBless: 30x
]]
doPlayerPopupFYI(cid, msg)
return true
end
Use isso, configure manualmente... vou pedir a um amigo me ajudar com esse script do serveinfo.. ;/
Para editar basta editar os numeros ali acima, ou para add basta add nova tag..
info
Grupo: Visconde
Registrado: 07/02/12
Posts: 427
Reputação: +112

Cara para quebrar seu galho, usa isso...
function onSay(cid, words)
local msg = [[ Site: pythera.com
RateLoot: 6x
RateExp: 200x
RateBless: 80x
RateSpawm: 2x
Protection Level: 40
Premium: Free
UpTime: 24Horas
Bank System: Enable
Guild Halls: Disable
PZLock: 40 Seconds
]]
doPlayerPopupFYI(cid, msg)
return true
end
Vai fica os dados = ao Site.
info
Grupo: Conde
Registrado: 25/04/12
Posts: 752
Reputação: +125
Gênero: Masculino

Tenta usar assim
local config = {
rateExperience = getConfigInfo('rateExperience'),
rateSkill = getConfigInfo('rateSkill'),
rateLoot = getConfigInfo('rateLoot'),
rateMagic = getConfigInfo('rateMagic'),
rateSpawn = getConfigInfo('rateSpawn'),
protectionLevel = getConfigInfo('protectionLevel'),
stages = getBooleanFromString(getConfigInfo('experienceStages'))
}
function onSay(cid)
local exp = config.rateExperience
if(config.stages) then
exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier)
end
doPlayerPopupFYI(cid, "Server Information:\n\nExperience rate: x" .. exp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel)
return true
end
end
nao te garanto nada, to quase 1 ano sem mexe com script e.e
info
Grupo: Grão-Duque
Registrado: 28/07/11
Posts: 3.5k
Reputação: +570
Gênero: Masculino
Char no Tibia: Transloko

Tópico movido para a seção de dúvidas e pedidos resolvidos.
Tópico movido para a seção de dúvidas e pedidos resolvidos.
info
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: Masculino

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.





info
Grupo: Campones
Registrado: 13/05/13
Posts: 14
Reputação: +1
Estou Com Um Problema No Comando, !Serverinfo !
Ja Adicionei Talkactions e Serverinfo.lua ..
Só que Quando entro no Server e Executo o Comando , Ele vai no default e nada acontece !
e No Prompt da Erro data/talkactions/scripts/serverinfo.lua:15: in function <data/talkactions/scripts/serverinfo.lua:10>
Ajudem !
+REP