1-Porque o prefixo ta action ?
2-Funciona em versão 10+?
By DuuhCarvalho, 17 de abr. de 2014 in Actions e Talkactions
1-Porque o prefixo ta action ?
2-Funciona em versão 10+?
info
Group: Herói
Joined: 12/06/12
Posts: 1k
Reputation: +362
Gender: Masculino
Tibia Character: Aarow

Muito bom o script
isso vai me ajudar ![]()
info
Group: Conde
Joined: 18/01/12
Posts: 988
Reputation: +327
Gender: Masculino
Tibia Character: 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
Group: Visconde
Joined: 02/12/13
Posts: 325
Reputation: +50
Tibia Character: Kharsek

Boa duuh, vou usar.
info
Group: Conde
Joined: 18/01/12
Posts: 988
Reputation: +327
Gender: Masculino
Tibia Character: Xerife Woody

Boa duuh, vou usar.
Obrigado ![]()
info
Group: Conde
Joined: 20/09/12
Posts: 711
Reputation: +86
Tibia Character: noé

da pra diminuir o codigo.
enfim, parece estar funfando.
info
Group: Conde
Joined: 18/01/12
Posts: 988
Reputation: +327
Gender: Masculino
Tibia Character: Xerife Woody

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

Ótimo Código estarei utilizando ;D
info
Group: Conde
Joined: 18/01/12
Posts: 988
Reputation: +327
Gender: Masculino
Tibia Character: Xerife Woody

Ótimo Código estarei utilizando ;D
Obrigado, é muito útil coloquei no meu server também .
info
Group: Conde
Joined: 18/01/12
Posts: 988
Reputation: +327
Gender: Masculino
Tibia Character: 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
Edited Abril 18 by Killua