I have created data/actions/scripts/umbraldoor1.lua with this code:
function
if item.uid == 6666 then
if getPlayerItemCount(cid, 22397) >= 1 and getPlayerItemCount(cid, 22396) >= 25 then
doPlayerRemoveItem(cid, 22397, 1)
doPlayerRemoveItem(cid, 22396, 25)
else...