<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Ayoo Forum -  Tutoriais Scripting]]></title>
		<link>https://forum.ayoocloud.com.br/</link>
		<description><![CDATA[Ayoo Forum - https://forum.ayoocloud.com.br]]></description>
		<pubDate>Thu, 16 Apr 2026 13:28:24 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[[TFS 0.x] - Como criar um script de quest]]></title>
			<link>https://forum.ayoocloud.com.br/Thread-TFS-0-x-Como-criar-um-script-de-quest</link>
			<pubDate>Sun, 17 Aug 2025 14:01:24 -0300</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ayoocloud.com.br/member.php?action=profile&uid=1">paulim78</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ayoocloud.com.br/Thread-TFS-0-x-Como-criar-um-script-de-quest</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b"><span style="font-size: medium;" class="mycode_size">Como criar um Script de quest</span></span><br />
<br />
Bom é bem simples fazer um Script de Quest, mais tem muita gente que ainda não sabe então irei ensinar através deste tópico. <a href="https://tibiaking.com/uploads/emoticons/default_biggrin.png" target="_blank" rel="noopener" class="mycode_url"><img src="https://tibiaking.com/uploads/emoticons/default_biggrin.png" loading="lazy"  alt="[Imagem: default_biggrin.png]" class="mycode_img" /></a><br />
<br />
Primeiramente vá até a pasta <span style="font-weight: bold;" class="mycode_b">"Actions"</span> e depois vá em <span style="font-weight: bold;" class="mycode_b">"Scripts"</span> agora faça um arquivo chamado <span style="font-weight: bold;" class="mycode_b">Quest1.lua</span>, e bote isso dentro dele:<br />
<br />
<br />
<div class="spoiler">
			<div class="spoiler_title"><span class="spoiler_button" onclick="javascript: if(parentNode.parentNode.getElementsByTagName('div')[1].style.display == 'block'){ parentNode.parentNode.getElementsByTagName('div')[1].style.display = 'none'; this.innerHTML='Show Content'; } else { parentNode.parentNode.getElementsByTagName('div')[1].style.display = 'block'; this.innerHTML='Hide Content'; }">Show Content</span></div>
			<div class="spoiler_content" style="display: none;"><span class="spoiler_content_title">Spoiler</span><br />
<br />
<br />
function onUse(cid, item, fromPosition, itemEx, toPosition)<br />
a = <span style="font-weight: bold;" class="mycode_b"><span style="color: #ff4136;" class="mycode_color">9595</span></span><br />
id = <span style="font-weight: bold;" class="mycode_b"><span style="color: #2ecc40;" class="mycode_color">1234</span></span><br />
if getPlayerStorageValue(cid, a) &lt; 1 then<br />
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a "..getItemNameById(id)..".")<br />
doPlayerAddItem(cid, id, 1)<br />
doPlayerSetStorageValue(cid, a, 1)<br />
else<br />
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")<br />
end<br />
return TRUE<br />
end<br />
<br />
<br />
</div>
		</div>
<br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: medium;" class="mycode_size">Legenda:</span></span><br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="color: #ff4136;" class="mycode_color">Vermelho:</span></span> É a Storage pode colocar qual quer numero, mais ele não deve existir em outra actions.<br />
<span style="color: #2ecc40;" class="mycode_color">Verde:</span> É o ID do item.<br />
<br />
---------------------------<br />
<br />
Agora volta na pasta <span style="font-weight: bold;" class="mycode_b"><span style="color: #0074d9;" class="mycode_color">"Actions"</span></span> e abra o arquivo<span style="font-weight: bold;" class="mycode_b"><span style="color: #0074d9;" class="mycode_color"> "Actions.xml"</span></span> e coloque isto dentro dele:<br />
<br />
<br />
<blockquote class="mycode_quote"><cite>Citação:</cite>&lt;action actionid="<span style="font-weight: bold;" class="mycode_b"><span style="color: #2ecc40;" class="mycode_color">9595</span></span>" script="<span style="color: #ff4136;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">Quest1.lua</span></span>"/&gt;</blockquote>
<br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: medium;" class="mycode_size">Legenda:</span></span><br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="color: #ff4136;" class="mycode_color">Vermelho:</span></span> É o nome do arquivo .lua<br />
<span style="font-weight: bold;" class="mycode_b"><span style="color: #2ecc40;" class="mycode_color">Verde:</span></span> É a Storage que tem dentro do script.<br />
<br />
<br />
Agora para terminar a quest vá no Baú no seu mapa editor e bote o ActionID nele que no caso é "<span style="color: #2ecc40;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">9595</span></span>" observe a foto:<br />
<br />
<img src="https://i.ibb.co/n8BwVN1f/Captura-de-tela-2025-08-17-135654.png" loading="lazy"  alt="[Imagem: Captura-de-tela-2025-08-17-135654.png]" class="mycode_img" /><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Credito:</span><br />
Grimmjow]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b"><span style="font-size: medium;" class="mycode_size">Como criar um Script de quest</span></span><br />
<br />
Bom é bem simples fazer um Script de Quest, mais tem muita gente que ainda não sabe então irei ensinar através deste tópico. <a href="https://tibiaking.com/uploads/emoticons/default_biggrin.png" target="_blank" rel="noopener" class="mycode_url"><img src="https://tibiaking.com/uploads/emoticons/default_biggrin.png" loading="lazy"  alt="[Imagem: default_biggrin.png]" class="mycode_img" /></a><br />
<br />
Primeiramente vá até a pasta <span style="font-weight: bold;" class="mycode_b">"Actions"</span> e depois vá em <span style="font-weight: bold;" class="mycode_b">"Scripts"</span> agora faça um arquivo chamado <span style="font-weight: bold;" class="mycode_b">Quest1.lua</span>, e bote isso dentro dele:<br />
<br />
<br />
<div class="spoiler">
			<div class="spoiler_title"><span class="spoiler_button" onclick="javascript: if(parentNode.parentNode.getElementsByTagName('div')[1].style.display == 'block'){ parentNode.parentNode.getElementsByTagName('div')[1].style.display = 'none'; this.innerHTML='Show Content'; } else { parentNode.parentNode.getElementsByTagName('div')[1].style.display = 'block'; this.innerHTML='Hide Content'; }">Show Content</span></div>
			<div class="spoiler_content" style="display: none;"><span class="spoiler_content_title">Spoiler</span><br />
<br />
<br />
function onUse(cid, item, fromPosition, itemEx, toPosition)<br />
a = <span style="font-weight: bold;" class="mycode_b"><span style="color: #ff4136;" class="mycode_color">9595</span></span><br />
id = <span style="font-weight: bold;" class="mycode_b"><span style="color: #2ecc40;" class="mycode_color">1234</span></span><br />
if getPlayerStorageValue(cid, a) &lt; 1 then<br />
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a "..getItemNameById(id)..".")<br />
doPlayerAddItem(cid, id, 1)<br />
doPlayerSetStorageValue(cid, a, 1)<br />
else<br />
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")<br />
end<br />
return TRUE<br />
end<br />
<br />
<br />
</div>
		</div>
<br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: medium;" class="mycode_size">Legenda:</span></span><br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="color: #ff4136;" class="mycode_color">Vermelho:</span></span> É a Storage pode colocar qual quer numero, mais ele não deve existir em outra actions.<br />
<span style="color: #2ecc40;" class="mycode_color">Verde:</span> É o ID do item.<br />
<br />
---------------------------<br />
<br />
Agora volta na pasta <span style="font-weight: bold;" class="mycode_b"><span style="color: #0074d9;" class="mycode_color">"Actions"</span></span> e abra o arquivo<span style="font-weight: bold;" class="mycode_b"><span style="color: #0074d9;" class="mycode_color"> "Actions.xml"</span></span> e coloque isto dentro dele:<br />
<br />
<br />
<blockquote class="mycode_quote"><cite>Citação:</cite>&lt;action actionid="<span style="font-weight: bold;" class="mycode_b"><span style="color: #2ecc40;" class="mycode_color">9595</span></span>" script="<span style="color: #ff4136;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">Quest1.lua</span></span>"/&gt;</blockquote>
<br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: medium;" class="mycode_size">Legenda:</span></span><br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="color: #ff4136;" class="mycode_color">Vermelho:</span></span> É o nome do arquivo .lua<br />
<span style="font-weight: bold;" class="mycode_b"><span style="color: #2ecc40;" class="mycode_color">Verde:</span></span> É a Storage que tem dentro do script.<br />
<br />
<br />
Agora para terminar a quest vá no Baú no seu mapa editor e bote o ActionID nele que no caso é "<span style="color: #2ecc40;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">9595</span></span>" observe a foto:<br />
<br />
<img src="https://i.ibb.co/n8BwVN1f/Captura-de-tela-2025-08-17-135654.png" loading="lazy"  alt="[Imagem: Captura-de-tela-2025-08-17-135654.png]" class="mycode_img" /><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Credito:</span><br />
Grimmjow]]></content:encoded>
		</item>
	</channel>
</rss>