// NPC made by aylad
if (created){
  setimg bigchestkey.gif;
  if(room=1){
    toweapons TerasInn-1;
  }
  if(room=2){
    toweapons TerasInn-2;
  }
  setstring roomtime,#v(time.hours+2):#s(time.minutes);
  timeout=.05;
}
if(timeout){
  if(!isweapon){
    destroy;
  }
  if(strequals(#w,TerasInn-1)||strequals(#w,TerasInn-2)){
    setstring W,bigchestkey.gif;
    if(keydown(6)){
      setplayerprop #c,Check Out: #s(roomtime);
    }
  }
  if(strequals(#s(roomtime),#v(time.hours):#s(time.minutes))){
    setstring roomtime,;
    destroy;
  }
  timeout=.05;
}