No primeiro faltou declarar as variáveis msg1, msg3 e status, mas na verdade nem precisa do resto se só for pra pisar encima e aparecer a mensagem "Que Frio!":
----- Script by LucasAtak ---- function onStepIn(cid, item, position, fromPosition) doSendAnimatedText(getPlayerPosition(cid), "Que Frio!", TEXTCOLOR_LIGHTBLUE) end
Sobre o segundo, eu não tenho idéia do que está errado, mas tente esse:
local config = {
exhaustionInSeconds = 30,
storage = 34534
}
function onSay(cid, words, param)
if(exhaustion.check(cid, config.storage) == TRUE) then
doPlayerSendCancel(cid, "Você pode alterar o outfits apenas 1 vez por" .. config.exhaustionInSeconds .. " seconds.")
return TRUE
end
local playerGuild = getPlayerGuildId(cid)
if(playerGuild == FALSE) then
doPlayerSendCancel(cid, "Desculpe, você não está em uma guild.")
return TRUE
end
local playerGuildLevel = getPlayerGuildLevel(cid)
if(playerGuildLevel < GUILDLEVEL_LEADER) then
doPlayerSendCancel(cid, "Você tem que ser líder de sua guilda para mudar os outfits!")
return TRUE
end
local players = getPlayersOnline()
local outfit1 = getCreatureOutfit(cid)
local message = "*Guild* Seu outfit foi alterado pelo líder. (" .. getCreatureName(cid) .. ")"
local members = 0
local tmp = outfit1
for i, tid in ipairs(players) do
if(getPlayerGuildId(tid) == playerGuild and cid ~= tid) then
if(canPlayerWearOutfit(tid, outfit1.lookType, outfit1.lookAddons) ~= TRUE) then
local tidOutfit = getCreatureOutfit(tid)
tmp.lookType = tidOutfit.lookType
tmp.lookAddons = tidOutfit.lookAddons
end
doSendMagicEffect(getCreaturePosition(tid), 66)
doCreatureChangeOutfit(tid, tmp)
doPlayerSendTextMessage(tid, MESSAGE_INFO_DESCR, message)
members += 1
end
end
exhaustion.set(cid, config.storage, config.exhaustionInSeconds)
doPlayerSendCancel(cid, "Guild members outfit has been changed. (Total: " .. members .. ")")
return TRUE
end







info
Grupo: Campones
Registrado: 23/10/09
Posts: 29
Reputação: -1
GALERA NAO SEI SE AQUI E O LUGAR SERTO SE NAO FOR ME AVISEM :XTibia_smile:
gente tenhu 2 scripts aki no meu serv q n fumfa eles tem aqui no topico mas n funciona meu ot e 8.52 nao sei se v6 podem me ajudar vo porstar eles aki
E UM GELO Q O PLAYER PASSA POR CIMA ELE DIS QUE FRIO!!!
<movevent event="StepIn" actionid="4322" script="quefrio.lua"/> [/code]
O OUTRO E ESSE TEM AQUI NO XTIBIA MAS E PRA ELE TROCAR O OUTFIT E A COR QUANDO O LIDER DISSER !go
SO QUE ELE SO TA TROCANDO A COR SE V6 PODEM ME AJUDA EU AGRADEÇO =D
local config = { exhaustionInSeconds = 30, storage = 34534 } function onSay(cid, words, param) if(exhaustion.check(cid, config.storage) == TRUE) then doPlayerSendCancel(cid, "Você pode alterar o outfits apenas 1 vez por" .. config.exhaustionInSeconds .. " seconds.") return TRUE end local playerGuild = getPlayerGuildId(cid) if(playerGuild == FALSE) then doPlayerSendCancel(cid, "Desculpe, você não está em uma guild.") return TRUE end local playerGuildLevel = getPlayerGuildLevel(cid) if(playerGuildLevel < GUILDLEVEL_LEADER) then doPlayerSendCancel(cid, "Você tem que ser líder de sua guilda para mudar os outfits!") return TRUE end local players = getPlayersOnline() local outfit = getCreatureOutfit(cid) local message = "*Guild* Seu outfit foi alterado pelo líder. (" .. getCreatureName(cid) .. ")" local members = 0 local tmp = {} for i, tid in ipairs(players) do if(getPlayerGuildId(tid) == playerGuild and cid ~= tid) then tmp = outfit if(canPlayerWearOutfit(tid, outfit.lookType, outfit.lookAddons) ~= TRUE) then local tidOutfit = getCreatureOutfit(tid) tmp.lookType = tidOutfit.lookType tmp.lookAddons = tidOutfit.lookAddons end doSendMagicEffect(getCreaturePosition(tid), 66) doCreatureChangeOutfit(tid, tmp) doPlayerSendTextMessage(tid, MESSAGE_INFO_DESCR, message) members = members + 1 end end exhaustion.set(cid, config.storage, config.exhaustionInSeconds) doPlayerSendCancel(cid, "Guild members outfit has been changed. (Total: " .. members .. ")") return TRUE end<talkaction words="!go" event="script" value="guildoutfit.lua"/>
AGRADEÇO A ADJUDA SE V6 PUDEREM
Editado Novembro 10 por Meuoserv