You can try this.
set .@time,gettimetick(1);
if( .@time < #GOLDROOM_CD ){
mes "[ ^C6A518Gold Room Assistant^000000 ]";
mes "You can only re-enter after ^FF0000"+(#GOLDROOM_CD - gettimetick(0))+"^000000 seconds.";
mes "Time Gold Room : "+#GOLDROOM_CD;
close2;
cutin "",255;
end;
}
else if (Zeny < .zeny) {
mes "[ ^C6A518Gold Room Assistant^000000 ]";
mes "Sorry, but you can't enter the room.";
close2;
cutin "",255;
end;
}
else {
set #GOLDROOM_CD,( .@time + ( 3600 * 12 ) ); // 12 hours cooldown.
deltimer strnpcinfo(3)+"::OnKick";
addtimer (300 * 60 * 1000), strnpcinfo(3)+"::OnKick";
}
Zeny -= .zeny;
warp "ordeal_1-2",151,154;
end;