Ir para conteúdo

Action Para A Inquistion Quest


Schiavinato

Posts Recomendados

Antes de tudo..

Creditos ao AlissonLinnker

 

Ele que me ajudo fazer a quest

 

Vamos ao script, dps explicação...

 

Va em data/actions/scripts/copie um arkivo e renomei-e para inquichest(sempre na extenção .lua)

 

e adicionde o seguinte:

 

-- Inquisition chests

function onUse(cid, item, frompos, item2, topos)

  	if item.uid == 8560 then
  		queststatus = getPlayerStorageValue(cid,8560)
  		if queststatus == -1 then
  			doPlayerSendTextMessage(cid,22,"You have found a Emerald Sword.")
  			doPlayerAddItem(cid,8930,1)
  			setPlayerStorageValue(cid,8560,1)
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end
  	elseif item.uid == 8561 then
  		queststatus = getPlayerStorageValue(cid,8560)
  		if queststatus == -1 then
  			doPlayerSendTextMessage(cid,22,"You have found a Spellbook of dark Mysteries.")
  			doPlayerAddItem(cid,8918,1)
  			setPlayerStorageValue(cid,8560,1)
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end
  	elseif item.uid == 8562 then
  		queststatus = getPlayerStorageValue(cid,8560)
  		if queststatus == -1 then
  			doPlayerSendTextMessage(cid,22,"You have found a Master Archer's Armor.")
  			doPlayerAddItem(cid,8888,1)
  			setPlayerStorageValue(cid,8560,1)
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end
  	elseif item.uid == 8563 then
  		queststatus = getPlayerStorageValue(cid,8560)
  		if queststatus == -1 then
  			doPlayerSendTextMessage(cid,22,"You have found a Robe of the Underworld")
  			doPlayerAddItem(cid,8890,1)
  			setPlayerStorageValue(cid,8560,1)
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end
  	elseif item.uid == 8564 then
  		queststatus = getPlayerStorageValue(cid,8560)
  		if queststatus == -1 then
  			doPlayerSendTextMessage(cid,22,"You have found a Fireborn Giant Armor.")
  			doPlayerAddItem(cid,8881,1)
  			setPlayerStorageValue(cid,8560,1)
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end
  	elseif item.uid == 8565 then
  		queststatus = getPlayerStorageValue(cid,8560)
  		if queststatus == -1 then
  			doPlayerSendTextMessage(cid,22,"You have found a Obsidian Truncheon.")
  			doPlayerAddItem(cid,8928,1)
  			setPlayerStorageValue(cid,8560,1)
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end
  	elseif item.uid == 8566 then
  		queststatus = getPlayerStorageValue(cid,8560)
  		if queststatus == -1 then
  			doPlayerSendTextMessage(cid,22,"You have found a Royal Crossbow.")
  			doPlayerAddItem(cid,8851,1)
  			setPlayerStorageValue(cid,8560,1)
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end
  	elseif item.uid == 8567 then
  		queststatus = getPlayerStorageValue(cid,8560)
  		if queststatus == -1 then
  			doPlayerSendTextMessage(cid,22,"You have found a Warsinger Bow.")
  			doPlayerAddItem(cid,8854,1)
  			setPlayerStorageValue(cid,8560,1)
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end
  	elseif item.uid == 8568 then
  		queststatus = getPlayerStorageValue(cid,856)
  		if queststatus == -1 then
  			doPlayerSendTextMessage(cid,22,"You have found a Hellforged axe")
  			doPlayerAddItem(cid,8924,1)
  			setPlayerStorageValue(cid,8560,1)
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end

else
	return 0
  	end

  	return 1
end

 

Explicação rapida:

Faça um esqueminha de báu igual da anihilator(Com os bau e os itens atras pra mostra o que pega em cada bau)

 

Agora siga a ordem:

ITEM:.......................UniqueId do BAU:

Emerald Sword--8560

Spellbook of Dark Mysteries--8561

Master Archer's Armor--8562

Robe of the Underworld--8563

Fireborn Giant Armor--8564

Obsidian Truncheon--8565

Royal Crossbow--8566

Warsinger Bow--8567

Hellforged Axe--8568

 

 

Esses numeros na frente dos itens, eh oq eh pra por na frente do bauzinho de cada..aconselho n mudar :)

 

 

Agora va em action.xml e adicione:

 

<action uniqueid="8560" script="inquichest.lua" />
<action uniqueid="8561" script="inquichest.lua" />
<action uniqueid="8562" script="inquichest.lua" />
<action uniqueid="8563" script="inquichest.lua" />
<action uniqueid="8564" script="inquichest.lua" />
<action uniqueid="8565" script="inquichest.lua" />
<action uniqueid="8566" script="inquichest.lua" />
<action uniqueid="8567" script="inquichest.lua" />
<action uniqueid="8568" script="inquichest.lua" />

 

Pronto...agora soh faze alguma coisa legal ate chegar na sala do premio!

 

OB:eu ate postaria a minha, mas meu pc deleto meu mapa ¬¬

 

Flws

Comentem..e qualker erro/bug/duvida posta ai q eu respondo!

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
×
×
  • Criar Novo...