From 5fe0a7d3e73c34811d3c93684097d41f62292ed8 Mon Sep 17 00:00:00 2001 From: Evil Puncker Date: Thu, 3 Jun 2021 17:57:33 -0300 Subject: [PATCH] Fixed find person "very far" distance number Fixed find person "very far" distance number, from 275 to 250. According to this extended research by tibia maps [https://tibiamaps.io/blog/exiva] --- data/spells/scripts/support/find_person.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/spells/scripts/support/find_person.lua b/data/spells/scripts/support/find_person.lua index f2984c0cab..b9fe2d1b0e 100644 --- a/data/spells/scripts/support/find_person.lua +++ b/data/spells/scripts/support/find_person.lua @@ -62,7 +62,7 @@ function onCastSpell(creature, variant) end local level = positionDifference.z > 0 and LEVEL_HIGHER or positionDifference.z < 0 and LEVEL_LOWER or LEVEL_SAME - local distance = maxPositionDifference < 5 and DISTANCE_BESIDE or maxPositionDifference < 101 and DISTANCE_CLOSE or maxPositionDifference < 275 and DISTANCE_FAR or DISTANCE_VERYFAR + local distance = maxPositionDifference < 5 and DISTANCE_BESIDE or maxPositionDifference < 101 and DISTANCE_CLOSE or maxPositionDifference < 250 and DISTANCE_FAR or DISTANCE_VERYFAR local description = descriptions[distance][level] or descriptions[distance] if distance ~= DISTANCE_BESIDE then description = description .. " " .. directions[direction]