Untested, let me know how it works out.
local offer_pos, reward_pos = Position(32342, 32236, 6), Position(32344, 32236, 6)
local config = {
[2154] = 2140,
[2155] = 2137,
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local tile = Tile(offer_pos)
if...