Jump to content

Question

Posted

Hi,

I want to make a Gold room where players are allowed only for a specific time per day. Let's say PlayerA used the gold room for 1hour on Monday, after the 1hr has passed, he will be warped back to his savepoint and then won't be able to use the gold room until Tuesday 12:01am..

How to make this?

2 answers to this question

Recommended Posts

Posted (edited)
prontera,156,182,4 script gold room 100,{
mes "[gold room]";
if(#timer == gettime(4)) {
 switch(#timer) {
case 0: mes "You wont be able to use the gold room until monday 12:01am"; break;
case 1: mes "You wont be able to use the gold room until tuesday 12:01am"; break;
case 2: mes "You wont be able to use the gold room until wednesday  12:01am"; break;
case 3: mes "You wont be able to use the gold room until thursday 12:01am"; break;
case 4: mes "You wont be able to use the gold room until friday 12:01am"; break;
case 5: mes "You wont be able to use the gold room until saturday 12:01am"; break;
case 6: mes "You wont be able to use the gold room until sunday 12:01am"; break;
 }
close;
}
mes "Ok i will warp you now to the gold room";
next;
warp "prontera",0,0;
attachnpctimer strcharinfo(0);
initnpctimer;
set #timer, gettime(4);
close;

OnTimer3600000: //1hour
warp "prontera",0,0;
dispbottom "time is up you are now warped!";
stopnpctimer;
end;
}

Edited by deathscythe13

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...