quest maps_items begin
state start begin
when login begin
loop_timer("check_pos", 60) -- check every 60 seconds, you can change check timer
end
when check_pos.timer begin
local Items = {479, 71018, 18, 279, 289} -- Items, you can add any items
local Maps = {1, 21, 41} -- map_index, you can add any map
for i=1, table.getn(Items, Maps), 1 do
if pc.count_item(Items[i]) >= 1 and pc.get_map_index(Maps[i]) then
syschat("WARNING: You Can't Login This Map With This Item"..item_name(Items[i])) -- message
warp_to_village()
end
end
end
end
end
I made it for you