Jump to content
MakeWebGames

MDK666

Members
  • Posts

    268
  • Joined

  • Last visited

Everything posted by MDK666

  1. Well everyone im gonna be showing off my game, its not at its full potential at the moment but its getting there day by day, its 3 days old so yea, if you have comments post them in here or on my game forums. Thanks MDK666 Title : The One Link : http://www.the-dark-one.co.cc Description: Every night, there are demons and monsters who haunt the night, Vampires, and Werewolves who war and kill one another, until the last one fights, which is the one and only who can stop the war between the beasts who drink blood to live, and the one who kill for the sport, who will be The One to stop the war?
  2. Re: [requests] Weapon & Armor Qualitys, & Bonuses i had it on my mind for awhile now and well i just dont know where to start
  3. Re: [mccode v2] New re-designed bank.php!! Money & Crystals in 1 bank   you have to add the sql to your users table which is: ALTER TABLE `users` ADD `bankcrystals` INT( 11 ) NOT NULL DEFAULT '0'
  4. Re: [mccode V2] Contact Us (VERY SIMPLE)   Give the lad a Break. He's contributing at least. Even if it isnt php its a start in the right direction. Instead of penalising him explain what you would do to make it better or even how it would look. True, sorry, im just a bit annoyed at the moment. hmmm scary i hope my wife doesnt come and annoy me also :-D
  5. Re: [mccode V2] Contact Us (VERY SIMPLE) hmmmmm not bad for html itself but maybe this one would do better for you :-D   <?php session_start(); include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } $q=$db->query("SELECT userid FROM users"); $membs=$db->num_rows($q); $q=$db->query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC"); $online=mysql_num_rows($q); $q=$db->query("SELECT userid FROM users WHERE gender='Male'"); $male=$db->num_rows($q); $q=$db->query("SELECT userid FROM users WHERE gender='Female'"); $fem=$db->num_rows($q); $q=mysql_query("SELECT * FROM users WHERE laston<unix_timestamp()-86400*10 ORDER BY laston DESC",$c); $act=mysql_num_rows($q); $perctact = $membs - $act; $pact = round( ($perctact/$membs)*100, 0 ); print <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{$set['game_name']}</title> <style> body { background: #2D2D2D; font-family:Verdana, fantasy; font-size:13px; color: black; scrollbar-base-color: black; scrollbar-arrow-color: red; scrollbar-DarkShadow-Color: black; } a:visited,a:active,a:link { color: white;text-decoration: none; } a:hover { color: red;text-decoration: overline underline;background: none; } table,tr,td { font-family:Palatino Linotype; color: black;font-size: 12px; } .button { font-family:Verdana, fantasy; font-size:13; color:#FFFFFF; background-color: red; } input,textarea,dropdown{ font-family:Verdana, fantasy; font-size:13; color: #ffffff; background-color: #000000; border: 1px solid; } textarea,.submit input{ font-family:Verdana, fantasy; font-size:13; color:#ffffff; background-color: white; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#DEDEDE; height:22px; } .table3 td { background-color:#CCCCCC; } td .alt { background-color:#EEEEEE; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } </style></head> <body onload="getme();"> <center><table width=1018 border=0 cellpadding=0 cellspacing=0><tr><td background="top.png" height=223 width=1018> <table width=1000 height="159"><td width=5></td></td> <td align='left' width="688" height='147' valign="top"> <image src='banner.png'></td> <td><center><font color=white>Welcome Everyone To A Newly Re-designed The One Game I Hope Everyone Enjoys The New Look As Much As The Staff And Memebers Of The Game Does</font> </center></td></tr></table> <table width=1000><tr><td width=5></td> <td>|</td><td><center>[url='login.php']Login[/url]</center></td><td>|</td> <td>|</td><td><center>[url='register.php']Register[/url]</center></td><td>|</td> <td>|</td><td><center>[url='tos.php']Terms Of Service[/url]</center></td><td>|</td> <td>|</td><td><center>[url='privacy.php']Privacy Policy[/url]</center></td><td>|</td> <td>|</td><td><center>[url='screenshots.php']Screenshots[/url]</center></td><td>|</td> <td>|</td><td><center>[url='contact.php']Contact Us[/url]</center></td><td>|</td></tr></table></center></td> </tr> <td background='middle.png'> <table width=100% border=0 cellpadding=0 cellspacing=0> <tr valign="top"><td width=10></td><td width=145> EOF; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $year=date('Y'); print "<center> <form name='Tick'> <div id='clock' name='clock'></div> </form> <script> <!-- function show(){ var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() var dn='AM' if (hours>12){ dn='PM' hours=hours-12 } if (hours==0) hours=12 if (minutes<=9) minutes='0'+minutes if (seconds<=9) seconds='0'+seconds document.getElementById('clock').innerHTML =hours+':'+minutes+':' +seconds+' '+dn setTimeout('show()',1000) } show() //--> </script><table width=145 border=0><tr> <th>[b]<u><big><font color=black>Game Stats</big>[/b]</u></th></tr> <tr><td>"; print"<center><font color=#000000 size=3>Status: <font color=green>Online</font> Members: $membs Players Online:<font color=green> $online</font> Males: $male Females: $fem Active Players: $pact<font color=red>%</font></font></center></td></tr></table> </td><td width=10></td><td width=800><center> <table width=80%> <tr> <td>"; if(file_exists('ipbans/'.$IP)) { print"[b]<font color=red size=+1>Your IP has been banned, you may still login but you will not be able to do anything nor will you be able to register for a new account.</font>[/b] "; } print "<fieldset><legend><font color=black>Contact Us</font></legend><center> <form method=post action='mailto:someone@$nailmail.com' enctype='text/plain'> <input type='text' name='username'> :Name <input type='text' name='email'> :Email Comments: <textarea name='comments' rows='10' wrap='hard'></textarea> <input name='redirect' type='hidden' value='login.php'> <input name='next_url' type='hidden' value='login.php'> <input type='submit' value='Send'> <input type='reset' value='Clear'> </form></center></fieldset></td></tr></table> "; print <<<OUT <td width=25></td></tr> </table> <tr><td><image src='bottom.png'></td></tr></table> </body> </html> OUT; ?>   before you use this script i suggest you to change: Welcome Everyone To A Newly Re-designed The One Game I Hope Everyone Enjoys The New Look As Much As The Staff And Memebers Of The Game Does (on line 201) and <form method=post action='mailto:[email protected]' enctype='text/plain'> (on line 272)
  6. ok everyone im stuck now :cry: i have very good ideas for a mod but no idea on how or where to start it if someone could help or code it they can sell it or whatever they want with it as long as i get a copy :-D ok well here it is: --------------------------------------------------------------------------------------------------------------------------- Qualitys: Quality Types: Common, Refined, Unique, Elite, Super, Godly Quality Colors: It Changes the color of the weapon name as the following, Common = Same Color Refined = Green Unique = Blue Elite = Pink Super = Red Godly = White ------------------------------------------------------------------------------------------------------------------------------- The weapons or armor will have a quality name beside them for example: Super Bloody Dragon Sword it would look like that. -------------------------------------------------------------------------------------------------------------------------------- then there would be certain/special item called redstones or whatever the name would be to where you can either create the item in staff panel and select the effect, or something like the crystal shop mod, the redstone would have a 50% succession on changeing the quality, and if they were to use 10 Redstones it would give them a 100% succession on changeing the quality. ---------------------------------------------------------------------------------------------------------------------------------- now as for keeping from people becomeing gods in the game the first few days, this would be in the items for when they buy a Redstone they would have a 50% chance of getting a fake stone or a real redstone which kinda stops them from getting low weapons to godly weapons the first day they play.... --------------------------------------------------------------------------------------------------------------------------------- Bonuses: bonus types: adding +1 through +50 beside the weapon &/or armor name. ----------------------------------------------------------------------------------------------------------------------------------- ok what this would do is add a extra 20 attack or defence to the item with a 50% succession on usage, same as the above, still need 10 stone to have 100% succession, when they have +10 on there item they need to have 10 stones that will have 65% succession on makeing a +11 and on +20 they would need 20 stones with a 75% succession, and so forth, basically the same as the redstones above. well everyone those are my mod ideas, me and illusions had discussed it last night and well she explained it somewhat how to do it in a different way but not exactly what i was looking for so if anyone could help me or even code it and give me a copy ill greatly appreciate it..
  7. Re: [mccode v2] New re-designed bank.php!! Money & Crystals in 1 bank ok everyone heres the updated and working script as of today, a few people had brought up to me that the amount in the bank or being deposited and etc wasnt showing up so after i had went through it all and tested it about 20 times with some small edits its not in tip top shape.   <?php include "globals.php"; print "<h3>Community Bank</h3>"; if($ir['bankmoney']>-1) { switch($_GET['action']) { case "depositmon": depositmon(); break; case "withdrawmon": withdrawmon(); break; case "depositcry": depositcry(); break; case "withdrawcry": withdrawcry(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>49999) { print "Congratulations, you bought a bank account for \$50,000 & 100crystals [url='bank.php']Start using my account[/url]"; $db->query("UPDATE users SET money=money-50000,crystals=crystals-100,bankmoney=0 WHERE userid=$userid"); } else { print "You do not have enough money, or crystals to open an account. [url='explore.php']Back to town...[/url]"; } } else { print "Open a bank account today, just \$50,000 and 100 crystals! [url='bank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db, $ir,$c,$userid,$h; print "\n[b]You currently have \${$ir['bankmoney']} money & {$ir['bankcrystals']} crystals in the bank.[/b] At the end of each day, your bank balance will go up by 2%. <table width='75%' cellspacing=1 class='table'> <tr> <td width='50%'>[b]Deposit Money[/b] It will cost you 15% of the money you deposit, rounded up. The maximum fee is \$3,000.<form action='bank1.php?action=depositmon' method='post'> Amount: <input type='text' name='depositmon' value='{$ir['money']}' /> <input type='submit' value='Deposit' /></form></td><td> [b]Withdraw Money[/b] There is no fee on withdrawals.<form action='bank1.php?action=withdrawmon' method='post'> Amount: <input type='text' name='withdrawmon' value='{$ir['bankmoney']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table> <table width='75%' cellspacing=1 class='table'> <tr> <td width='50%'>[b]Deposit Crystals[/b] It will cost you 15% of the crystals you deposit, rounded up. The maximum fee is \3 crystals.<form action='bank1.php?action=depositcry' method='post'> Amount: <input type='text' name='depositcry' value='{$ir['crystals']}' /> <input type='submit' value='Deposit' /></form></td><td> [b]Withdraw Crystals[/b] There is no fee on withdrawals.<form action='bank1.php?action=withdrawcry' method='post'> Amount: <input type='text' name='withdrawcry' value='{$ir['bankcrystals']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function depositmon() { global $db,$ir,$c,$userid,$h; $_POST['depositmon']=abs((int) $_POST['depositmon']); if($_POST['depositmon'] > $ir['money']) { print "You do not have enough money to deposit this amount."; } else { $fee=ceil($_POST['depositmon']*15/100); if($fee > 3000) { $fee=3000; } $gain=$_POST['depositmon']-$fee; $ir['bankmoney']+=$gain; $db->query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['depositmon']} where userid=$userid"); print "You hand over \${$_POST['depositmon']} to be deposited, after the fee is taken (\$$fee), \$$gain is added to your account. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank1.php']> Back[/url]"; } } function withdrawmon() { global $db,$ir,$c,$userid,$h; $_POST['withdrawmon']=abs((int) $_POST['withdrawmon']); if($_POST['withdrawmon'] > $ir['bankmoney']) { print "You do not have enough banked money to withdraw this amount."; } else { $gain=$_POST['withdrawmon']; $ir['bankmoney']-=$gain; $db->query("UPDATE users SET bankmoney=bankmoney-$gain, money=money+$gain where userid=$userid"); print "You ask to withdraw $gain, the banking lady grudgingly hands it over. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank1.php']> Back[/url]"; } } function depositcry() { global $db,$ir,$c,$userid,$h; $_POST['depositcry']=abs((int) $_POST['depositcry']); if($_POST['depositcry'] > $ir['crystals']) { print "You do not have enough crystals to deposit this amount."; } else { $fee=ceil($_POST['depositcry']*15/100); if($fee > 30) { $fee=30; } $gain=$_POST['depositcry']-$fee; $ir['bankcry']+=$gain; $db->query("UPDATE users SET bankcrystals=bankcrystals+$gain, crystals=crystals-{$_POST['depositcry']} where userid=$userid"); print "You hand over {$_POST['depositcry']} crystals to be deposited, after the fee of $fee crystals is taken , $gain crystals was deposited to your account. [b]You now have \${$ir['crystals']} crystals in the bank.[/b] [url='bank1.php']> Back[/url]"; } } function withdrawcry() { global $db,$ir,$c,$userid,$h; $_POST['withdrawcry']=abs((int) $_POST['withdrawcry']); if($_POST['withdrawcry'] > $ir['bankcrystals']) { print "You do not have enough banked crystals to withdraw this amount."; } else { $gain=$_POST['withdrawcry']; $ir['bankcrystals']-=$gain; $db->query("UPDATE users SET bankcrystals=bankcrystals-$gain, crystals=crystals+$gain where userid=$userid"); print "You ask to withdraw $gain crystals, the banking lady grudgingly hands it over. [b]You now have {$ir['bankcrystals']} crystals in the bank.[/b] [url='bank1.php']> Back[/url]"; } } $h->endpage(); ?>
  8. Re: [mccodes v1 & v2] Click Count which parts of your site isnt being used ? thats actually the same thing as a site crawler which i had used in the past to keep track on which files were being clicked and viewed
  9. Re: [mccode v2] Not much of a MOD more of a great addon.. Private Messenger thnks for the great mod illusions even though i had to go through and fix the sqls to get all the errors out :-P but anyways i need help on showing when users are online and offline in the messenger i have a person whos beta testing it with me and it shows them offline in the messenger when there online so if know a way to fix this then let me know, also im gonna be working on some new themes for it also
  10. Re: [mccode v2] Not much of a MOD more of a great addon.. Private Messenger well well well i see that everyone who installed php121 by illusions standards came out with mysql_fetch_rows() errors in the messenger, now after about 1 hour of going through all the sqls possible includeing the updates and etc. i have finally gotten rid of all the errors this is all because illusions had not posted all the sqls for the files, below are all the updated sqls needed   CREATE TABLE `php121_blocks` ( `b_id` int(10) NOT NULL auto_increment, `b_user` int(10) NOT NULL default '0', `b_block` int(10) NOT NULL default '0', PRIMARY KEY (`b_id`) ) TYPE=MyISAM ; CREATE TABLE `php121_config` ( `config_name` varchar(255) NOT NULL default '', `config_value` varchar(255) NOT NULL default '', PRIMARY KEY (`config_name`) ) TYPE=MyISAM; INSERT INTO `php121_config` VALUES ('server_timezone', '0'); INSERT INTO `php121_config` VALUES ('default_language', 'English'); CREATE TABLE `php121_requests` ( `r_id` int(11) NOT NULL auto_increment, `roomid` int(11) default NULL, `r_to` int(11) NOT NULL default '0', `r_from` int(11) NOT NULL default '0', `r_time` int(11) NOT NULL default '0', `r_result` tinyint(1) NOT NULL default '0', `r_update_time` int(11) NOT NULL default '0', `r_type` int(1) NOT NULL default '0', PRIMARY KEY (`r_id`) ) TYPE=MyISAM ; CREATE TABLE `php121_control` ( `id` int(1) NOT NULL default '1', `CL_LastModified` int(11) NOT NULL default '0', `CL_UpdateKey` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ) TYPE=MyISAM; INSERT INTO `php121_control` VALUES (1, 1, 1); CREATE TABLE `php121_messages` ( `msgid` int(11) NOT NULL auto_increment, `roomid` int(11) NOT NULL default '0', `username` varchar(25) NOT NULL default '', `timestamp` int(11) NOT NULL default '0', `servernotice` int(1) NOT NULL default '0', `message` longtext NOT NULL, PRIMARY KEY (`msgid`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; CREATE TABLE `php121_rooms` ( `roomid` int(11) NOT NULL default '0', `uname` varchar(25) NOT NULL default '', `joined` int(11) NOT NULL default '0', `lastping` int(11) NOT NULL default '0', `timedout` int(1) NOT NULL default '0', PRIMARY KEY (`roomid`,`uname`) ) TYPE=MyISAM; CREATE TABLE `php121_smilies` ( `id` smallint(5) NOT NULL auto_increment, `code` varchar(50) NOT NULL default '', `filename` varchar(100) NOT NULL default '', `description` varchar(75) NOT NULL default '', `pack` varchar(50) NOT NULL default '', PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=44 ; INSERT INTO `php121_smilies` VALUES (1, ':D', 'icon_biggrin.gif', 'Very Happy', 'phpbb'); INSERT INTO `php121_smilies` VALUES (2, ':)', 'icon_smile.gif', 'Smile', 'phpbb'); INSERT INTO `php121_smilies` VALUES (3, ':smile:', 'icon_smile.gif', 'Smile', 'phpbb'); INSERT INTO `php121_smilies` VALUES (4, ':(', 'icon_sad.gif', 'Sad', 'phpbb'); INSERT INTO `php121_smilies` VALUES (5, ':-(', 'icon_sad.gif', 'Sad', 'phpbb'); INSERT INTO `php121_smilies` VALUES (6, ':sad:', 'icon_sad.gif', 'Sad', 'phpbb'); INSERT INTO `php121_smilies` VALUES (7, ':o', 'icon_surprised.gif', 'Surprised', 'phpbb'); INSERT INTO `php121_smilies` VALUES (8, ':-o', 'icon_surprised.gif', 'Surprised', 'phpbb'); INSERT INTO `php121_smilies` VALUES (9, ':eek:', 'icon_surprised.gif', 'Surprised', 'phpbb'); INSERT INTO `php121_smilies` VALUES (10, '8O', 'icon_eek.gif', 'Shocked', 'phpbb'); INSERT INTO `php121_smilies` VALUES (11, '8-O', 'icon_eek.gif', 'Shocked', 'phpbb'); INSERT INTO `php121_smilies` VALUES (12, ':shock:', 'icon_eek.gif', 'Shocked', 'phpbb'); INSERT INTO `php121_smilies` VALUES (13, ':?', 'icon_confused.gif', 'Confused', 'phpbb'); INSERT INTO `php121_smilies` VALUES (14, ':-?', 'icon_confused.gif', 'Confused', 'phpbb'); INSERT INTO `php121_smilies` VALUES (15, ':???:', 'icon_confused.gif', 'Confused', 'phpbb'); INSERT INTO `php121_smilies` VALUES (16, '8)', 'icon_cool.gif', 'Cool', 'phpbb'); INSERT INTO `php121_smilies` VALUES (17, '8-)', 'icon_cool.gif', 'Cool', 'phpbb'); INSERT INTO `php121_smilies` VALUES (18, ':cool:', 'icon_cool.gif', 'Cool', 'phpbb'); INSERT INTO `php121_smilies` VALUES (19, ':lol:', 'icon_lol.gif', 'Laughing', 'phpbb'); INSERT INTO `php121_smilies` VALUES (20, ':x', 'icon_mad.gif', 'Mad', 'phpbb'); INSERT INTO `php121_smilies` VALUES (21, ':-x', 'icon_mad.gif', 'Mad', 'phpbb'); INSERT INTO `php121_smilies` VALUES (22, ':mad:', 'icon_mad.gif', 'Mad', 'phpbb'); INSERT INTO `php121_smilies` VALUES (23, ':P', 'icon_razz.gif', 'Razz', 'phpbb'); INSERT INTO `php121_smilies` VALUES (24, ':-P', 'icon_razz.gif', 'Razz', 'phpbb'); INSERT INTO `php121_smilies` VALUES (25, ':razz:', 'icon_razz.gif', 'Razz', 'phpbb'); INSERT INTO `php121_smilies` VALUES (26, ':oops:', 'icon_redface.gif', 'Embarassed', 'phpbb'); INSERT INTO `php121_smilies` VALUES (27, ':cry:', 'icon_cry.gif', 'Crying or Very sad', 'phpbb'); INSERT INTO `php121_smilies` VALUES (28, ':evil:', 'icon_evil.gif', 'Evil or Very Mad', 'phpbb'); INSERT INTO `php121_smilies` VALUES (29, ':twisted:', 'icon_twisted.gif', 'Twisted Evil', 'phpbb'); INSERT INTO `php121_smilies` VALUES (30, ':roll:', 'icon_rolleyes.gif', 'Rolling Eyes', 'phpbb'); INSERT INTO `php121_smilies` VALUES (31, ':wink:', 'icon_wink.gif', 'Wink', 'phpbb'); INSERT INTO `php121_smilies` VALUES (32, ';)', 'icon_wink.gif', 'Wink', 'phpbb'); INSERT INTO `php121_smilies` VALUES (33, ':!:', 'icon_exclaim.gif', 'Exclamation', 'phpbb'); INSERT INTO `php121_smilies` VALUES (34, ':?:', 'icon_question.gif', 'Question', 'phpbb'); INSERT INTO `php121_smilies` VALUES (35, ':idea:', 'icon_idea.gif', 'Idea', 'phpbb'); INSERT INTO `php121_smilies` VALUES (36, ':arrow:', 'icon_arrow.gif', 'Arrow', 'phpbb'); INSERT INTO `php121_smilies` VALUES (37, ':|', 'icon_neutral.gif', 'Neutral', 'phpbb'); INSERT INTO `php121_smilies` VALUES (38, ':-|', 'icon_neutral.gif', 'Neutral', 'phpbb'); INSERT INTO `php121_smilies` VALUES (39, ':neutral:', 'icon_neutral.gif', 'Neutral', 'phpbb'); INSERT INTO `php121_smilies` VALUES (40, ':mrgreen:', 'icon_mrgreen.gif', 'Mr. Green', 'phpbb'); INSERT INTO `php121_smilies` VALUES (41, ':^_^:', 'aiwebs_004.gif', 'Smile (Japanese)', 'phpbb'); INSERT INTO `php121_smilies` VALUES (42, ':wave:', 'wavey.gif', '', 'phpbb'); INSERT INTO `php121_smilies` VALUES (43, ':samurai:', 'samurai.gif', '', 'phpbb'); ALTER TABLE `users` ADD `php121_user_chatting` INT( 11 ) DEFAULT '0' NOT NULL , ADD `php121_smilies` TINYINT( 1 ) DEFAULT '1' NOT NULL , ADD `php121_level` TINYINT( 1 ) DEFAULT '1' NOT NULL , ADD `php121_showrequest` TINYINT( 1 ) DEFAULT '1' NOT NULL , ADD `php121_beep_newmsg` TINYINT( 1 ) DEFAULT '1' NOT NULL , ADD `php121_focus_newmsg` TINYINT( 1 ) DEFAULT '1' NOT NULL , ADD `php121_auto_email_transcript` TINYINT( 1 ) DEFAULT '0' NOT NULL , ADD `php121_banned` TINYINT( 1 ) DEFAULT '0' NOT NULL , ADD `php121_timezone` TINYINT( 3 ) DEFAULT '0' NOT NULL , ADD `php121_timestamp` TINYINT( 1 ) DEFAULT '1' NOT NULL , ADD `php121_language` VARCHAR( 30 ) DEFAULT 'English' NOT NULL , ADD `php121_cl_update_key` int(11) NOT NULL default '0', ADD `imbl_appear_offline` int(1) NOT NULL default '0', ADD `imbl_away_message` varchar(255) NOT NULL default '', ADD `imbl_usertheme` varchar(64) NOT NULL default '', ADD `imbl_profileshowsbuddies` int(1) NOT NULL default '1', ADD `imbl_general_info` text NOT NULL, ADD `imbl_profile_timestamp` varchar(255) NOT NULL default '', ADD `imbl_profiletheme` varchar(64) NOT NULL default '', ADD `imbl_profile_gender` varchar(35) NOT NULL default '', ADD `imbl_profile_age` int(2) NOT NULL default '0', ADD `imbl_profile_location` varchar(35) NOT NULL default '', ADD `imbl_profile_status` varchar(35) NOT NULL default '', ADD `imbl_profile_orientation` varchar(35) NOT NULL default '', ADD `imbl_profile_occupation` varchar(35) NOT NULL default '', ADD `imbl_profile_avataruploaded` int(1) NOT NULL default '0', ADD `imbl_profile_avatarhide` int(1) NOT NULL default '0', ADD `php121_tabs_timestamp` int(11) NOT NULL default '0', ADD `php121_tabs_update` int(1) NOT NULL default '0', ADD `showrequest` TINYINT( 1 ) NOT NULL DEFAULT '1' ; CREATE TABLE `imbuddylist` ( `id` int(20) NOT NULL auto_increment, `userid` int(32) NOT NULL default '0', `buddyid` int(32) NOT NULL default '0', `buddygroup` int(32) NOT NULL default '0', `buddycomment` varchar(255) NOT NULL default '', PRIMARY KEY (`id`) ) TYPE=MyISAM; CREATE TABLE `imbuddylist_config` ( `adminscontrolusersettings` int(1) NOT NULL default '0', `chatlogsaving_enabled` int(1) NOT NULL default '1', `config_name` varchar(255) NOT NULL default '', `defaulttheme` varchar(255) NOT NULL default '', `group_allonline_opened` int(1) NOT NULL default '1', `group_onlinebuddies_opened` int(1) NOT NULL default '1', `group_offlinebuddies_opened` int(1) NOT NULL default '0', `profile_enabled` int(1) NOT NULL default '1', `buddylist_enabled` int(1) NOT NULL default '1', `awaymsg_enabled` int(1) NOT NULL default '1', `showonline_enabled` int(1) NOT NULL default '1', `staffsupportsystem_enabled` int(1) NOT NULL default '1', `usersearch_enabled` int(1) NOT NULL default '1', `profilecomments_enabled` int(1) NOT NULL default '1', `profileavatars_enabled` int(1) NOT NULL default '1', `buddycomments_enabled` int(1) NOT NULL default '1', `offlinemessages_enabled` int(1) NOT NULL default '1', `debugmode_enabled` int(1) NOT NULL default '0', `usersautoacceptchatrequests` int(1) NOT NULL default '0' PRIMARY KEY (`config_name`) ) TYPE=MyISAM; INSERT INTO `imbuddylist_config` VALUES ('imbuddylist', '', 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0); CREATE TABLE `imbuddylist_groups` ( `id` int(20) NOT NULL auto_increment, `userid` int(32) NOT NULL default '0', `group` varchar(21) NOT NULL default '', `opened` int(1) NOT NULL default '1', PRIMARY KEY (`id`) ) TYPE=MyISAM; CREATE TABLE `imbuddylist_profilecomments` ( `comment_id` int(20) NOT NULL auto_increment, `profile_id` int(20) NOT NULL default '0', `poster_id` int(20) NOT NULL default '0', `timestamp` int(11) NOT NULL default '0', PRIMARY KEY (`comment_id`), KEY `profile_id` (`profile_id`), KEY `poster_id` (`poster_id`), KEY `timestamp` (`timestamp`) ) TYPE=MyISAM; CREATE TABLE `imbuddylist_profilecomments_text` ( `comment_id` int(20) NOT NULL auto_increment, `comment_text` text, PRIMARY KEY (`comment_id`) ) TYPE=MyISAM; CREATE TABLE `imbuddylist_staffbuddies` ( `id` int(20) NOT NULL auto_increment, `userid` varchar(45) NOT NULL default '1', `buddyid` varchar(45) NOT NULL default '', `buddygroup` varchar(45) NOT NULL default '', `displayname` varchar(40) NOT NULL default '', PRIMARY KEY (`id`) ) TYPE=MyISAM; CREATE TABLE `imbuddylist_staffgroups` ( `id` int(20) NOT NULL auto_increment, `userid` varchar(45) NOT NULL default '1', `group` varchar(45) NOT NULL default '', `opened` int(1) NOT NULL default '1', PRIMARY KEY (`id`) ) TYPE=MyISAM; CREATE TABLE `php121_offlinemessages` ( `offlineim_id` INT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY , `receiver_id` INT(20) NOT NULL , `sender_id` INT(20) NOT NULL , `timestamp` INT(11) NOT NULL , `subject` varchar(50) NOT NULL default '', `unread` int(1) NOT NULL default '1', INDEX ( `receiver_id` ) ) TYPE = MYISAM ; CREATE TABLE `php121_offlinemessages_text` ( `offlineim_id` INT( 20 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `offlineim_text` TEXT NULL ) TYPE = MYISAM ; INSERT INTO `php121_control` VALUES (2, 1, 1); CREATE TABLE `php121_chatlogs` ( `id` int(99) NOT NULL auto_increment, `room_id` int(99) NOT NULL default '0', `timestamp` int(11) NOT NULL default '0', `usernames` text NOT NULL, `textlog` text NOT NULL, PRIMARY KEY (`id`) ) TYPE=MyISAM ;
  11. Re: Not much of a MOD more of a great addon.. Private Messenger   yea i dont mind im accually downloading msn once again to get it working itll be up and running in the next few mins so yea, also to make your file not a problem no more just over right it with this one, :) <?php /***************************************************************************************** ** PHP121 Instant Messenger (PHP121) ** ** File: php121.php ** ** Date modified: 23/06/06 ** ** Copyright: (C) 2005 Paul Synnott ** ** Email: [email][email protected][/email] ** ** Web: [url]http://www.php121.com[/url] ** ** File function: Core functions and session check ** *****************************************************************************************/ /***************************************************************************************** ** This file is part of PHP121. ** ** ** ** PHP121 is free software; you can redistribute it and/or modify ** ** it under the terms of the GNU General Public License as published by ** ** the Free Software Foundation; either version 2 of the License, or ** ** (at your option) any later version. ** ** ** ** PHP121 is distributed in the hope that it will be useful, ** ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** ** GNU General Public License for more details. ** ** ** ** You should have received a copy of the GNU General Public License ** ** along with PHP121; if not, write to the Free Software ** ** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ** *****************************************************************************************/ set_magic_quotes_runtime(0); // Disable magic_quotes_runtime //error_reporting(0); global $integration; require_once("php121db.php"); global $php121db, $db_usertable, $dbf_uid, $dbf_uname, $dbf_upassword, $dbf_passwordtype, $dbf_uemail; global $dbf_user_chatting, $dbf_smilies, $dbf_level, $dbf_showrequest, $dbf_banned, $php121_config; session_start(); if ($integration == "none") { if (isset($_COOKIE['php121un']) && isset($_COOKIE['php121pw'])) { $logindataun = $_COOKIE['php121un']; $logindatapw = $_COOKIE['php121pw']; if (!empty($logindataun) && !empty($logindatapw)) { //we have a cookie - use it to login, overriding any sessions $_SESSION[sess_username] = $logindataun; $_SESSION[sess_password] = $logindatapw; } } $sess_username = $_SESSION[sess_username]; $sess_password = $_SESSION[sess_password]; //end if integration = none } else if ($integration == "phpnuke") { global $user, $cookie, $db, $anonymous, $sitekey; require_once("mainfile.php"); cookiedecode($user); $sess_username = $cookie[1]; //end if integration is phpnuke } else if ($integration == "phpbb") { define('IN_PHPBB', true); $phpbb_root_path = '../'; include($phpbb_root_path . 'extension.inc'); require_once($phpbb_root_path . 'common.'.$phpEx); // // Start session management // $userdata = session_pagestart($user_ip, PAGE_INDEX); init_userprefs($userdata); // // End session management // $sess_username = $userdata['username']; $sess_password= $userdata['password']; } $sess_username = makedbsafe($sess_username); $sess_password = makedbsafe($sess_password); $sql = "Select $dbf_uname from $db_usertable"; $result = mysql_query($sql); $numusers = mysql_num_rows($result); $row = mysql_fetch_row(mysql_query("SELECT $dbf_banned,$dbf_uid,$dbf_focus_newmsg,$dbf_beep_newmsg,$dbf_timestamp,$dbf_timezone from $db_usertable WHERE $dbf_uname='$sess_username'", $php121db)); $bannedstatus = $row[0]; $sess_uid = $row[1]; $focus_newmsg = $row[2]; $beep_newmsg = $row[3]; $timestamp = $row[4]; $timezone = $row[5]; $server_timezone = $php121_config['server_timezone']; if ($bannedstatus > 0) { echo _YOU_ARE_BANNED; die(); } if ($sess_username != "") { require_once("php121checksession.php"); } else { header("Location: php121login.php"); die; } function userCheck($username, $password) { global $php121db, $password, $db_usertable, $dbf_uname, $dbf_upassword; $username = makedbsafe($username); $password = makedbsafe($password); $stop = ""; if (mysql_num_rows(mysql_query("SELECT $dbf_uname FROM $db_usertable WHERE $dbf_uname='$username'", $php121db)) == 0) $stop .= "<font color="FF0000">" . _USERNAME_NOT_FOUND . "</font> "; if ($stop == "") { $row = mysql_fetch_row(mysql_query("SELECT $dbf_upassword from $db_usertable WHERE $dbf_uname='$username'", $php121db)); if ($row[0] != md5($password)) $stop .= "<font color="FF0000">" . _INCORRECT_PASSWORD . "</font> "; } return($stop); } function userLookup($username, $password) { global $php121db, $password, $db_usertable, $dbf_uname, $dbf_upassword; $username = makedbsafe($username); $password = makedbsafe($password); $stop = ""; if (mysql_num_rows(mysql_query("SELECT $dbf_uname FROM $db_usertable WHERE $dbf_uname='$username'", $php121db)) == 0) $stop .= _USERNAME_NOT_FOUND . " "; if ($stop == "") { $row = mysql_fetch_row(mysql_query("SELECT $dbf_upassword from $db_usertable WHERE $dbf_uname='$username'", $php121db)); if ($row[0] != md5($password)) $stop .= _INCORRECT_PASSWORD . " "; } return($stop); } function isadmin($username) { global $integration; $username = makedbsafe($username); if ($integration == "none") { global $php121db, $db_usertable, $dbf_uname, $dbf_level; $row = mysql_fetch_row(mysql_query("SELECT $dbf_level from $db_usertable WHERE $dbf_uname='$username'", $php121db)); return $row[0] - 1; } else if ($integration == "phpnuke") { global $admin; return(is_admin($admin)); } else if ($integration == "phpbb") { global $php121db, $db_usertable, $dbf_uname, $dbf_level; $row = mysql_fetch_row(mysql_query("SELECT $dbf_level from $db_usertable WHERE $dbf_uname='$username'", $php121db)); return $row[0]; } } ?>   thats the one i use and well all the problems in aren't there anymore, maybe that can help.
  12. Re: Not much of a MOD more of a great addon.. Private Messenger   yes ajaxim is alright if you dont mind going into 2 different pages, i incorperated it earlier today to try it out and found out it works alright but you cant play the game from the same tab as you would with php121, and for the payment of $19, well lets just say theres no need for that at all if you know how to google search very well, because i had gotten the same version there selling for $19 for free yes free you can get the package here: http://www.clan-themes.co.uk/modules.php?name=Downloads&d_op=ns_getit&cid=9&lid=566&type=url#get of course you need to sign up to download it but other then that its a free version instead of paying the $19
  13. Re: Not much of a MOD more of a great addon.. Private Messenger   did u make sure to edit the config.php file to work with your users table and also did u add the sql of both 121 and altertable to users, because i had the same problem with them till i did that. and for the headers you shouldnt add 2 header.php to the same file or youll get the same response as your getting now, as you know im still haveing the problem of logging my account into the messenger other then that everything is in great working order, you can check it out at my home server at http://98.30.188.90/ pm me on here or in my game if u need help.
  14. Re: Not much of a MOD more of a great addon.. Private Messenger im currently haveing problems with logging into the messenger, its all up and working correctly except when it pops-up and i try and login it does nothing, do you have a way of fixing this or what?
  15. Re: [mccode v1] CrystalShop Mod!! Free!!   well heres the following script im useing which is basic html as the shop entrance, then when clicking on one of the links it will take you to another page showing what items are for sale, i plan on adding cases to this code to make it 1 single page instead of 4 or whatever: <?php ///////////////////////// //Coded By MDK666// //////////////////////// session_start(); include "globals.php"; print "<h3>Welcome to the TOC Credits shop this is were you can spend all you Donator Credits on.</h3>"; print "You currently have {$ir['credits']} TOC Credits "; print "Below you will find differnt types of items to choose from select one to view the items in that catagory. "; print "<center> [url='weapons.php']Weapons & Armor[/url] [url='donatordays.php']Donator Days[/url] [url='currency.php']Currency[/url] </center>"; print " <h4>[url='explore.php']Go Back[/url]</h4>"; $h->endpage(); ?>
  16. Re: [mccode v2] New re-designed bank.php!! Money & Crystals in 1 bank yes i was imma go through it and repost the working and updated script.. so that people no longer have a confusion of it not working and thanks for pointing that out for me.
  17. Re: CrystalShop Mod!! Free!!   hes right i have 4 pages for different things such as donator days, currencys and weapons & armor thats you can choose from all you would have to do is change weapons.php to the page you want it to be, im gonna redo it a little bit to make it more easier, and if you want the full package im useing then let me know and ill post all 4 pages
  18. Re: New re-designed bank.php!! Money & Crystals in 1 bank   actually it does list the amount that you are depositing and/or withdrawing i have tested it myself, as for interest because im running from a home server i cannot run a cron so im not sure if it takes out the interest automatically or not id have to look into that, this mod was just to rid my game of unused pages such as diamond, money, crystal banks all into one even though the above one only lists for crystals and money... if you have any more comments or questions go ahead and ask away.
  19. Well everyone here is a new mod i worked on its not all my codeing its actually an addition to the codeing of bank.php which i no longer need 2 bank scripts to run it say for crystals and money now its all 1 page and all the sqls and etc are in it...   this is for the sql, if u have bank already just add the crystals sql ALTER TABLE `users` ADD `bankmoney` INT( 11 ) NOT NULL DEFAULT '0' ALTER TABLE `users` ADD `bankcrystals` INT( 11 ) NOT NULL DEFAULT '0'   Create a page called bank1.php <?php include "globals.php"; print "<h3>Community Bank</h3>"; if($ir['bankmoney']>-1) { switch($_GET['action']) { case "depositmon": depositmon(); break; case "withdrawmon": withdrawmon(); break; case "depositcry": depositcry(); break; case "withdrawcry": withdrawcry(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>49999) { print "Congratulations, you bought a bank account for \$50,000 & 100crystals [url='bank.php']Start using my account[/url]"; $db->query("UPDATE users SET money=money-50000,crystals=crystals-100,bankmoney=0 WHERE userid=$userid"); } else { print "You do not have enough money, or crystals to open an account. [url='explore.php']Back to town...[/url]"; } } else { print "Open a bank account today, just \$50,000! [url='bank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db, $ir,$c,$userid,$h; print "\n[b]You currently have \${$ir['bankmoney']} money & {$ir['bankcrystals']} crystals in the bank.[/b] At the end of each day, your bank balance will go up by 2%. <table width='75%' cellspacing=1 class='table'> <tr> <td width='50%'>[b]Deposit Money[/b] It will cost you 15% of the money you deposit, rounded up. The maximum fee is \$3,000.<form action='bank.php?action=depositmon' method='post'> Amount: <input type='text' name='depositmon' value='{$ir['money']}' /> <input type='submit' value='Deposit' /></form></td><td> [b]Withdraw Money[/b] There is no fee on withdrawals.<form action='bank.php?action=withdrawmon' method='post'> Amount: <input type='text' name='withdrawmon' value='{$ir['bankmoney']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table> <table width='75%' cellspacing=1 class='table'> <tr> <td width='50%'>[b]Deposit Crystals[/b] It will cost you 15% of the crystals you deposit, rounded up. The maximum fee is 30 crystals.<form action='bank.php?action=depositcry' method='post'> Amount: <input type='text' name='depositcry' value='{$ir['crystals']}' /> <input type='submit' value='Deposit' /></form></td><td> [b]Withdraw Money[/b] There is no fee on withdrawals.<form action='bank.php?action=withdrawcry' method='post'> Amount: <input type='text' name='withdrawcry' value='{$ir['bankcrystals']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function depositmon() { global $db,$ir,$c,$userid,$h; $_POST['depositmon']=abs((int) $_POST['depositmon']); if($_POST['depositmon'] > $ir['money']) { print "You do not have enough money to deposit this amount."; } else { $fee=ceil($_POST['depositmon']*15/100); if($fee > 3000) { $fee=3000; } $gain=$_POST['depositmon']-$fee; $ir['bankmoney']+=$gain; $db->query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['depositmon']} where userid=$userid"); print "You hand over \${$_POST['depositmon']} to be deposited, after the fee is taken (\$$fee), \$$gain is added to your account. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank.php']> Back[/url]"; } } function withdrawmon() { global $db,$ir,$c,$userid,$h; $_POST['withdrawmon']=abs((int) $_POST['withdrawmon']); if($_POST['withdrawmon'] > $ir['bankmoney']) { print "You do not have enough banked money to withdraw this amount."; } else { $gain=$_POST['withdrawmon']; $ir['bankmoney']-=$gain; $db->query("UPDATE users SET bankmoney=bankmoney-$gain, money=money+$gain where userid=$userid"); print "You ask to withdraw $gain, the banking lady grudgingly hands it over. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank.php']> Back[/url]"; } } function depositcry() { global $db,$ir,$c,$userid,$h; $_POST['depositcry']=abs((int) $_POST['depositcry']); if($_POST['depositcry'] > $ir['crystals']) { print "You do not have enough crystals to deposit this amount."; } else { $fee=ceil($_POST['depositcry']*15/100); if($fee > 30) { $fee=30; } $gain=$_POST['depositcry']-$fee; $ir['bankcry']+=$gain; $db->query("UPDATE users SET bankcrystals=bankcrystals+$gain, crystals=crystals-{$_POST['depositcry']} where userid=$userid"); print "You hand over \${$_POST['depositcry']} to be deposited, after the fee is taken (\$$fee), \$$gain is added to your account. [b]You now have \${$ir['bankcrystals']} crystals in the bank.[/b] [url='bank.php']> Back[/url]"; } } function withdrawcry() { global $db,$ir,$c,$userid,$h; $_POST['withdrawcry']=abs((int) $_POST['withdrawcry']); if($_POST['withdrawcry'] > $ir['bankcrystals']) { print "You do not have enough banked crystals to withdraw this amount."; } else { $gain=$_POST['withdrawcry']; $ir['bankcrystals']-=$gain; $db->query("UPDATE users SET bankcrystals=bankcrystals-$gain, crystals=crystals+$gain where userid=$userid"); print "You ask to withdraw $gain, the banking lady grudgingly hands it over. [b]You now have \${$ir['bankcrystals']} crystals in the bank.[/b] [url='bank.php']> Back[/url]"; } } $h->endpage(); ?>   upload the bank1.php test it so it works, then overwrite bank.php if you like it. thats all and thanks for your time.
  20. Re: CrystalShop Mod!! Free!! Well i made a working version for mccode v2 on my game all because i have a whole new currency called TOC Credits which is a currency only available from donateing or buying from others in the game, in which you can trade for extremely rare items only buyable with the TOC Credits, anyways here is how it looks:   <?php //Recode V2 By MDK666 //Coded By Alan //Free Mod/Code session_start(); include "globals.php"; print "<h3>Welcome to the TOC Credits Weapon Shop this is were you can spend all you Donator Credits on Weapons.</h3>"; print "You currently have {$ir['credits']} TOC Credits "; if($_GET['type'] == "") { Print "<h3><u>Weapons</u></h3> [url='weapons.php?type=Dragons Blood Sword']Dragons Blood Sword - 1000 TOC Credits[/url] [url='weapons.php?type=Dragons Flame Blade']Dragons Flame Blade - 1000 TOC Credits[/url] [url='weapons.php?type=Tornado Whip']Tornado Whip - 1000 TOC Credits[/url] [url='weapons.php?type=Twisted Dragon Staff']Twisted Dragon Staff - 1000 TOC Credits[/url] [url='weapons.php?type=Bloody Killing Dagger']Bloody Killing Dagger - 1000 TOC Credits[/url] [url='weapons.php?type=Final Thunder Hammer']Final Thunder Hammer - 1000 TOC Credits[/url] [url='weapons.php?type=Caotic Fire Knives']Caotic Fire Knives - 1000 TOC Credits[/url] [url='weapons.php?type=Dragons Sacred Flail']Dragons Sacred Flail - 1000 TOC Credits[/url] [url='weapons.php?type=Decapatator Tsnami Gun']Decapatator Tsnami Gun - 1000 TOC Credits[/url] [url='weapons.php?type=Bloody Demon Knuckles']Bloody Demon Knuckles - 1000 TOC Credits[/url] [url='weapons.php?type=Platinum Dragon Axe']Platinum Dragon Axe - 1000 TOC Credits[/url] [url='weapons.php?type=Demons Moon Spear']Demons Moon Spear - 1000 TOC Credits[/url] "; } else if($_GET['type'] == "Dragons Blood Sword") { if($ir['credits'] <1000) { die("You don't have enough TOC Credits!"); } else { mysql_query("UPDATE users SET credits=credits-1000 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',2,$userid,1)",$c); print "You successfully bought 1 Dragons Blood Sword for 1000 TOC Credits, The item was placed into your inventory."; } } else if($_GET['type'] == "Dragons Flame Blade") { if($ir['credits'] <1000) { die("You don't have enough TOC Credits!"); } else { mysql_query("UPDATE users SET credits=credits-1000 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',3,$userid,1)",$c); print "You successfully bought 1 Dragons Flame Blade for 1000 TOC Credits, The item was placed into your inventory."; } } else if($_GET['type'] == "Tornado Whip") { if($ir['credits'] <1000) { die("You don't have enough TOC Credits!"); } else { mysql_query("UPDATE users SET credits=credits-1000 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',4,$userid,1)",$c); print "You successfully bought 1 Tornado Whip for 1000 TOC Credits, The item was placed into your inventory."; } } else if($_GET['type'] == "Twisted Dragon Staff") { if($ir['credits'] <1000) { die("You don't have enough TOC Credits!"); } else { mysql_query("UPDATE users SET credits=credits-1000 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',5,$userid,1)",$c); print "You successfully bought 1 Twisted Dragon Staff for 1000 TOC Credits, The item was placed into your inventory."; } } else if($_GET['type'] == "Bloody Killing Dagger") { if($ir['credits'] <1000) { die("You don't have enough TOC Credits!"); } else { mysql_query("UPDATE users SET credits=credits-1000 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',6,$userid,1)",$c); print "You successfully bought 1 Bloody Killing Dagger for 1000 TOC Credits, The item was placed into your inventory."; } } else if($_GET['type'] == "Final Thunder Hammer") { if($ir['credits'] <1000) { die("You don't have enough TOC Credits!"); } else { mysql_query("UPDATE users SET credits=credits-1000 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',7,$userid,1)",$c); print "You successfully bought 1 Final Thunder Hammer for 1000 TOC Credits, The item was placed into your inventory."; } } else if($_GET['type'] == "Caotic Fire Knives") { if($ir['credits'] <1000) { die("You don't have enough TOC Credits!"); } else { mysql_query("UPDATE users SET credits=credits-1000 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',8,$userid,1)",$c); print "You successfully bought 1 Caotic Fire Knives for 1000 TOC Credits, The item was placed into your inventory."; } } else if($_GET['type'] == "Dragons Sacred Flail") { if($ir['credits'] <1000) { die("You don't have enough TOC Credits!"); } else { mysql_query("UPDATE users SET credits=credits-1000 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',9,$userid,1)",$c); print "You successfully bought 1 Dragons Sacred Flail for 1000 TOC Credits, The item was placed into your inventory."; } } else if($_GET['type'] == "Decapatator Tsnami Gun") { if($ir['credits'] <1000) { die("You don't have enough TOC Credits!"); } else { mysql_query("UPDATE users SET credits=credits-1000 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',10,$userid,1)",$c); print "You successfully bought 1 Decapatator Tsnami Gun for 1000 TOC Credits, The item was placed into your inventory."; } } else if($_GET['type'] == "Bloody Demon Knuckles") { if($ir['credits'] <1000) { die("You don't have enough TOC Credits!"); } else { mysql_query("UPDATE users SET credits=credits-1000 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',11,$userid,1)",$c); print "You successfully bought 1 Bloody Demon Knuckles for 1000 TOC Credits, The item was placed into your inventory."; } } else if($_GET['type'] == "Platinum Dragon Axe") { if($ir['credits'] <1000) { die("You don't have enough TOC Credits!"); } else { mysql_query("UPDATE users SET credits=credits-1000 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',12,$userid,1)",$c); print "You successfully bought 1 Platinum Dragon Axe for 1000 TOC Credits, The item was placed into your inventory."; } } else if($_GET['type'] == "Demons Moon Spear") { if($ir['credits'] <1000) { die("You don't have enough TOC Credits!"); } else { mysql_query("UPDATE users SET credits=credits-1000 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',13,$userid,1)",$c); print "You successfully bought 1 Demons Moon Spear for 1000 TOC Credits, The item was placed into your inventory."; } } $h->endpage(); ?>
  21. Re: [mccode] Diamond Market for v2.0 yes i am still a noob the 2nd crystal post i made was my first mod i made and then this one. so far i did about 4 mods for my game on my own includeing a crytsal bank, diamond bank, donationg crystals to the gang, editing the admin to be able to edit the gangs, banks, and the users
  22. Here is a small diamond market i recoded from the crystal market it has been tested and works perfect u will need the diamond post i made earlier to get this to work properly.     create dmarket.php   <?php /*----------------------------------------------------- -- Diamond Market v1.0 -- A product of Satans Eternal Lands -- [url]http://www.sel.total-downloads.salvationwebhosting.com[/url] -- dmarket.php -----------------------------------------------------*/ include "globals.php"; print "Diamond Market"; switch($_GET['action']) { case "buy": diamond_buy(); break; case "remove": diamond_remove(); break; case "add": diamond_add(); break; default: dmarket_index(); break; } function dmarket_index() { global $db,$ir,$c,$userid,$h; print "[url='dmarket.php?action=add']> Add A Listing[/url] Viewing all listings... </pre> <table width="75%" cellspacing="1">Adder Qty Price each Price total Links [url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}] {$r['dmQTY']} \$" . number_format($each)." \$".number_format($r['dmPRICE'])." [$link] </table>";<br>}<br>function diamond_remove()<br>{<br>global $db,$ir,$c,$userid,$h;<br>$q=$db->query("SELECT * FROM diamondmarket WHERE dmID={$_GET['ID']} AND dmADDER=$userid");<br>if(!$db->num_rows($q))<br>{<br>print "Error, either these diamonds do not exist, or you are not the owner.<br><br>[url='dmarket.php']> Back[/url]";<br>$h->endpage();<br>exit;<br>}<br>$r=$db->fetch_row($q);<br>$db->query("UPDATE users SET diamonds=diamonds+{$r['dmQTY']} where userid=$userid");<br>$db->query("DELETE FROM diamondmarket WHERE dmID={$_GET['ID']}");<br>print "Diamonds removed from market!<br><br>[url='dmarket.php']> Back[/url]";<br>}<br>function diamond_buy()<br>{<br>global $db,$ir,$c,$userid,$h;<br>$q=$db->query("SELECT * FROM diamondmarket dm WHERE dmID={$_GET['ID']}");<br>if(!$db->num_rows($q))<br>{<br>print "Error, either these diamonds do not exist, or they have already been bought.<br><br>[url='dmarket.php']> Back[/url]";<br>$h->endpage();<br>exit;<br>}<br>$r=$db->fetch_row($q);<br>if($r['dmPRICE'] > $ir['money'])<br>{<br>print "Error, you do not have the funds to buy these diamonds.<br><br>[url='dmarket.php']> Back[/url]";<br>$h->endpage();<br>exit;<br>}<br>$db->query("UPDATE users SET diamonds=diamonds+{$r['dmQTY']} where userid=$userid");<br>$db->query("DELETE FROM diamondmarket WHERE dmID={$_GET['ID']}");<br>$db->query("UPDATE users SET money=money-{$r['dmPRICE']} where userid=$userid");<br>$db->query("UPDATE users SET money=money+{$r['dmPRICE']} where userid={$r['dmADDER']}");<br>event_add($r['dmADDER'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] bought your {$r['dmQTY']} diamonds from the market for \$".number_format($r['dmPRICE']).".",$c);<br>print "You bought the {$r['dmQTY']} diamonds from the market for \$".number_format($r['dmPRICE']).".";<br><br>}<br>function diamond_add()<br>{<br>global $db,$ir,$c,$userid,$h;<br>$_POST['amnt'] = abs((int) $_POST['amnt']);<br>$_POST['price'] = abs((int) $_POST['price']);<br>if($_POST['amnt'])<br>{<br>if($_POST['amnt'] > $ir['diamonds'])<br>{<br>die ("You are trying to add more diamonds to the market than you have.");<br>}<br>$tp=$_POST['amnt']*$_POST['price'];<br>$db->query("INSERT INTO diamondmarket VALUES('',{$_POST['amnt']},$userid,$tp)");<br>$db->query("UPDATE users SET diamonds=diamonds-{$_POST['amnt']} WHERE userid=$userid");<br>print "Diamonds added to market!<br><br>[url='dmarket.php']> Back[/url]";<br>}<br>else<br>{<br>print "[b]Adding a listing...[/b]<br><br><br>You have [b]{$ir['diamonds']}[/b] diamond(s) that you can add to the market.<table width="50%" border="2">Diamonds: Price Each: </table>";<br>}<br>}<br>$h->endpage();<br>?&g ---------------------------------------------------------------------------------------- create a new table   CREATE TABLE `diamondmarket` ( `dmID` int(11) NOT NULL auto_increment, `dmQTY` int(11) NOT NULL default '0', `dmADDER` int(11) NOT NULL default '0', `dmPRICE` int(11) NOT NULL default '0', PRIMARY KEY (`dmID`) ) ENGINE=MyISAM ; -------------------------------------------------------------------------------------------- add a href='dmarket.php'>Diamond Market   refresh and have fun
  23. Ok i recoded the crystal temple, along with the staff panel on my game to have diamonds along with tradeing them in at a diamondtemple and crediting users, and editing users to give them diamonds. This has been tested and works great for mc 2.0 only i havent coded it for 1.1 and dont plan too. Considering this is my first mod i dont plan to sell it i will let others try it and see how they like it if i get a positive feed back then maybe ill make some more mods in the future untill then heres my copy of crystal temple.. ----------------------------------------------------------------------------------------------------- Create diamondtemple.php   <?php /*----------------------------------------------------- -- Diamond Temple v1.0 -- A product of Satans Eternal Lands -- [url]http://www.sel.total-downloads.salvationwebhosting.com[/url] -- diamondtemple.php -----------------------------------------------------*/ include "globals.php"; if(!$_GET['spend']) { print "Welcome to the diamond temple! You have [b]{$ir['diamonds']}[/b] diamonds. What would you like to spend your diamonds on? [url='diamondtemple.php?spend=refill']Energy Refill - {$set['ct_refillprice']} Crystals[/url] [url='diamondtemple.php?spend=IQ']IQ - {$set['ct_iqpercrys']} IQ per diamond[/url] [url='diamondtemple.php?spend=money']Money - \$".number_format($set['ct_moneypercry'])." per diamond[/url] "; } else { if($_GET['spend'] == 'refill') { if($ir['diamonds'] <$set['ct_refillprice']) { print "You don't have enough diamonds!"; } else if($ir['energy'] == $ir['maxenergy']) { print "You already have full energy."; } else { $db->query("UPDATE users SET energy=maxenergy,diamonds=diamonds-{$set['ct_refillprice']} WHERE userid=$userid"); print "You have paid {$set['ct_refillprice']} diamonds to refill your energy bar."; } } else if($_GET['spend'] == 'IQ') { print "Type in the amount of diamonds you want to swap for IQ. You have [b]{$ir['diamonds']}[/b] diamonds. One diamond = {$set['ct_iqpercrys']} IQ. "; } else if($_GET['spend'] == 'IQ2') { $_POST['diamonds']=(int) $_POST['diamonds']; if($_POST['diamonds'] <= 0 || $_POST['diamonds'] > $ir['diamonds']) { print "Error, you either do not have enough diamonds or did not fill out the form. [url='diamondtemple.php?spend=IQ']Back[/url]"; } else { $iqgain=$_POST['diamonds']*$set['ct_iqpercrys']; $db->query("UPDATE users SET diamonds=diamonds-{$_POST['diamonds']} WHERE userid=$userid"); $db->query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid"); print "You traded {$_POST['diamonds']} diamonds for $iqgain IQ."; } } else if($_GET['spend'] == 'money') { print "Type in the amount of diamonds you want to swap for money. You have [b]{$ir['diamonds']}[/b] diamonds. One diamond = \$".number_format($set['ct_moneypercrys']).". "; } else if($_GET['spend'] == 'money2') { $_POST['diamonds']=(int) $_POST['diamonds']; if($_POST['diamonds'] <= 0 || $_POST['diamonds'] > $ir['diamonds']) { print "Error, you either do not have enough diamonds or did not fill out the form. [url='diamondtemple.php?spend=money']Back[/url]"; } else { $iqgain=$_POST['diamonds']*$set['ct_moneypercrys']; $db->query("UPDATE users SET diamonds=diamonds-{$_POST['diamonds']},money=money+$iqgain WHERE userid=$userid"); print "You traded {$_POST['diamonds']} diamonds for \$".number_format($iqgain)."."; } } } $h->endpage(); ?> ----------------------------------------------------------------------------------------------------- Add to tables   ALTER TABLE `users` ADD `diamonds` bigint(15) NOT NULL DEFAULT 0;   ----------------------------------------------------------------------------------------------------- Open explore.php Find Mysterious   Add this under it [url='diamondtemple.php']Diamond Temple[/url]   save, then refresh ur browser and have fun!!!    
  24. Well hello people i'm new to the forums and well lets just say that I have came up with, quite a few scripts that may intrest you all. I am no programmer but I know html, The scripts I have/had in mind for the past few days has been bothering me and im wondering if anyone can give me basic steps on where to start with the following information for a few scripts. -------------------------------------------------------------------------------------------------------- Script #1: Armor and Weapons upgrades: As you know there are not many armor nor weapon scripts out there, the script which i had in mind is to be able to upgrade the levels, qualitys, and have bonus additions to the items. Such as for example: Upgrading Levels: haveing setup for a certain stone to upgrade the level of item the from a lower level to the users level. Qaulity Upgrades: A stone to change the type of item/s from regular types to more of refined, unique, elite, or super. Bonus Additons: Another stone to add a plus number beside the name to give it extra effects, Such as attack, agility, i.q, etc. ------------------------------------------------------------------------------------------------------ Ways of payment through the game to gain these stones/items: A. Paying via paypal, sms, credit card, etc B. Using another kind of currency in the game that is very rare. C. Donateing to the game itself. ------------------------------------------------------------------------------------------------------ If you have any ideas or would like to help me with this project please send me a pm or send me a message through yahoo and/or msn and my screen names are: Yahoo: [email protected] or [email protected] MSN: [email protected] p.s. Thanks for looking and reading this forum, and if you would like to hear my other ideas, pm me I am always happy to share.
×
×
  • Create New...