added treasure event and messagepopup