tibiaa4e 86 Postado Novembro 21, 2006 Share Postado Novembro 21, 2006 creditos: Samco do otfans pelo ja fala o q é qdos e anda em determinado tile ele fala qtos falta kal direção e tudo + ai vai o code: map.lua function onUse(cid, item, frompos, item2, topos)npos = getPlayerPosition(cid) tespos = {x=201, y=200, z=7} --Coords of the Treasure location posx = npos.x - tespos.x posy = npos.y - tespos.y possy = (-1)*posy possx = (-1)*posx if npos.z == 7 then queststatus = getPlayerStorageValue(cid,6969) if queststatus == -1 then if posx == 0 and posy == 0 then doPlayerSendTextMessage(cid,22,"Here!") setPlayerStorageValue(cid,6969,1) elseif posx > 0 and posy > 0 then doPlayerSendTextMessage(cid,22,'Go ' .. posx .. ' step west and ' .. posy .. ' north plx!') elseif posx > 0 and posy == 0 then doPlayerSendTextMessage(cid,22,'Go ' .. posx .. ' step west plx!') elseif posx < 0 and posy > 0 then doPlayerSendTextMessage(cid,22,'Go ' .. possx .. ' step east and ' .. posy .. ' north plx!') elseif posx < 0 and posy == 0 then doPlayerSendTextMessage(cid,22,'Go ' .. possx .. ' step east.') elseif posx > 0 and posy < 0 then doPlayerSendTextMessage(cid,22,'Go ' .. posx .. ' step west and ' .. possy .. ' south plx!') elseif posx == 0 and posy < 0 then doPlayerSendTextMessage(cid,22,'Go ' .. possy .. ' step south.') elseif posx == 0 and posy > 0 then doPlayerSendTextMessage(cid,22,'Go ' .. posy .. ' step north.') end elseif queststatus == 1 then doPlayerSendTextMessage(cid,16,"You already got this treasure!.") end else doPlayerSendTextMessage(cid,22,"You aren't in the right floor!") end return 1 end e em actions.xml adicione <action itemid="XXXX" script="map.lua" /> isso é o id do map qo cara num sabe nem eu se alguem souber posta ai é isso flws Link para o comentário https://xtibia.com/forum/topic/33230-mapa-do-tesouro-90/ Compartilhar em outros sites More sharing options...
soulblaster 0 Postado Novembro 21, 2006 Share Postado Novembro 21, 2006 Uou ^^ mto boa essa action ai ;] bom para servers bem RPG ^^ gostei ;D cya... Link para o comentário https://xtibia.com/forum/topic/33230-mapa-do-tesouro-90/#findComment-179361 Compartilhar em outros sites More sharing options...
Magodasabedoria 2 Postado Novembro 21, 2006 Share Postado Novembro 21, 2006 Hehe, legal... Depois vou testar e ler com mais calma que agora eu to apreçado, mas parece bem legal =) Link para o comentário https://xtibia.com/forum/topic/33230-mapa-do-tesouro-90/#findComment-179444 Compartilhar em outros sites More sharing options...
Templarr 0 Postado Fevereiro 21, 2007 Share Postado Fevereiro 21, 2007 (editado) Show de bola esse tutorial, tbm é bom pra quem está perdido no mapa, e quer saber o caminho, exp, pra ir pra cidade, ^^ Abraço, Templarr. Editado Fevereiro 21, 2007 por Templarr Link para o comentário https://xtibia.com/forum/topic/33230-mapa-do-tesouro-90/#findComment-253150 Compartilhar em outros sites More sharing options...
leo_itachi 0 Postado Outubro 29, 2007 Share Postado Outubro 29, 2007 cara demaisss APROVADO Link para o comentário https://xtibia.com/forum/topic/33230-mapa-do-tesouro-90/#findComment-413941 Compartilhar em outros sites More sharing options...
Posts Recomendados