Advance Quest MOD

MOD files for Dragon Knight and Lost Cities. Most of this MODs are already included in Lost Cities Ver. LC3133.
User avatar
admin
Site Admin
Site Admin
United States of America
Posts: 29
Joined: 24 Apr 2018 22:31
Game Character Name: SirMichael
Location: Lost between Cities
Character Type: Rogue
Lost Cities Shield: Admin Only
Mood:
Gender:
Contact:

MODs Advance Quest MOD

Unread post by admin » 08 Nov 2020 11:54

Please install only the Steps for the first Quest. I have Four of the Five Quests completed, when all Five are completed I will upload the full code from all five quests with the required images.


===============================================================

ADVANCED QUEST MOD

THIS WILL ADD ONE ADVANCED QUEST TO YOUR DK GAME AND SHOW YOU HOW TO CREATE AND ADD MORE

// CREATED BY Lawrence B. McDonnell ( AKA: larou IN THE DRAGON KNIGHT FORUMS )
// E-MAIL ME: Larry_McD@hotmail.com

// EDITED, REFORMATTED AND ADDED CODE FOR 5 QUESTS by Michael D. McCart
// [AKA Archangel, Archangel Michael and Archangel Heavenweb].
// Email: samdalemccart@gmail.com
// Heavy Modified Dragon Knight [Called Lost Cities] game at https://michaelmccart.com/dk3133/
// Lost Cities and Dragon Knight Forum at https://michaelmccart.com/dkbb/

// IF YOU ARE HAVING ANY PROBLEMS WITH THIS MOD.
// PLEASE E-MAIL ME OR POST THE PROBLEM IN THE LOST CITIES/DRAGON KNIGHT FORUMS.
// PLEASE USE AND MODIFY AT WILL TO FIT YOUR GAME.
// I AM NOT A PROGRAMMER, SO I AM ASKING ANY COMMUNITY MEMBERS WHO DO. TO ADD A MONSTER FIGHTING OPITION
// AND A CHECK SO YOU ARE UNABLE TO CLAIM EXTRA GOLD COINS AND EXPERIENCE EACH TIME YOU ENTER A ROOM.

//// OPEN EXPLORE.PHP AND ADD THIS AT THE END BEFORE THE ?> ////
//// CHANGE AND ADD MORE OF THESE FOR EACH NEW QUEST YOU CREATE ////

// THIS STARTS THE ADVANCED QUEST 1 STONE BUILDING
$questchance = rand(1,600);
if ($questchance == 1) { // Sets the start location of the quest or random number
$action = "currentaction='Exploring',";
doquery("UPDATE {{table}} SET $action latitude='20', longitude='20', dropcode='0' WHERE id='".$userrow["id"]."' LIMIT 1", "users");// Sets were you leave the quest.
$page = "<table width=100%><tr><td class=title align=center>The Stone Building</td></tr></table><br />";
$page .= "<br /><div align=center>You have come across a old stone building that appears very ancient.<br />Perhaps at one time this was a part of a Small Castle or Large House. It grabs your attention and begs you to explore.";
$page .= "<br /><br />Do you wish to explore the Stone Building?<br /><br /><form action=index.php?do=quest1 method=post><input type=submit value='Enter Building' name=building class=myButton2></form><br />or<br /><br /><a href=index.php class=myButton2>Continue Exploring</a></div>";
display($page, "Stone Building"); die(); }
// THIS ENDS THE ADVANCED QUEST 1 STONE BUILDING


//// OPEN EXPLORE.PHP AND ADD THIS AT THE END BEFORE THE ?> ////
//// FOR FIVE QUESTS ADD THESE LINES ////

// THIS STARTS THE ADVANCED QUEST 1 STONE BUILDING
$questchance = rand(1,1);
if ($questchance == 1) { // Sets the start location of the quest
$action = "currentaction='Exploring',";
doquery("UPDATE {{table}} SET $action latitude='20', longitude='20', dropcode='0' WHERE id='".$userrow["id"]."' LIMIT 1", "users");// Sets were you leave the quest.
$page = "<table width=100%><tr><td class=title align=center>The Stone Building</td></tr></table><br />";
$page .= "<br /><div align=center>You have come across a old stone building that appears very ancient.<br />Perhaps at one time this was a part of a Small Castle or Large House. It grabs your attention and begs you to explore.";
$page .= "<br /><br />Do you wish to explore the Stone Building?<br /><br /><form action=index.php?do=quest1 method=post><input type=submit value='Enter the Stone Building' name=building class=myButton2></form><br />or<br /><br /><a href=index.php class=myButton2>Continue Exploring</a></div>";
display($page, "Stone Building"); die(); }
// THIS ENDS THE ADVANCED QUEST 1 STONE BUILDING


// THIS STARTS THE ADVANCED QUEST 2 CAVE
$questchance = rand(1,700);
if ($questchance == 1) { // Sets the start location of the quest or random number
$action = "currentaction='Exploring',";
doquery("UPDATE {{table}} SET $action latitude='30', longitude='30', dropcode='0' WHERE id='".$userrow["id"]."' LIMIT 1", "users");// Sets were you leave the quest.
$page = "<table width=100%><tr><td class=title align=center>The Cave</td></tr></table><br />";
$page .= "<br /><div align=center>A giant Cave looms before you. Its dark, wet and you are unable to see to far into it. Unknown dangers may await you!";
$page .= "<br /><br />Do you wish to explore the Cave?<br /><br /><form action=index.php?do=quest2 method=post><input type=submit value='Enter The Cave' name=building class=myButton2></form><br />or<br /><br /><a href=index.php class=myButton2>Continue Exploring</a></div>";
display($page, "Stone Building Quest 1"); die(); }
// THIS ENDS THE ADVANCED QUEST 2 CAVE


// THIS STARTS THE ADVANCED QUEST 3 WATERFALL
$questchance = rand(1,800);
if ($questchance == 1) { // Sets the start location of the quest or random number
$action = "currentaction='Exploring',";
doquery("UPDATE {{table}} SET $action latitude='-30', longitude='30', dropcode='0' WHERE id='".$userrow["id"]."' LIMIT 1", "users");// Sets were you leave the quest.
$page = "<table width=100%><tr><td class=title align=center>The Waterfall</td></tr></table><br />";
$page .= "<br /><div align=center>In front of you is one of the largest, if not the<br />largest Waterfall you have ever seen! You take a closer look and find it<br />has a Entrance inside the Mountain that the Waterfall flows from.<br />";
$page .= "<br /><br />Do you wish to explore under the Waterfall?<br /><br /><form action=index.php?do=quest3 method=post><input type=submit value='Enter the Waterfall' name=building class=myButton2></form><br />or<br /><br /><a href=index.php class=myButton2>Continue Exploring</a></div>";
display($page, "Stone Building Quest 1"); die(); }
// THIS ENDS THE ADVANCED QUEST 3 WATERFALL


// THIS STARTS THE ADVANCED QUEST 4 TOWER CASTLE
$questchance = rand(1,900);
if ($questchance == 1) { // Sets the start location of the quest or random number
$action = "currentaction='Exploring',";
doquery("UPDATE {{table}} SET $action latitude='30', longitude='-30', dropcode='0' WHERE id='".$userrow["id"]."' LIMIT 1", "users");// Sets were you leave the quest.
$page = "<table width=100%><tr><td class=title align=center>The Tower Castle</td></tr></table><br />";
$page .= "<br /><div align=center>You have seen this Tower from miles away. As you come upon it,<br />it is a Tall Stone Tower. Sometimes, in the past, this Stone Towers were used as frontier Castles.<br />Used to protect the surround lands from bandits and monsters.";
$page .= "<br /><br />Do you wish to explore the Tower Castle?<br /><br /><form action=index.php?do=quest4 method=post><input type=submit value='Enter the Tower Castle' name=building class=myButton2></form><br />or<br /><br /><a href=index.php class=myButton2>Continue Exploring</a></div>";
display($page, "Stone Building Quest 1"); die(); }
// THIS ENDS THE ADVANCED QUEST 4 TOWER CASTLE


// THIS STARTS THE ADVANCED QUEST 5 SWAMP
$questchance = rand(1,1000);
if ($questchance == 1) { // Sets the start location of the quest or random number
$action = "currentaction='Exploring',";
doquery("UPDATE {{table}} SET $action latitude='-30', longitude='-30', dropcode='0' WHERE id='".$userrow["id"]."' LIMIT 1", "users");// Sets were you leave the quest.
$page = "<table width=100%><tr><td class=title align=center>The Swamp</td></tr></table><br />";
$page .= "<br /><div align=center>You come upon a huge Swamp that seems to go on and on as far as the eye<br />can see. It some how seems different that other<br />Swamps you have seen. Do you want to explore?";
$page .= "<br /><br />Do you wish to explore the Swamp?<br /><br /><form action=index.php?do=quest5 method=post><input type=submit value='Enter the Swamp' name=building class=myButton2></form><br />or<br /><br /><a href=index.php class=myButton2>Continue Exploring</a></div>";
display($page, "Stone Building Quest 1"); die(); }
// THIS ENDS THE ADVANCED QUEST 5 SWAMP





//// YOU CAN REPLACE THIS LINE IN THE ABOVE SCRIPTS ////

if($userrow["latitude"] == 2 & $userrow["longitude"] == 0) { // Sets the start location of the quest

//// WITH THESE LINES TO MAKE IT A RANDOM QUEST ////

$questchance = rand(1,600);
if ($questchance == 1) {

//// CLOSE AND SAVE EXPLORE.PHP ////



//// OPEN INDEX.PHP AND ADD THESE LINES SOME WERE AFTER ALL THE TOWN FUNCTIONS ////
//// ADD A NEW FUNCTION HERE FOR EACH NEW QUEST ////

// THIS STARTS THE ADVANCED QUESTS FUNCTIONS
elseif ($do[0] == "quest1") { include('quests.php'); quest1(); }
// THIS ENDS THE ADVANCED QUESTS FUNCTIONS

//// IF YOU WANT TO ADD 5 DIFFERENT QUESTS

// THIS STARTS THE ADVANCED QUESTS FUNCTIONS - TO ADD 5 QUESTS
elseif ($do[0] == "quest1") { include('quests.php'); quest1(); }
elseif ($do[0] == "quest2") { include('quests2.php'); quest2(); }
elseif ($do[0] == "quest3") { include('quests3.php'); quest3(); }
elseif ($do[0] == "quest4") { include('quests4.php'); quest4(); }
elseif ($do[0] == "quest5") { include('quests5.php'); quest5(); }
// THIS ENDS THE ADVANCED QUESTS FUNCTIONS - TO ADD 5 QUESTS

//// CLOSE AND SAVE INDEX.PHP ////


//// FOR ONE QUEST ////
//// UPLOAD INDEX.PHP, EXPLORE.PHP AND QUESTS.PHP TO YOUR GAME FOLDER. ////

//// FOR FIVE QUESTS - QUESTS2 THRU QUESTS5 ARE PLACEHOLDERS ONLY!. ////
//// YOU MUST EDIT VARS IN EACH QUESTS TO MATCH QUEST # AND NAME!. ////
//// UPLOAD INDEX.PHP, EXPLORE.PHP AND QUESTS.PHP, QUESTS2.PHP, QUESTS3.PHP, ////
//// QUESTS4.PHP AND QUESTS5.PHP, TO YOUR GAME FOLDER. ////

//// PLAY THE GAME AND HAVE FUN ////

============================================================================

Download: https://www.michaelmccart.com/downloads ... st-MOD.zip 4KB

Post Reply