<?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 - Scripts TFS 0.X]]></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:18 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[[Script] !buyvip + Tile Otserv 0.4x]]></title>
			<link>https://forum.ayoocloud.com.br/Thread-Script-buyvip-Tile-Otserv-0-4x</link>
			<pubDate>Thu, 16 Oct 2025 11:29:07 -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-Script-buyvip-Tile-Otserv-0-4x</guid>
			<description><![CDATA[Esse topico vou mostrar como adicionar o Script !buyvip no seu otserv.<br />
<br />
<br />
Em <span style="font-weight: bold;" class="mycode_b">data/talkactions/scripts</span> crie um arquivo <span style="font-weight: bold;" class="mycode_b">buyvip.lua</span><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 />
function onSay(cid, words, param)<br />
<br />
local price = 1000000<br />
if doPlayerRemoveMoney(cid, price) == TRUE then<br />
 local days = 15<br />
local s = 29000<br />
 local daysvalue = days * 24 * 60 * 60<br />
 local storageplayer = getPlayerStorageValue(cid, s)<br />
 local timenow = os.time()<br />
<br />
 if getPlayerStorageValue(cid, s) - os.time() &lt;= 0 then<br />
 time = timenow + daysvalue<br />
 else<br />
 time = storageplayer + daysvalue<br />
 end<br />
<br />
 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.")<br />
 setPlayerStorageValue(cid, s, time)<br />
<br />
 local quantity = math.floor((getPlayerStorageValue(cid, s) - timenow)/(24 * 60 * 60))<br />
 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.")<br />
else<br />
 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa de "..price.." gp's para colocar vip.")<br />
end<br />
return TRUE<br />
end<br />
<br />
</div>
		</div>
<br />
<br />
Registra no <span style="font-weight: bold;" class="mycode_b">Talkactions.xml</span><br />
<br />
<div class="codeblock"><div class="title">Código:</div><div class="body" dir="ltr"><code>&lt;talkaction words="!buyvip" event="script" value="buyvip.lua"/&gt;</code></div></div><br />
<br />
<br />
Agora na pasta <span style="font-weight: bold;" class="mycode_b">data/movements/scripts</span> crie um arquivo <span style="font-weight: bold;" class="mycode_b">passagembuyvip.lua</span><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 />
function onStepIn(cid, item, position, fromPosition)<br />
<br />
local config = {<br />
msgDenied = "Vc nao e vip , comprepelo comando !buyvip.",<br />
msgWelcome = "Seja Bem Vindo a Area vip."<br />
}<br />
<br />
local s = 29000<br />
<br />
if getPlayerStorageValue(cid, s) - os.time() &lt;= 0 then<br />
doTeleportThing(cid, fromPosition, true)<br />
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied)<br />
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)<br />
return TRUE<br />
end<br />
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome)<br />
return TRUE<br />
end<br />
<br />
</div>
		</div>
<br />
<br />
Registra no <span style="font-weight: bold;" class="mycode_b">movements.xml</span><br />
<div class="codeblock"><div class="title">Código:</div><div class="body" dir="ltr"><code>&lt;movevent type="StepIn" uniqueid="13850" event="script" value="passagembuyvip.lua"/&gt;</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Creditos:</span><br />
Vodkart]]></description>
			<content:encoded><![CDATA[Esse topico vou mostrar como adicionar o Script !buyvip no seu otserv.<br />
<br />
<br />
Em <span style="font-weight: bold;" class="mycode_b">data/talkactions/scripts</span> crie um arquivo <span style="font-weight: bold;" class="mycode_b">buyvip.lua</span><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 />
function onSay(cid, words, param)<br />
<br />
local price = 1000000<br />
if doPlayerRemoveMoney(cid, price) == TRUE then<br />
 local days = 15<br />
local s = 29000<br />
 local daysvalue = days * 24 * 60 * 60<br />
 local storageplayer = getPlayerStorageValue(cid, s)<br />
 local timenow = os.time()<br />
<br />
 if getPlayerStorageValue(cid, s) - os.time() &lt;= 0 then<br />
 time = timenow + daysvalue<br />
 else<br />
 time = storageplayer + daysvalue<br />
 end<br />
<br />
 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.")<br />
 setPlayerStorageValue(cid, s, time)<br />
<br />
 local quantity = math.floor((getPlayerStorageValue(cid, s) - timenow)/(24 * 60 * 60))<br />
 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.")<br />
else<br />
 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa de "..price.." gp's para colocar vip.")<br />
end<br />
return TRUE<br />
end<br />
<br />
</div>
		</div>
<br />
<br />
Registra no <span style="font-weight: bold;" class="mycode_b">Talkactions.xml</span><br />
<br />
<div class="codeblock"><div class="title">Código:</div><div class="body" dir="ltr"><code>&lt;talkaction words="!buyvip" event="script" value="buyvip.lua"/&gt;</code></div></div><br />
<br />
<br />
Agora na pasta <span style="font-weight: bold;" class="mycode_b">data/movements/scripts</span> crie um arquivo <span style="font-weight: bold;" class="mycode_b">passagembuyvip.lua</span><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 />
function onStepIn(cid, item, position, fromPosition)<br />
<br />
local config = {<br />
msgDenied = "Vc nao e vip , comprepelo comando !buyvip.",<br />
msgWelcome = "Seja Bem Vindo a Area vip."<br />
}<br />
<br />
local s = 29000<br />
<br />
if getPlayerStorageValue(cid, s) - os.time() &lt;= 0 then<br />
doTeleportThing(cid, fromPosition, true)<br />
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied)<br />
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)<br />
return TRUE<br />
end<br />
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome)<br />
return TRUE<br />
end<br />
<br />
</div>
		</div>
<br />
<br />
Registra no <span style="font-weight: bold;" class="mycode_b">movements.xml</span><br />
<div class="codeblock"><div class="title">Código:</div><div class="body" dir="ltr"><code>&lt;movevent type="StepIn" uniqueid="13850" event="script" value="passagembuyvip.lua"/&gt;</code></div></div><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Creditos:</span><br />
Vodkart]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Actions] - Script de quest Bau]]></title>
			<link>https://forum.ayoocloud.com.br/Thread-Actions-Script-de-quest-Bau</link>
			<pubDate>Sun, 17 Aug 2025 13:46:48 -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-Actions-Script-de-quest-Bau</guid>
			<description><![CDATA[Esse script cria um <span style="font-weight: bold;" class="mycode_b">baú de recompensa única</span> no OTServ.<br />
<ul class="mycode_list"><li>O baú só pode ser aberto <span style="font-weight: bold;" class="mycode_b">uma vez por personagem</span>.<br />
</li>
<li>Ao abrir pela primeira vez, o jogador recebe <span style="font-weight: bold;" class="mycode_b">10 crystal coins (100k)</span>.<br />
</li>
<li>Se tentar abrir novamente, aparece a mensagem informando que já pegou a recompensa.<br />
</li>
</ul>
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Pasta: </span>Data/Actions<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Codigo:</span><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 />
function onUse(cid, item, frompos, item2, topos)<br />
<br />
  if item.uid == 1604 then<br />
  queststatus = getPlayerStorageValue(cid,1604)<br />
  if queststatus == -1 then<br />
  doPlayerSendTextMessage(cid,22,"Voce recebeu 100k de bonus!.")<br />
  doPlayerAddItem(cid,2160,10)<br />
  setPlayerStorageValue(cid,1604,1)<br />
  else<br />
  doPlayerSendTextMessage(cid,22,"Voce ja pegou o bonus")<br />
  end<br />
      else<br />
 return 0<br />
  end<br />
<br />
  return 1<br />
end<br />
<br />
</div>
		</div>
<br />
<br />
<span style="text-decoration: underline;" class="mycode_u">Sempre quando for adicionar +1 codigo sempre alterar o valor 1604, cada quest tera seu proprio valor 1604.</span><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Creditos:</span><br />
Não sei quem e o real criador.]]></description>
			<content:encoded><![CDATA[Esse script cria um <span style="font-weight: bold;" class="mycode_b">baú de recompensa única</span> no OTServ.<br />
<ul class="mycode_list"><li>O baú só pode ser aberto <span style="font-weight: bold;" class="mycode_b">uma vez por personagem</span>.<br />
</li>
<li>Ao abrir pela primeira vez, o jogador recebe <span style="font-weight: bold;" class="mycode_b">10 crystal coins (100k)</span>.<br />
</li>
<li>Se tentar abrir novamente, aparece a mensagem informando que já pegou a recompensa.<br />
</li>
</ul>
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Pasta: </span>Data/Actions<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Codigo:</span><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 />
function onUse(cid, item, frompos, item2, topos)<br />
<br />
  if item.uid == 1604 then<br />
  queststatus = getPlayerStorageValue(cid,1604)<br />
  if queststatus == -1 then<br />
  doPlayerSendTextMessage(cid,22,"Voce recebeu 100k de bonus!.")<br />
  doPlayerAddItem(cid,2160,10)<br />
  setPlayerStorageValue(cid,1604,1)<br />
  else<br />
  doPlayerSendTextMessage(cid,22,"Voce ja pegou o bonus")<br />
  end<br />
      else<br />
 return 0<br />
  end<br />
<br />
  return 1<br />
end<br />
<br />
</div>
		</div>
<br />
<br />
<span style="text-decoration: underline;" class="mycode_u">Sempre quando for adicionar +1 codigo sempre alterar o valor 1604, cada quest tera seu proprio valor 1604.</span><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Creditos:</span><br />
Não sei quem e o real criador.]]></content:encoded>
		</item>
	</channel>
</rss>