se liga você postou na area errada você deveria ter criado este tópico em "duvidas de scripting".
abraços.
info
Grupo: Infante
Registrado: 27/07/09
Posts: 1.5k
Reputação: +405
Char no Tibia: Gean Riot

se liga você postou na area errada você deveria ter criado este tópico em "duvidas de scripting".
abraços.
opa vlw pelo aviso... acho que ja moveram o topico ja,agr se alguem puder me ajudar... obg =)
alguem? porfavor
info
Grupo: Herói
Registrado: 23/12/08
Posts: 2.4k
Reputação: +359
Gênero: Masculino
Char no Tibia: Gordo Warlike

eu tenhu o msmso problema e desisti na real! kkk alguem se habilita? Sky D. kde vc?
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

storage = 1338 function onSay(cid, words, param) if words == "/muted" then if param == '' then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "digite o nome do jogador.") return TRUE end local player = getPlayerByName(param) local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end if getPlayerStorageValue(player, storage) <= 0 then doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR,"Voce recebeu muted por realizar muito Spam") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "você mutou o jogador "..param) domutedThing(player) setPlayerStorageValue(player, storage, 1) else doPlayerSendTextMessage(cid,22,"este jogador já está mutado") end elseif words == "/desmuted" then if param == '' then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "digite o nome do jogador.") return TRUE end local player = getPlayerByName(param) local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end if getPlayerStorageValue(player, storage) >= 1 then doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR,"seu muted foi removido") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "você desmutou o jogador "..param) dodesmutedThing(player) setPlayerStorageValue(player, storage, -1) else doPlayerSendTextMessage(cid,22,"este jogador não está mutado") end end return true end
<talkaction log="yes" access="5" words="/muted;/desmuted" event="script" value="nome do seu script.lua"/>
OBS: essa função domutedThing() Não existe no tfs ¬¬
ou seja não vai funcionar ![]()
---edited
tem esse comando muted que eu revisei ontem:
http://www.xtibia.com/forum/topic/181694-talkaction-ajuda-aki-rep/
Editado Março 3 por Vodkart
entao vodkart,como vc mesmo ja disse a função não existe entao o cara fala normalmente,porem como posso arrumar isso eim?storage = 1338 function onSay(cid, words, param) if words == "/muted" then if param == '' then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "digite o nome do jogador.") return TRUE end local player = getPlayerByName(param) local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end if getPlayerStorageValue(player, storage) <= 0 then doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR,"Voce recebeu muted por realizar muito Spam") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "você mutou o jogador "..param) domutedThing(player) setPlayerStorageValue(player, storage, 1) else doPlayerSendTextMessage(cid,22,"este jogador já está mutado") end elseif words == "/desmuted" then if param == '' then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "digite o nome do jogador.") return TRUE end local player = getPlayerByName(param) local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end if getPlayerStorageValue(player, storage) >= 1 then doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR,"seu muted foi removido") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "você desmutou o jogador "..param) dodesmutedThing(player) setPlayerStorageValue(player, storage, -1) else doPlayerSendTextMessage(cid,22,"este jogador não está mutado") end end return true end
<talkaction log="yes" access="5" words="/muted;/desmuted" event="script" value="nome do seu script.lua"/>
OBS: essa função domutedThing() Não existe no tfs ¬¬
ou seja não vai funcionar
---edited
tem esse comando muted que eu revisei ontem:
info
Grupo: Artesão
Registrado: 29/06/11
Posts: 105
Reputação: +3
Char no Tibia: seila
Preciso da ajuda de vocês pessoas do Xtibia,tenho que confessar que meu server está ficando muito bom,tudo graças a vocês que sempre me ajudam,se puderem me ajudar novamente.Eu peguei este script de mute >
http://www.xtibia.com/forum/topic/122053-talkaction-comando-mute-e-desmuted/page__hl__%2Bcomando+%2Bmute__fromsearch__1
Mas é o seguinte quando eu coloco ele no server,ele fala que eu não posso utilizar esse comando aparece esta mensagem ( 16:42 Desculpe, mas voce nao pode usar este comando. )
Tanto se eu usar o script com um tutor ou o god,queria saber como resolver isto,pois no exe também aparece um erro que é esse >
Me ajudem ai ^^
Dou REP +