Okay, I want to use this system as a base to do something ... different.
I run a website for an MMORPG game called MapleStory - basically in the game it has quests (which require the use to complete a certain amount of tasks) and they then are rewarded.
I think your system could server well as a base. I will simply edit the word QUIZ to QUEST and remove any levels of right/ wrong -
Here is my question though: I ONLY want to reward users who have 100% correct on the imput options of the quiz. I think the rest I can handle changing, but can someone give me some code on how I might be able to edit this? I can maneuver around and delete php/tpl files, just not create
Thanks,
http://www.florinabeach.com is the website if you want to get an idea of how my board id setup. I havn't yet installed the quiz system.
requesting info on possible code change
Moderator: CricketMX Forum Moderators
Not tested, but might work:
in quiz.php, find:
BEFORE, ADD
Later, FIND
AFTER, ADD
Let me know how you go.
in quiz.php, find:
Code: Select all
if( $total_cash > 0 || $total_cash == 0 )
{
$cash_language_variable = sprintf($lang['Quiz_cash_total_result_gain'], $total_cash, $actual_cash_name['cash_name']);
Code: Select all
if( $percentage == 100 )
{
Code: Select all
if( !$db->sql_query($cash_sql) )
{
message_die(GENERAL_ERROR, 'Unable to execute cash update', '', __LINE__, __FILE__, $cash_sql);
}
Code: Select all
}
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)