PH
action

Tag Talkaction

Por phardole, 20 de out. de 2015 em Scripts

4
764
phardoleP
20 de outubro de 2015 às 14:48

Fala galera blz? o Zipter98 postou esse script de auto loot com talkaction..

alguem poderia me falar como coloco a tag no talkaction.xml? tentei aqui e não consegui.

Talkaction:

function onSay(cid, words, param)
if param == "" then
return doPlayerSendCancel(cid, "/autoloot on/off")
end
local value = param:lower() == "on" and 1 or param:lower() == "off" and -1 or false
if not value then
return doPlayerSendCancel(cid, "/autoloot on/off")
elseif getPlayerStorageValue(cid, 4919) == value then
return doPlayerSendCancel(cid, "Your autoloot is already "..param..".")
end
setPlayerStorageValue(cid, 4919, value)
doPlayerSendTextMessage(cid, 27, "Your autoloot is now "..param..".")
return true
end

SkyLighS
20 de outubro de 2015 às 15:40
Melhor resposta

OBS : SÓ GOD VAI UTILIZAR.

	<talkaction log="yes" access="5" words="/autoloot" event="script" value="nomedoarquivo.lua"/>
phardoleP
20 de outubro de 2015 às 15:48

Obrigado.

SkyLighS
20 de outubro de 2015 às 15:51

Movido para resolvidos.


Tópico Movido
Este tópico foi movido de "OTServSuporte OTServSuporte Scripting"
para "OTServSuporte OTServSuporte ScriptingPedidos e dúvidas resolvidos - Scripting".