Ir para conteúdo

Posts Recomendados

Alguém poderia me ajudar em algum action da POI!

O action é assim, você passa no trode de algum seal da poi e recebe um store value.

 

Se alguem puder me ajudar, me avise!

 

 

 

Atenciosamente,

Gorno

Link para o comentário
https://xtibia.com/forum/topic/103636-pedido/
Compartilhar em outros sites

  • 2 weeks later...

Seus problemas acabaram !!

 

function onStepIn(cid, item, pos)
if item.uid == 10001 then
	if getPlayerStorageValue(cid,1234561) == -1 then
		setPlayerStorageValue(cid,1234561,1)
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Verminor´s throne and absorbed some of his spirit.')
	else
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Veminor´s spirit.')
	end
elseif item.uid == 10002 then
	if getPlayerStorageValue(cid,1234562) == -1 then
		setPlayerStorageValue(cid,1234562,1)
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Infernatil´s throne and absorbed some of his spirit.')
	else
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Infernatil´s spirit.')
	end
elseif item.uid == 10003 then
	if getPlayerStorageValue(cid,1234563) == -1 then
		setPlayerStorageValue(cid,1234563,1)
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Tafariel´s throne and absorbed some of his spirit.')
	else
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Tafariel´s spirit.')
	end
elseif item.uid == 10004 then
	if getPlayerStorageValue(cid,1234564) == -1 then
		setPlayerStorageValue(cid,1234564,1)
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Apocalypse´s throne and absorbed some of his spirit.')
	else
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Apocalypse´s spirit.')
	end
elseif item.uid == 10005 then
	if getPlayerStorageValue(cid,1234565) == -1 then
		setPlayerStorageValue(cid,1234565,1)
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Pumin´s throne and absorbed some of his spirit.')
	else
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Pumin´s spirit.')
	end
elseif item.uid == 10007 then
	if getPlayerStorageValue(cid,1234567) == -1 then
		setPlayerStorageValue(cid,1234567,1)
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Ashfalor´s throne and absorbed some of his spirit.')
	else
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Ashfalor´s spirit.')
	end
elseif item.uid == 22222 then
if getPlayerStorageValue(cid,1234561) == 1 and getPlayerStorageValue(cid,1234562) == 1 and getPlayerStorageValue(cid,1234563) == 1 and getPlayerStorageValue(cid,1234564) == 1 and getPlayerStorageValue(cid,1234565) == 1 and getPlayerStorageValue(cid,1234567) == 1 then
doTransformItem(item.uid,item.itemid+1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'You absorbed enough energy! You may pass.')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'Sorry, but you did not absorb enough energy!')
end
end
return 1
end

 

Se der problemas, me envie uma PM ou me adicione no MSN para eu poder te ajudar!!!

 

MSN: god.rodrigo@hotmail.com

 

Abraço!!

Link para o comentário
https://xtibia.com/forum/topic/103636-pedido/#findComment-671781
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...