-
Posts
572 -
Joined
-
Last visited
-
Days Won
7
Content Type
Profiles
Forums
Events
Everything posted by NonStopCoding
-
haha well its all the same to me :P at the end of the day its still people fighting other people
-
kung fu its all the same still fighting :P
-
ok i think i found the error $db->query("INSERT INTO `lottolast` SET `lotto1` = '$num1', `lotto2` = '$num2', `lotto3` = '$num3', `lotto4` = '$num4', `lotto5` = '$num5'"); <?php include(__DIR__."/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; $db->query("TRUNCATE TABLE lottolast;"); $num1 = rand(1, 15); $num2 = rand(1, 15); $num3 = rand(1, 15); $num4 = rand(1, 15); $num5 = rand(1, 15); $uc = $db->query("SELECT * FROM `lotto`"); while($cl = $db->fetch_row($uc)) { $pc = $db->query("SELECT `lotto1` FROM `users` WHERE `userid` = {$cl['userid']}"); $pl = $db->fetch_row($pc); if($cl['lottery1'] == $num1) { $cor1="1000000"; } else { $cor1="0"; } if($cl['lottery2'] == $num2) { $cor2="1000000"; } else { $cor2="0"; } if($cl['lottery3'] == $num3) { $cor3="1000000"; } else { $cor3="0"; } if($cl['lottery4'] == $num4) { $cor4="1000000"; } else { $cor4="0"; } if($cl['lottery5'] == $num5) { $cor5="1000000"; } else { $cor5="0"; } if($pl['lotto1'] == 1) { $prize = $cor1+$cor2+$cor3+$cor4+$cor5; } else { $prize=0; } $db->query("UPDATE `users` SET `bankmoney` = `bankmoney` + $prize WHERE `userid` = {$cl['userid']}"); $db->query("UPDATE `users` SET `lotto1` = '0'"); $db->query("INSERT INTO `lottolast` SET `lotto1` = '$num1', `lotto2` = '$num2', `lotto3` = '$num3', `lotto4` = '$num4', `lotto5` = '$num5'"); } print " Prize: $prize Number 1: $num1 Number 2: $num2 Number 3: $num3 Number 4: $num4 Number 5: $num5 Users {$cl['userid']} "; ?>
-
its hosting week ;)
-
The grpg game i use has been converted to mysqli so instead of converting the module over to my game i am putting up a fresh copy of grpg for the demo
-
np glad you like it
-
-
[MENTION=70223]death[/MENTION] You forgot the specs :p 8gb ram v4 core processor
-
I have disabled the boss.php until i have reworked the attack part of the module here is some screenshots of the new attack with random outcomes [ATTACH=CONFIG]1512[/ATTACH][ATTACH=CONFIG]1513[/ATTACH][ATTACH=CONFIG]1514[/ATTACH][ATTACH=CONFIG]1515[/ATTACH]
-
well if your on vps then you should be all good :)
-
if your using free hosting then i don't think you would be able to access your php.ini try create a file called that
-
if($ir['user_level'] == 2 || $ir['user_level == 3) is the error and you also have a extra curly bracket Pastebin: http://pastebin.com/U4XSxJAg echo " <table width='90%' cellspacing='1' class='table'> <tr style='background:grey'> <th colspan='3'>Users Comments <a href='comments.php?ID={$r['userid']}'>[Add Comment]</a></th>"; if($ir['user_level'] == 2 || $ir['user_level'] == 3) { echo "<th width='10%'>Delete</th>"; } if($ir['userid'] == $r['userid']) { echo "<th width='10%'>Block</th>"; } echo "</tr>"; $query = $db->query("SELECT `cmtTIME`,`cmtTO`,`cmtFROM`,`cmtTEXT` FROM `comments` WHERE `cmtTO` = {$r['userid']} ORDER BY `cmtTIME` DESC LIMIT 5"); while($q=$db->fetch_row($query)) { $they = $db->query("SELECT `username`,`userid` FROM `users` WHERE `userid` = {$q['cmtFROM']}"); $them = $db->fetch_row($they); $sent = date('F j, Y, g:i:s a',$q['cmtTIME']); if($them['display_pic']) { echo " <td width='50'> <img src='{$them['display_pic']}' width='50' height='50' alt='User Display Pic' title='User Display Pic' /> </td>"; } else { echo " <td width='50'> <img src='images/default.jpg' width='50' height='50' alt='User Display Pic' title='User Display Pic' /> </td>"; } } echo " <td><a href='viewuser.php?u={$them['userid']}'>{$them['username']} [{$them['userid']}]</a></br></br>$sent</td> <td>{$q['cmtTEXT']}</td>"; if($ir['user_level'] == 2 || $ir['user_level'] == 3) { echo " <td width='10%'><a href='comments.php?action=delete&ID={$q['cmtID']}'>Delete</a></td>"; } if($ir['userid'] == $r['userid']) { echo " <td width='10%'><a href='comments_block.php?action=add&ID={$them['userid']}'>Block</a></td>"; } echo "</tr>"; echo "</table><hr width='90%'>";
-
ok added little jquery to the latest attacks some screenshots users can drag the box and arrange it in the order they want. [ATTACH=CONFIG]1510[/ATTACH][ATTACH=CONFIG]1511[/ATTACH] would be better to check the demo for better view :)
-
i am going to be reworking the attacking part of this as its a bit messed up but keep the ideas coming ill see what i can do so far the ideas are Boss will spawn at xx.xx server time then every 3 hours after that. (0%) countdown timer or a worldwide message to alert the players the boss has spawned.(0%) fight points and a store to go with it to spend points.(0%)
-
yes there is no hospital time for the monster once attacked his hp will drop down by whatever damage you hit on him it will however cost you energy if you decide to set that it costs anything in the config sql file EDIT: If the boss has been killed 0 hp then of course it cant be attacked anymore until the hp is refilled or a new boss is set in the config file
-
that's a pretty nice idea there i will see if i can do that
-
So i have went and coded a module which will let users attack a boss the boss will be very hard to kill due to his huge health bar. -- Files -- monster_config.sql npc_monsters.sql monster_info.sql boss.php --------------- In the monster config you can set energy cost per attack. monster id that you want to show if you have multiple bosses lose cash lose exp survive cash survive exp kill cash kill exp hit cash hit exp Here are some screenshots [ATTACH=CONFIG]1503[/ATTACH][ATTACH=CONFIG]1504[/ATTACH][ATTACH=CONFIG]1505[/ATTACH][ATTACH=CONFIG]1506[/ATTACH][ATTACH=CONFIG]1507[/ATTACH][ATTACH=CONFIG]1508[/ATTACH] If you are interested in purchasing this module then please contact me on [email protected] or skype: dundeeboy09 Edit: Forgot to say module is complete just needs some final touches added. There will be a staff panel as well for easy adding of bosses and edit of config file. You can see a live demo on my developer site. http://mcc.nonstopcoding.com/boss.php Username: demo Password: demo Edit: Updated code to do a bug found by Veramis
-
if you have skype can you add me mine is in my profile
-
is this template still for sale?
-
Reece - A.K.A "Splash" - Stolen Template
NonStopCoding replied to W3Theory || Peter's topic in Collaboration Experiences
yes he did not confirm that he said but he sent me a screenshot that he sent recce [ATTACH=CONFIG]1493[/ATTACH] -
Reece - A.K.A "Splash" - Stolen Template
NonStopCoding replied to W3Theory || Peter's topic in Collaboration Experiences
heres is the 2 screenshots of my skype log from dylan [ATTACH=CONFIG]1490[/ATTACH][ATTACH=CONFIG]1491[/ATTACH] -
Reece - A.K.A "Splash" - Stolen Template
NonStopCoding replied to W3Theory || Peter's topic in Collaboration Experiences
i am not saying he should not i was just stating that you can change the persons name at one click of a button. -
hmm i did not know this was possible i would be interested in this i don't use mccodes for a game but do still develop for it
-
this is way of the mafia i think i have a copy on my computer some place not looked at it for a while but the login page does look like it
-
Reece - A.K.A "Splash" - Stolen Template
NonStopCoding replied to W3Theory || Peter's topic in Collaboration Experiences
hey you can edit anyone's name on skype click on a profile and then look for a star and then there name and a icon next to that click the icon change text and then click the tick and it saves the name as whatever you post it wont change untill the person writes back [ATTACH=CONFIG]1489[/ATTACH]