Jump to content
  • 0

Goldroom with Timer


agamanaros

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  38
  • Reputation:   0
  • Joined:  03/26/16
  • Last Seen:  

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;
	
}

 

Edited by agamanaros
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.

×
×
  • Create New...