Hi there i'm using offline server but how to fix gold room with timer, 12 hours cool down is 43200 seconds but appears in ingame is 2681696506 seconds then I waited for 12 hours, when I logged in the game I could not enter the gold room because I had to wait after the time. sorry for my bad english,
if (gettimetick(0) < #GOLDROOM_CD) {
mes "[ ^C6A518Gold Room Assistant^000000 ]";
mes "You can only re-enter after ^FF0000"+(#GOLDROOM_CD - gettimetick(0))+"^000000 seconds.";
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 {
#GOLDROOM_CD = gettimetick(0) + (12 * 60 * 60); // 12 hours cooldown.
deltimer strnpcinfo(3)+"::OnKick";
addtimer (300 * 60 * 1000), strnpcinfo(3)+"::OnKick";
}
Zeny -= .zeny;
warp "ordeal_1-2",151,154;
end;
Question
Chasewalk
Hi there i'm using offline server but how to fix gold room with timer, 12 hours cool down is 43200 seconds but appears in ingame is 2681696506 seconds then I waited for 12 hours, when I logged in the game I could not enter the gold room because I had to wait after the time. sorry for my bad english,
if (gettimetick(0) < #GOLDROOM_CD) {
mes "[ ^C6A518Gold Room Assistant^000000 ]";
mes "You can only re-enter after ^FF0000"+(#GOLDROOM_CD - gettimetick(0))+"^000000 seconds.";
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 {
#GOLDROOM_CD = gettimetick(0) + (12 * 60 * 60); // 12 hours cooldown.
deltimer strnpcinfo(3)+"::OnKick";
addtimer (300 * 60 * 1000), strnpcinfo(3)+"::OnKick";
}
Zeny -= .zeny;
warp "ordeal_1-2",151,154;
end;
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.