Files
metin2-client/tools/server/ava2-followup/quest_compat.lua
T

18 lines
658 B
Lua

-- AVA2 GFquestlib.lua: the map lookup needed by new_quest_lv52.
-- Install only the missing helper; retain any server-specific implementation.
if is_destination_village == nil then
function is_destination_village(maps)
local map_lookup = {}
if maps == 1 then
map_lookup = {[1]='', [21]='', [41]=''}
elseif maps == 2 then
map_lookup = {[3]='', [23]='', [43]=''}
elseif maps == 3 then
map_lookup = {[1]='', [21]='', [41]='', [3]='', [23]='', [43]=''}
elseif maps == 65 then
map_lookup = {[65]=''}
end
return map_lookup[pc.get_map_index()]
end
end