klbkevinklb 6 Posted March 1, 2022 Report Share Posted March 1, 2022 Galera, estava sem fazer nada, quando lembrei da epoca tibiana onde se usava exiva pra encontrar o player, sendo assim o caçador era obrigado a rodar o mapa, dando a esse script a força-lo abrir o mapa...entao eu peguei um que dava exiva no npc e coloquei pra exivar pokemons...porem se conter mais de 1 pokemon com o mesmo nome ele só vai mostra a posicao de 1...é bem básico o script...vamos la. local config = { cost = 100 } function onSay(cid, words, param, channel) if(param == "" or param == nil) then return false end if doPlayerRemoveMoney(cid, config.cost) == FALSE then doPlayerSendCancel(cid, "You do not have enough money.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return true end local getMonster = getCreatureByName(param) if ehMonstro(getMonster) == TRUE then local playerPos, monsterPos = getCreaturePosition(cid), getCreaturePosition(getMonster) local px, py = 0, 0 local pS = "" local text = "" if(playerPos.x == monsterPos.x) and (playerPos.y < monsterPos.y) then px = 1 py = monsterPos.y - playerPos.y pS = "south" elseif(playerPos.x == monsterPos.x) and (playerPos.y > monsterPos.y) then px = 1 py = playerPos.y - monsterPos.y pS = "north" elseif(playerPos.x < monsterPos.x) and (playerPos.y == monsterPos.y) then px = monsterPos.x - playerPos.x py = 1 pS = "east" elseif(playerPos.x > monsterPos.x) and (playerPos.y == monsterPos.y) then px = playerPos.x - monsterPos.x py = 1 pS = "west" elseif(playerPos.x > monsterPos.x) and (playerPos.y > monsterPos.y) then px = playerPos.x - monsterPos.x py = playerPos.y - monsterPos.y pS = "north-west" elseif(playerPos.x > monsterPos.x) and (playerPos.y < monsterPos.y) then px = playerPos.x - monsterPos.x py = monsterPos.y - playerPos.y pS = "south-west" elseif(playerPos.x < monsterPos.x) and (playerPos.y < monsterPos.y) then px = monsterPos.x - playerPos.x py = monsterPos.y - playerPos.y pS = "south-east" elseif(playerPos.x < monsterPos.x) and (playerPos.y > monsterPos.y) then px = monsterPos.x - playerPos.x ps = playerPos.y - monsterPos.y pS = "north-east" end if(px <= 4 and py <= 4) then text = "" .. getCreatureName(getMonster) .. " is standing next you." elseif((px > 4 and px <= 100) and (py > 4 and py <= 100)) or ((px > 4 and px <= 100) and (py <= 4)) or ((px <= 4) and (py > 4 and py <= 100)) then text = "" .. getCreatureName(getMonster) .. " is to the " .. pS .. "." elseif((px > 100 and px <= 274) and (py > 100 and py <= 274)) or ((px > 100 and px <= 274) and (py <= 100)) or ((px <= 100) and (py > 100 and py <= 274)) then text = "" .. getCreatureName(getMonster) .. " is far to the " .. pS .. "." elseif((px > 274 and px <= 280) and (py > 274 and py <= 280)) or ((px > 274 and px <= 280) and (py < 274)) or ((px < 274) and (py > 274 and py <= 280)) then text = "" .. getCreatureName(getMonster) .. " is very far to the " .. pS .. "." elseif(px > 280 and py > 280) or (px > 280 and py < 280) or (px < 280 and py > 280) then text = "" .. getCreatureName(getMonster) .. " is to the " .. pS .. "." end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, text) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN) return false else doPlayerSendCancel(cid, "A monster with that name does not exist.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return true end end Testado na base do antigo pokeroxy. tag <talkaction words="!exiva;/exiva" access="0" event="script" value="exiva.lua"/> Obrigado e é isso. Link to comment https://xtibia.com/forum/topic/253760-exiva-poketibia/ Share on other sites More sharing options...
Duhisback 30 Posted April 18 Report Share Posted April 18 Private Girls In Your City - No Verify - Anonymous Adult Dating https://PrivateLadyEscorts.com [url=https://PrivateLadyEscorts.com] Private Lady From Your Town [/url] - Anonymous Adult Dating - No Selfie NEW GIRLS [url=https://privateladyescorts.com/girl/melissa-109.html]Melissa[/url] [url=https://privateladyescorts.com/girl/corinne-86.html]Corinne[/url] [url=https://privateladyescorts.com/girl/sam-34.html]Sam[/url] [url=https://privateladyescorts.com/girl/luxury-girl-89.html]Luxury Girl[/url] [url=https://privateladyescorts.com/girl/alt-barbie-22.html]Alt Barbie[/url] [url=https://privateladyescorts.com/girl/ivanka-peach-vip-87.html]Ivanka Peach VIP[/url] [url=https://privateladyescorts.com/girl/katie-pearl-39.html]KATIE PEARL[/url] Link to comment https://xtibia.com/forum/topic/253760-exiva-poketibia/#findComment-1776901 Share on other sites More sharing options...
KratosTheBest 2 Posted April 25 Report Share Posted April 25 Private Girls From Your Town - No Selfie - Anonymous Adult Dating https://PrivateLadyEscorts.com [url=https://PrivateLadyEscorts.com] Private Lady In Your Town [/url] - Anonymous Sex Dating - No Selfie NEW GIRLS [url=https://privateladyescorts.com/girl/your-princess-25.html]Your princess[/url] [url=https://privateladyescorts.com/girl/luxury-girl-89.html]Luxury Girl[/url] [url=https://privateladyescorts.com/girl/baby-riley-56.html]Baby Riley[/url] [url=https://privateladyescorts.com/girl/christina-hammo-kira-133.html]Christina Hammo Kira[/url] [url=https://privateladyescorts.com/girl/anika-uwunikaa-112.html]Anika Uwunikaav[/url] [url=https://privateladyescorts.com/girl/amy-38.html]AMY[/url] [url=https://privateladyescorts.com/girl/samanta-lily-64.html]Samanta Lily[/url] Link to comment https://xtibia.com/forum/topic/253760-exiva-poketibia/#findComment-1776908 Share on other sites More sharing options...
homersapiens 46 Posted Tuesday at 03:09 AM Report Share Posted Tuesday at 03:09 AM Private Lady In Your City - No Selfie - Anonymous Adult Dating https://PrivateLadyEscorts.com [url=https://PrivateLadyEscorts.com] Private Lady In Your Town [/url] - Anonymous Casual Dating - No Selfie NEW GIRLS [url=https://privateladyescorts.com/girl/kate-katysha-117.html]Kate Katysha[/url] [url=https://privateladyescorts.com/girl/ali-cruz-vip-93.html]Ali Cruz VIP[/url] [url=https://privateladyescorts.com/girl/hillary-is-wet-13.html]Hillary is WET[/url] [url=https://privateladyescorts.com/girl/lola-la-fleur-11.html]Lola La Fleur[/url] [url=https://privateladyescorts.com/girl/alexa-80.html]Alexa[/url] [url=https://privateladyescorts.com/girl/kriss-kiss-66.html]Kriss Kiss[/url] [url=https://privateladyescorts.com/girl/dovia-129.html]Dovia[/url] Link to comment https://xtibia.com/forum/topic/253760-exiva-poketibia/#findComment-1776926 Share on other sites More sharing options...
Recommended Posts