[5375] One time a day

10/10/2011 04:26 jorgenl#1
Hey all,

who can tell me how to make a quest one time a day?
10/10/2011 08:51 pro4never#2
record if the client has done it within the last 24 hours when trying to start/complete the quest.


IE: New database fields/tables depending on how you want to handle it!


Search, there's loads of examples (look at lottery, it's the most commonly asked/answered version of the same question)

#Moved

Post in the PRIVATE SERVER section, not the general conquer one please.
10/10/2011 20:08 diedwarrior#3
As pro4never said.
I'll just make it easier.
For i.e you want to make an event called X1X.
You'll make a database field called X1X, If its 1 then the entity has already done the quest. if its 0 then he hasnt done it, and make it restart every 24 hours.
also make the npc Change/Check if the entity X1X is 1 or 0.
10/10/2011 20:14 BaussHacker#4
Code:
if (DateTime.Now >= Client.LastQuest.AddHours(24))
{
Client.LastQuest = DateTime.Now;

//available

}
else
{

//not available

}
.
10/10/2011 20:45 Sp!!ke#5
that's another stupid question, I can't understand why they make 1000 threads with stupid questions...
10/10/2011 21:01 BaussHacker#6
Quote:
Originally Posted by Sp!!ke View Post
that's another stupid question, I can't understand why they make 1000 threads with stupid questions...
And I can't understand why you make 1000 stupid posts.
10/10/2011 21:07 diedwarrior#7
Quote:
Originally Posted by Sp!!ke View Post
that's another stupid question, I can't understand why they make 1000 threads with stupid questions...
Mate no one was born a coder, you gotta ask to learn, you gotta watch to learn and the most important is.. you gotta learn to learn.
10/17/2011 22:45 -Sensei-#8
I prefer for lastdragonball use/.?
10/23/2011 21:21 jackpotsvr#9
Quote:
Originally Posted by Sp!!ke View Post
that's another stupid question, I can't understand why they make 1000 threads with stupid questions...
His total posts are just 6 in 1 year, I don't know watcha cryin'?