Place the gun right beside you, pick it up and go right through the thugs.
map.placeObject(map.getPlayer().getX()-1, map.getPlayer().getY(), 'goldengun');