VI
ajudem

[Encerrado] .!Serverinfo

Por VitiinhoPierini, 13 de mai. de 2013 em Tópicos Sem Resposta

resolvido
otserv
tibia
script
15
1.9k
13 de maio de 2013 às 20:33

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>

beurk.gif

 

Ajudem !

+REP

KarlKalvinK
13 de maio de 2013 às 20:37

Posta seu script por favor ? na pasta data/talkactions/serveinfo.lua

13 de maio de 2013 às 20:43

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

KarlKalvinK
13 de maio de 2013 às 20:58

 

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ê.

13 de maio de 2013 às 21:01

=/

NADA AINDA Troquei o Antigo Por Esse Que Me Mandou !

Aguardo.. outras respostas

KarlKalvinK
13 de maio de 2013 às 21:07

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

13 de maio de 2013 às 21:12

nao, apenas o comando, nao funciona no server !

MENOS MAL !

KarlKalvinK
13 de maio de 2013 às 21:14

Teste o novo script que postei acima, e se der algum erro.. avise.

13 de maio de 2013 às 21:24

[13:23:28.508] [Warning - ProtocolGame::sendFYIBox] Trying to send an empty or too huge message.

 

esse é o erro

KarlKalvinK
13 de maio de 2013 às 21:30

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

13 de maio de 2013 às 21:53

http://pythera.com/index.php?subtopic=serverinfo

 

ai esta , de uma olhada !

 

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..

OBRIGADO, NAO SOLUCIONOU MEU PROBLEMA +REP POR TENTAR AJUDA !
KarlKalvinK
13 de maio de 2013 às 22:35

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.

Session StartS
14 de maio de 2013 às 15:20

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

3 meses depois...
vital900V
04 de agosto de 2013 às 18:34

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.

4 anos depois...
StigalS
21 de abril de 2018 às 02:58
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ 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.