Hey all
So i sat down the other day, wanting to implement some kind of questing framework in my current bot, and as i saw some threads a while ago with some questions regarding how to determine whether a quest was completed, i decided to release my version (even though it might not be very pretty, and i didn't really bother with naming variable names properly).
It currently determines: id's, names, completed status and number of rewards to choose from when turning in the quest and whether the player has a specific quest.
Hope it might help someone.
Link to the trunk:
QuestLog source
how i currently keep my quest log:
PHP Code:
public static List<Quests.PlayerQuest> QuestLog
{
get
{
List<Quests.PlayerQuest> temp = new List<Quests.PlayerQuest>();
for (int i = 0; i < Quests.NumQuestLogEntries; i++)
{
Quests.PlayerQuest qe = new Quests.PlayerQuest(i);
if (!qe.IsHeader)
{
temp.Add(qe);
}
}
return temp;
}
}
Note: I haven't been able to test all cases of the switch statement properly, so it might not work 100%.
Big credits to Tanaris and Apoc for posting about how to determine what quests has allready been completed!