We had several quests on endacia, now this requires a menial understanding of the java programming language. If you do not know java, you should not be running a private server. I may post a detailed source example when I have the time, but at the moment it is just a concept, and most people should understand how to write a quest after this. If you are one of those people who just C+Ps tutorial source codes then F*k off.
Now basically we have one public integer which we will use as a counter. For example
Public Int Quest1;
In the player file, the default value of this will be 0.
0 means the player has not started the quest.
Each new "event" in the quest will increase the status by one.
For example
If the player talks to an NPC and accepts the quest
if(quest1 == 0 && TalkstoNPC)
Quest1 == 1
You can continue this until you have finished the quest, after that you can do a simple boolean.
if(Quest1 == *finished int* )
quest1_Finished = true;
now you can just use the boolean for whenever you want to restrict an individual to finishing the quest, such as killing specific monsters, going to certain areas, etc.
Now basically we have one public integer which we will use as a counter. For example
Public Int Quest1;
In the player file, the default value of this will be 0.
0 means the player has not started the quest.
Each new "event" in the quest will increase the status by one.
For example
If the player talks to an NPC and accepts the quest
if(quest1 == 0 && TalkstoNPC)
Quest1 == 1
You can continue this until you have finished the quest, after that you can do a simple boolean.
if(Quest1 == *finished int* )
quest1_Finished = true;
now you can just use the boolean for whenever you want to restrict an individual to finishing the quest, such as killing specific monsters, going to certain areas, etc.