1-Porque o prefixo ta action ?
2-Funciona em versão 10+?
Por DuuhCarvalho, 17 de abr. de 2014 em Actions e Talkactions
1-Porque o prefixo ta action ?
2-Funciona em versão 10+?
info
Grupo: Herói
Registrado: 12/06/12
Posts: 1k
Reputação: +362
Gênero: Masculino
Char no Tibia: Aarow

Muito bom o script
isso vai me ajudar ![]()
info
Grupo: Conde
Registrado: 18/01/12
Posts: 988
Reputação: +327
Gênero: Masculino
Char no Tibia: Xerife Woody

1-Porque o prefixo ta action ?
2-Funciona em versão 10+?
1 - algum bug, não estava aparecendo a opção de escolher ..
ficou actions por padrão.
2 - Creio que sim , testa ae ><
Muito bom o script
isso vai me ajudar
Que bom
, brigado .
Abraços ![]()
info
Grupo: Visconde
Registrado: 02/12/13
Posts: 325
Reputação: +50
Char no Tibia: Kharsek

Boa duuh, vou usar.
info
Grupo: Conde
Registrado: 18/01/12
Posts: 988
Reputação: +327
Gênero: Masculino
Char no Tibia: Xerife Woody

Boa duuh, vou usar.
Obrigado ![]()
info
Grupo: Conde
Registrado: 20/09/12
Posts: 711
Reputação: +86
Char no Tibia: noé

da pra diminuir o codigo.
enfim, parece estar funfando.
info
Grupo: Conde
Registrado: 18/01/12
Posts: 988
Reputação: +327
Gênero: Masculino
Char no Tibia: Xerife Woody

da pra diminuir o codigo.
enfim, parece estar funfando.
Sim, mais não é preciso : D
info
Grupo: Campones
Registrado: 11/04/14
Posts: 24
Reputação: +2

Ótimo Código estarei utilizando ;D
info
Grupo: Conde
Registrado: 18/01/12
Posts: 988
Reputação: +327
Gênero: Masculino
Char no Tibia: Xerife Woody

Ótimo Código estarei utilizando ;D
Obrigado, é muito útil coloquei no meu server também .
info
Grupo: Conde
Registrado: 18/01/12
Posts: 988
Reputação: +327
Gênero: Masculino
Char no Tibia: Xerife Woody
[talkactions]
Bom, o titulo já diz tudo, você muda o nome de um certo player.
/rn Nome do Player, Novo Nome, tempo para o player ser kickado(em segundos).
Exemplo :
Simples, porem útil.
Vá em data / talkactions / scripts.
cria um arquivo lua e cola isso dentro :
function onSay(cid, words, param) if(param == '') then doPlayerSendCancel(cid, "Command param required.") return true end local t = string.explode(param, ",") newName = tostring(t[2]) time = tonumber(t[3]) local target = getPlayerByNameWildcard(t[1]) if(not target) then target = getCreatureByName(t[1]) if(not target) then doPlayerSendCancel(cid, "Creature not found.") return true end end if(isPlayerGhost(t[1]) and getPlayerGhostAccess(t[1]) > getPlayerGhostAccess(cid)) then doPlayerSendCancel(cid, "Creature not found.") return true end if (not t[2]) then return doPlayerSendCancel(cid, "New name not found") end if (not t[3]) then return doPlayerSendCancel(cid, "Time not found") end function removePlayer() if isPlayer(target) then doRemoveCreature(target) end end if isPlayer(target) then if getCreatureCondition(target, CONDITION_INFIGHT) == FALSE then db.executeQuery("UPDATE `players` SET `name` = '"..newName.."' WHERE `id` = "..getPlayerGUID(target)..";") addEvent(removePlayer, time*1000) doPlayerSendTextMessage(target, 25, "Você será kickado em "..time.." segundo(s) para que seu nome seja alterado.") doSendMagicEffect(getCreaturePosition(target), 35) doSendMagicEffect(getCreaturePosition(cid), 27) doPlayerSendTextMessage(cid, 25, "O nome do Player foi alterado com sucesso.") else doPlayerSendCancel(cid, "O player está com Battle.") doSendMagicEffect(getCreaturePosition(cid), 2) end else doPlayerSendCancel(cid, "Você só pode mudar o nome de Player's.") doSendMagicEffect(getCreaturePosition(cid), 2) end return true endColoque a tag em data / talkactions / talkactions.xml :
Simples
Editado Abril 18 por Killua