Bem antigo isso, mas deve ser útil.
Abraços.
By MatheusGlad, 08 de jun. de 2010 in Actions e Talkactions
info
Group: Herói
Joined: 17/02/08
Posts: 2.5k
Reputation: +193

Bem antigo isso, mas deve ser útil.
Abraços.
info
Group: Herói
Joined: 25/06/08
Posts: 723
Reputation: +275
Gender: Masculino
Tibia Character: Diiva

Script simples porem bastante procurado/utilizado...
REP+ abraços! =)
Edited Junho 8 by DoidinMapper
info
Group: Artesão
Joined: 13/05/10
Posts: 114
Reputation: +11

Ótimo,
meu amigo estava precisando. Vou mandar para ele.
+REP
Edited Junho 14 by MasterMathw
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

cara essa sua script tem um erro quando o player é vip é mandando a mensagem normal... ai se caso o player perde a vip ou acabar a vip ele ainda pode mandar mensagem...
soh troca a linha:
if configs.sovip == "sim" and getPlayerStorageValue(cid, tonumber(configs.storage)) <= 0 then
por essa:
if configs.sovip == "sim" and getPlayerStorageValue(cid, tonumber(configs.storage)) - os.time() <= 0 then
abraços
info
Group: Campones
Joined: 05/04/11
Posts: 34
Reputation: +6

estava atrás desse broadcast para vips obrigado
info
Group: Campones
Joined: 17/03/11
Posts: 35
Reputation: +22

Tem como se por pra premium usar so??
Se der do REP+
![]()
cara aonde q eu mudo, os cara fala aparece em verde queria q aparecesse em branco tem como?
info
Group: Campones
Joined: 12/05/08
Posts: 39
Reputation: +5
Tibia Character: Wakko Araujo

bom desculpa reviver o tópico porém preciso desse script pra PREMIUM não sei se alguém vai me ajudar mais queria saber o que mudar pra por pre apenas premium usar esse comando
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

@UP
------ Script By MatheusMkalo for Xtibia.com Users -------
local configs = {
cobrar = "sim", ------ Use sim ou nao para cobrar.
sopremium = "nao", ------ Se somente vip players poderam usar o comando
price = 1000, ------ Preço a pagar se o cobrar estiver ativado.
storage = 80123 ------ Storage Id da sua vip account caso for usar somente vips
}
function onSay(cid, words, param)
local nada = {" "}
if table.isStrIn(param, nada) or param == "" then
doPlayerSendCancel(cid,"Voce precisa falar alguma coisa.")
return TRUE
end
if configs.sopremium == "sim" and not isPremium(cid) then
doPlayerSendCancel(cid,"Você não é premium.")
return TRUE
end
if configs.cobrar == "sim" and not doPlayerRemoveMoney(cid,tonumber(configs.price)) then
doPlayerSendCancel(cid,"Você não tem dinheiro suficiente.")
return TRUE
end
doBroadcastMessage(""..getCreatureName(cid).." ["..getPlayerLevel(cid).."]: " .. param .. "", MESSAGE_INFO_DESCR)
return TRUE
end
info
Group: Campones
Joined: 12/05/08
Posts: 39
Reputation: +5
Tibia Character: Wakko Araujo

vlw vodkart rep+ concerteza amanha pq ja acabou meus rep de hj
if configs.sopremium == "sim" and not isPremium(cid) then
eu tava quase chegando la olha como coloquei
if configs.prem == "sim" and isPremium(cid) - os.time()
mudei ali nas configs aonde eh sovip mudei pra prem apenas
info
Group: Barão
Joined: 24/02/10
Posts: 204
Reputation: +14
Tibia Character: Krewcz

Só estudar mais que consegue
tem com por exasted na mensagem para evitar spam?
------ Script By MatheusMkalo for Xtibia.com Users -------local configs = {
cobrar = "sim", ------ Use sim ou nao para cobrar.
sovip = "nao", ------ Se somente vip players poderam usar o comando
price = 1000, ------ Preço a pagar se o cobrar estiver ativado.
time = 100, ------ Tempo do exhaust.
storagetime = 80124, ------ nao mecha.
storage = 80123 ------ Storage Id da sua vip account caso for usar somente vips
}
function onSay(cid, words, param)
local nada = {" "}
if table.isStrIn(param, nada) or param == "" then
doPlayerSendCancel(cid,"Voce precisa falar alguma coisa.")
return TRUE
end
if exhaustion.check(cid, storagetime) == false then
exhaustion.set(cid, storagetime, time)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You are exhausted for: " ..exhaustion.get(cid, storagetime).." seconds.")
end
if configs.sovip == "sim" and getPlayerStorageValue(cid, tonumber(configs.storage)) - os.time() <= 0 then
doPlayerSendCancel(cid,"Você não é vip.")
return TRUE
end
if configs.cobrar == "sim" and not doPlayerRemoveMoney(cid,tonumber(configs.price)) then
doPlayerSendCancel(cid,"Você não tem dinheiro suficiente.")
return TRUE
end
doBroadcastMessage(""..getCreatureName(cid).." ["..getPlayerLevel(cid).."]: " .. param .. "", MESSAGE_INFO_DESCR)
return TRUE
end
ou
------ Script By MatheusMkalo for Xtibia.com Users -------local configs = {
cobrar = "sim", ------ Use sim ou nao para cobrar.
sovip = "nao", ------ Se somente vip players poderam usar o comando
price = 1000, ------ Preço a pagar se o cobrar estiver ativado.
time = 100, ------ Tempo do exhaust.
storagetime = 80124, ------ nao mecha.
storage = 80123 ------ Storage Id da sua vip account caso for usar somente vips
}
function onSay(cid, words, param)
local nada = {" "}
if table.isStrIn(param, nada) or param == "" then
doPlayerSendCancel(cid,"Voce precisa falar alguma coisa.")
return TRUE
end
if exhaustion.check(cid, storagetime) == false then
exhaustion.set(cid, storagetime, time)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You are exhausted for: " ..exhaustion.get(cid, storagetime).." seconds.")
return TRUE
end
if configs.sovip == "sim" and getPlayerStorageValue(cid, tonumber(configs.storage)) - os.time() <= 0 then
doPlayerSendCancel(cid,"Você não é vip.")
return TRUE
end
if configs.cobrar == "sim" and not doPlayerRemoveMoney(cid,tonumber(configs.price)) then
doPlayerSendCancel(cid,"Você não tem dinheiro suficiente.")
return TRUE
end
doBroadcastMessage(""..getCreatureName(cid).." ["..getPlayerLevel(cid).."]: " .. param .. "", MESSAGE_INFO_DESCR)
return TRUE
end
ou
------ Script By MatheusMkalo for Xtibia.com Users -------local configs = {
cobrar = "sim", ------ Use sim ou nao para cobrar.
sovip = "nao", ------ Se somente vip players poderam usar o comando
price = 1000, ------ Preço a pagar se o cobrar estiver ativado.
time = 100, ------ Tempo do exhaust.
storagetime = 80124, ------ Nao mecha.
storage = 80123 ------ Storage Id da sua vip account caso for usar somente vips
}
function onSay(cid, words, param)
local nada = {" "}
if table.isStrIn(param, nada) or param == "" then
doPlayerSendCancel(cid,"Voce precisa falar alguma coisa.")
return TRUE
end
if exhaustion.check(cid, storagetime) == false then
exhaustion.set(cid, storagetime, time)
doPlayerSendCancel(cid,"You are exhausted for: " ..exhaustion.get(cid, storagetime).." seconds.")
return TRUE
end
if configs.sovip == "sim" and getPlayerStorageValue(cid, tonumber(configs.storage)) - os.time() <= 0 then
doPlayerSendCancel(cid,"Você não é vip.")
return TRUE
end
if configs.cobrar == "sim" and not doPlayerRemoveMoney(cid,tonumber(configs.price)) then
doPlayerSendCancel(cid,"Você não tem dinheiro suficiente.")
return TRUE
end
doBroadcastMessage(""..getCreatureName(cid).." ["..getPlayerLevel(cid).."]: " .. param .. "", MESSAGE_INFO_DESCR)
return TRUE
end
testa as 3 ai
Edited Março 14 by Zmovir
[Error - TalkActions interfaxe
data/talkactions/scripts/talkbroad.lua:Say
Description:
data/lib/034-exhaustion.lua:28 attempt to perform arithmetic on local 'time' (a nil value)
stack traceback
data/lib/034-exastion.lua:28: in function 'set'
data/talkactions/scripts/talkbroad.lua:19:in function<data talkactions/scripts/talkbroad.lua:10>
aparece esse mesmo erro nos 3 scripts uso tfs 0.4 o0''
info
Group: Conde
Joined: 09/09/09
Posts: 528
Reputation: +424
Tibia Character: Emekalo Makalo
Bem gente como o script é auto explicativo entao nao vou explicar muito não...
Script:
Va em talkactions/scripts crie um arquivo.lua com o nome de talkbroad e bote este script dentro:
------ Script By MatheusMkalo for Xtibia.com Users ------- local configs = { cobrar = "sim", ------ Use sim ou nao para cobrar. sovip = "nao", ------ Se somente vip players poderam usar o comando price = 1000, ------ Preço a pagar se o cobrar estiver ativado. storage = 80123 ------ Storage Id da sua vip account caso for usar somente vips } function onSay(cid, words, param) local nada = {" "} if table.isStrIn(param, nada) or param == "" then doPlayerSendCancel(cid,"Voce precisa falar alguma coisa.") return TRUE end if configs.sovip == "sim" and getPlayerStorageValue(cid, tonumber(configs.storage)) - os.time() <= 0 then doPlayerSendCancel(cid,"Você não é vip.") return TRUE end if configs.cobrar == "sim" and not doPlayerRemoveMoney(cid,tonumber(configs.price)) then doPlayerSendCancel(cid,"Você não tem dinheiro suficiente.") return TRUE end doBroadcastMessage(""..getCreatureName(cid).." ["..getPlayerLevel(cid).."]: " .. param .. "", MESSAGE_INFO_DESCR) return TRUE endAgora va em talkactions.xml e bote esta tag:
Exclusividade Xtibia. A postagem em qualquer outro local é considerada RIP.
Edited Junho 11 by Lordfire