Hi Good day, I am posting this hoping someone could help me updating my goldroom script. I'm trying to add timer of 8 hours daily limit in my gold room and was able to do so, however if I logout and try to re-enter the npc, Npc rejects. script is posted below,
Thank you and more power.
skycity,117,217,6 script Piso Dungeon 540,{
mes "[Piso Dungeon]";
mes "You only have 8 hours per day to farm inside my dungeon";
next;
mes "Do you want to go inside?";
if( select("Enter Piso Dungeon:Cancel") == 1 )
if( #Daily == gettime(5)|| query_sql("SELECT login.account_id FROM login LEFT JOIN `char` ON login.account_id=`char`.account_id WHERE login.last_ip=(SELECT last_ip FROM login WHERE account_id="+getcharid(3)+") AND `char`.online=1", .@account_id) > 0 )
next;
mes "You've already consumed your 8 hours today. Pleace come back tomorrow.";
else{
mes "[Piso Dungeon]";
mes "Please be reminded that all card effects are disabled in this map.";
next;
set #Daily,gettime(5);
addtimer 28800000,strnpcinfo(0)+"::OnTimeLimit";
atcommand "@alootid reset";
atcommand "@alootid +35405";
atcommand "@autostore 15";
warp "ba_lib",160,6;
}
close;
OnTimeLimit:
message strcharinfo(0),"Time's Up.";
sleep2 3000;
warp "SavePoint",0,0;
end;
OnInit:
waitingroom " Piso Dungeon",0;
end;
}
Question
agamanaros
Hi Good day, I am posting this hoping someone could help me updating my goldroom script. I'm trying to add timer of 8 hours daily limit in my gold room and was able to do so, however if I logout and try to re-enter the npc, Npc rejects. script is posted below,
Thank you and more power.
skycity,117,217,6 script Piso Dungeon 540,{ mes "[Piso Dungeon]"; mes "You only have 8 hours per day to farm inside my dungeon"; next; mes "Do you want to go inside?"; if( select("Enter Piso Dungeon:Cancel") == 1 ) if( #Daily == gettime(5)|| query_sql("SELECT login.account_id FROM login LEFT JOIN `char` ON login.account_id=`char`.account_id WHERE login.last_ip=(SELECT last_ip FROM login WHERE account_id="+getcharid(3)+") AND `char`.online=1", .@account_id) > 0 ) next; mes "You've already consumed your 8 hours today. Pleace come back tomorrow."; else{ mes "[Piso Dungeon]"; mes "Please be reminded that all card effects are disabled in this map."; next; set #Daily,gettime(5); addtimer 28800000,strnpcinfo(0)+"::OnTimeLimit"; atcommand "@alootid reset"; atcommand "@alootid +35405"; atcommand "@autostore 15"; warp "ba_lib",160,6; } close; OnTimeLimit: message strcharinfo(0),"Time's Up."; sleep2 3000; warp "SavePoint",0,0; end; OnInit: waitingroom " Piso Dungeon",0; end; }
Link to comment
Share on other sites
0 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.