;; Hope this does the job for you 2 npcs one to get into house using key or ticket
;; One to issue tickets to the keyholder of the house
;; This one is to teleport you to the house
[@main]
Hello there i am Rasdak, i can teleport you to your house\
IF you have your housekey or an invite.\
Would you like me to teleport you now?\\
<Take me to my house../@keycheck>\
<I was invited, Let me in../@ticket>\
<Cancel/@exit>\
[@keycheck]
#IF
checkitem "ITEM TO ACT AS KEY" 1
#ACT
mapmove "MAPNAME" "X-COORDS" "Y-COORDS"
break
#ELSESAY
You either dont have your housekey on you or\
You dont have a house..\ \
<Exit/@exit>\
[@ticket]
#if
checkitem "ITEM TO ACT AS TICKETS" 1
#act
mapmove "MAPNAME" "X-COORDS" "Y-COORDS"
break
#elsesay
You dont have a invite!\
Stop wasting my time..\\
<Exit/@exit>