I have this script where premium accounts can only enter 5minutes per day but when I warped into the room, I got warped out after a few seconds only.
mapname,119,159,4 script Premium Account::premiummap 422,{
if( isPremium() == 0 ) goto NotPremium;
mes "[Gatekeeper]";
mes "Where do you want to go?";
switch(select("Private Drop Event"))
{
case 1:
if( #Daily == gettime(5) ) {
mes "You can only enter once a day";
close;
}
set #Daily,gettime(5);
addtimer 300000,strnpcinfo(3)+"::OnTimeLimit";
warp "new_zone04",60,179;
}
OnTimeLimit:
message strcharinfo(0),"Time's Up.";
sleep2 3000;
warp "SavePoint",0,0;
end;
NotPremium:
mes "[Gatekeeper]";
mes "You are not a Premium Account Holder!";
close;
OnInit:
while( 1 ){
if( getmapusers("new_zone04") )
makeitem 969,1,"new_zone04",rand(8,31),rand(168,191);
sleep 100;
}
end;
}
Question
Linkin Park
I have this script where premium accounts can only enter 5minutes per day but when I warped into the room, I got warped out after a few seconds only.
Can anyone help?
Fixed, I just forgot the close; part lol. "
This part however is not working
Edited by RaGEROLink 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.