The CrodoMud Questing System ____________________________ Fashioned by Muerte of CrodoMud telnet://crodomud.crodo.com:4000 The code contained within is intended to emulate a more complex questing system such as found on the 'interpreter diku' that runs Valhalla. CrodoQuests support dg driven interactive quests with upwards of hundreds of 'levels of completion' for each. It also supports a questing 'points' system. The quests are defined for the game through an olc interface, saved as a linked list to disk and are tracked for players via an array of signed bytes added to player_special_data_saved. (ie conversion). Most everything necessary for the system to function is contained within one source file, that being quest.c. Other code, mostly related to the necessary game hooks are contained in the other_code file. Hand patch as directed within. An introductory sample of the questing system is provided in the file sample.quest. A player who prays at the temple altar is given a nifty speech by Odin and given a quest to return to him the heart of the minotaur. The minotaur behaves differently, dependant on the player having accepted the quest or not. The heart erupts in flames if returned and dropped on the altar and the player is then rewarded. ____ 19H 100M 84V > quests You have not earned any quest points. You have accepted the following quests: Odin's Grace (Unfinished) My purity recognized by my deity, Odin! Oh what vengance I shall reap upon the foul beast which so defiled the temple. I shall wash it clean with the bastard's evil blood. 19H 100M 84V > qlist Quest Number [0] Quest Name [Null Quest] Quest Number [1] Quest Name [Odin's Grace] Quest Number [2] Quest Name [The Honor of Annie] Quest Number [3] Quest Name [A Child's Nightmare] Quest Number [4] Quest Name [Newbie School] 19H 100M 84V > qedit 1 Quest Editor V1.0 _______________________ Quest [1] [Odin's Grace] ____Task List____ 1) My purity recognized by my deity, Odin! Oh what vengance I shall reap upon the foul beast which so defiled the temple. I shall wash it clean with the bastard's evil blood. 2) Now that my revenge has been executed, I must offer this foul beast's still beating heart to purify Odin's temple. The just and pure of heart prevail over such evil. Odin be praised! C) Change Quest Name E) Edit a task N) New Task Q) Quit ____ Consider this to be mailer code. No support is offered so know what you are doing. If you do, you are more likely to be able to replicate what pieces I might have failed to include in code I haven't looked at in 2-3 years. As with most projects written ages ago there are a number of improvements obvious to me as I gather this material. Good luck with whatever modifications you might be inspired to make. Credit is nice but not necessary. ____System Requirements CircleMud with Oasis. (Was built with bpl17) DG Scripts Coffee A Clue ----Heart Object used in quest #18620 minotaur heart~ the Minotaur's heart~ The still beating heart of the Minotaur is lying here.~ ~ 12 65548 1 0 0 0 0 0 0 0 0 0 5.00 0 0 0 T 3060 E heart~ Larger than an average cow's heart, it still attempts to pump blood through a body to which it is no longer attached. ~