Author Topic: No time waiting for quests  (Read 822 times)

Sarisel

  • Traveller
  • *
  • Posts: 12
    • View Profile
No time waiting for quests
« on: September 01, 2007, 09:26:42 am »
I have a idea how to make the quest system more improved for people.
The problem now is: player A get a quest and player B must wait if the time for the quest is running out to get a quest on the same NPC.

Now the idea:
Each character have 10 entrys in his database and one for a pointer

Database QuestForEachCharacter
Nr.QuestNrTimestamp
0#11 hour in future
1#162 week in future
>2#64timeout
...
9#0(no quest)

The player solved a new quest:
pointer++;
if (pointer > 9)
  pointer = 0;
QuestNr = Nr
Timestamp = now + time waiting for this quest

Now the player want to make quest #1 again, the server look into the character table and find quest #1 and see he must wait for the quest "No task for you today"
Player ask for a quest:
for (i = 0; i <= 9; i++) {
  if (quest == QuestNr) {
    if ((timestamp < now) || (timestamp > now + 1 month))
      "You can help me"
    else
      "Sorry, no task for you"
  }
  else
    "You can help me"
}

If the player make 10 other quest's, he is able to get the same quest again or he try the same quest in one month or the time you want for maximum of timeout.
Don't feed the trolls!