I'm sure you can do this on 2.3 using the [@TAKEONITEM(PKItem)] and CHECKPKPOINT commands. Try this i don't have 2.3 to test
QFunction-0.txt add
[@TAKEONITEM(PKItem)]
#IF
CHECKPKPOINT 300
#ACT
break
#ELSEACT
TAKEW PKItem 1
GIVE PKItem 1
SENDMSG 6 "You need to have at least 300 PK Points"
Replace PKItem with your items name
I don't work with 2.3 but when i had a little play with it a while back i used the @TAKEONITEM command and it worked fine.