[Encerrado] .!Serverinfo

VitiinhoPierini

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/05/13Posts: 14

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

KarlKalvin

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 07/02/12Posts: 427

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

- removed '-'

 

www.facebook.com/pokemonsxr

 

pokemonsxr.ddns.net

VitiinhoPierini

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/05/13Posts: 14

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

KarlKalvin

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 07/02/12Posts: 427

 

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

- removed '-'

 

www.facebook.com/pokemonsxr

 

pokemonsxr.ddns.net

VitiinhoPierini

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/05/13Posts: 14

=/

NADA AINDA Troquei o Antigo Por Esse Que Me Mandou !

Aguardo.. outras respostas

KarlKalvin

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 07/02/12Posts: 427

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

- removed '-'

 

www.facebook.com/pokemonsxr

 

pokemonsxr.ddns.net

VitiinhoPierini

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/05/13Posts: 14

nao, apenas o comando, nao funciona no server !

MENOS MAL !

KarlKalvin

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 07/02/12Posts: 427

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

- removed '-'

 

www.facebook.com/pokemonsxr

 

pokemonsxr.ddns.net

VitiinhoPierini

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/05/13Posts: 14

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

 

esse é o erro

KarlKalvin

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 07/02/12Posts: 427

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

- removed '-'

 

www.facebook.com/pokemonsxr

 

pokemonsxr.ddns.net

VitiinhoPierini

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/05/13Posts: 14

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 !

KarlKalvin

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 07/02/12Posts: 427

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.

- removed '-'

 

www.facebook.com/pokemonsxr

 

pokemonsxr.ddns.net

Session Start

cleber.16mb.com
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 25/04/12Posts: 752Gê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

vital900

Xtibia, agente se vê por aqui!
avatar
Grão-Duque
Grão-Duque

INFOS

Grupo: Grão-DuqueRegistrado: 28/07/11Posts: 3455Gênero: MasculinoChar 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.


 

CoroNelas.png

Stigal

don't ever stop...
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 28/11/10Posts: 3402Gênero: Masculino
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.

VI6MDIG.png

 

"O fracasso é a oportunidade de se começar de novo inteligentemente"

Minhas Redes Sociais: Youtube | Página & Grupo | Steam  | Discord Xtibia | Skype: @mrooger

 

OTpanel