Jump to content
MakeWebGames

Dayo

Administrators
  • Posts

    2,491
  • Joined

  • Last visited

  • Days Won

    196

Everything posted by Dayo

  1. Glad people like it :) I'm Gona add an option where you can give a player an item for reaching XX level (multiple times ie item 1 for lvl 5 item 7 for lvl 25 etc...)
  2. i may be making some improvements later on aswell ;)
  3. Dayo

    Vista Panel

    Yea I've used vista panel before, it dosent support crons like you said it's a run down version of cPanel so it won't have all the features
  4. Well if I were you sooner rather then later ;) it will be a pain in the ass to transfer it all over
  5. Also one thing, it will take you forever if you are going to continue as you are (making a new web page for every mod) also im guessing you are manualy adding the table to WP
  6. fewww i was getting brphobia :P
  7. yea good luck
  8. yea i have so many projects on the go i may set aside some of my time for thios project once 2.5 is released ;)
  9. just noticed all the <br /> cant seam to delete them but just use the find and replace tool and search for <br /> and replace with nothing
  10. Hiya i havent made any mods in a longgggg time :P so while on holiday i was thinking what could be improved in McCodes then i thought of the leveling system i use on Themercenary.net and thought McCodes was dull and boring and just takes the fun out of it and makes it a never ending click click click game What this does Displays a notice saying what level you are and what you have unlocked Sends you an event You can choose the option so the player gains money for each level they gain (ie $250 for each level) You can set a max level Set energy, brave, hp gain per level ITS FREE! First off in global_func.php you need to find function check_level() { global $db; global $ir,$c,$userid; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); if($ir['exp'] >= $ir['exp_needed']) { $expu=$ir['exp']-$ir['exp_needed']; $ir['level']+=1; $ir['exp']=$expu; $ir['energy']+=2; $ir['brave']+=2; $ir['maxenergy']+=2; $ir['maxbrave']+=2; $ir['hp']+=50; $ir['maxhp']+=50; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); $db->query("UPDATE users SET level=level+1,exp=$expu,energy=energy+2,brave=brave+2,maxenergy=maxenergy+2,maxbrave=maxbrave+2, hp=hp+50,maxhp=maxhp+50 where userid=$userid"); } } And replace it with function check_level() { global $ir; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); } What this does is removes the current system, so that mine is being used :) Now we need to open up globals.php and before ?> add this include 'levelup.php'; now we have to make a file called levelup.php and upload it to your server <?php $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); if($ir['exp'] >= $ir['exp_needed'] && $ir['level']!=$set['max_level']) { $expu=$ir['exp']-$ir['exp_needed']; $ir['exp']=$expu; if ($set['level_gain']>0) {$gain='<br>You received $'.(($ir['level']+1)*$set['level_gain']); $gainsql=' `money`=`money`+'.(($ir['level']+1)*$set['level_gain']).',';} $db->query("UPDATE `users` SET".$gainsql." `level`=`level`+1, `exp`=$expu, `energy`=`energy`+".$set['energy_gain'].", `brave`=`brave`+".$set['brave_gain'].", `maxenergy`=`maxenergy`+".$set['energy_gain'].", `maxbrave`=`maxbrave`+".$set['brave_gain'].", `hp`=`hp`+".$set['hp_gain'].", `maxhp`=`maxhp`+".$set['hp_gain']." WHERE `userid`=".$ir['userid']); event_add($ir['userid'], 'You have leveled up you are now level <strong>'.($ir['level']+1).'</strong>'.$gain, $c); $unlocks='<em>None</em>'; $q=mysql_query("SELECT `cityname` FROM `cities` WHERE `cityminlevel`=".($ir['level']+1)); if (mysql_num_rows($q)>0) { $unlocks='<strong>You can travel to:</strong><ul>'; while ($c=mysql_fetch-array($q)) { $unlocks=$unlocks.'<li>'.$c['cityname'].'</li>'; } $unlocks=$unlocks.'</ul>'; } echo ' <div align="center"> <table width="50%"> <tr> <td> <strong>You have leveled up!</strong> </td> </tr> <tr> <td> You are now level: '.($ir['level']+1).' </hr> <strong>Unlocks:</strong><br> '.$unlocks.' </td> </tr> </table> </div>'; } ?> INSERT INTO `settings` ( `conf_id` , `conf_name` , `conf_value` ) VALUES ( NULL , 'energy_gain', '2' ), ( NULL , 'brave_gain', '2' ), ( NULL , 'level_gain', '' ), ( NULL , 'max_level', '100' ), ( NULL , 'hp_gain' , '50' ); change the settings values to what you like then you are done screen shoot
  11. It was just much easier to navigate when looking for the latest topics IMO
  12. Please! :D
  13. http://www.tapatalk.com/plugin.php would be good for itouch/iphone/andriod users if you were to do this ;)
  14. just search and i found this, not bad for $30 TBH http://www.completevb.com/product/21
  15. lol i thought i was on the wrong website :P
  16. thanks, but i cant find out how to add rep :P
  17. well its not exactly the same as in a iframe if you click a link it will load within the iframe
  18. just tryed to download them in a txt file it says they are in folder: so is the field in the DB that specifies the folder empty?
  19. Empty Folder Inbox Messages 0 Empty Folder Sent Items Messages 0 but still Inbox contains 0 messages. You have 453 messages stored, of a total 500 allowed. (Empty Folder)
  20. Inbox contains 0 messages. You have 885 messages stored, of a total 500 allowed. (Empty Folder) i try emptying it and nothing happens!
  21. ive never liked iframe have you thought of using something like this echo '<div style="height:100px; width:100px; overflow:auto;">'; include 'page.php'; echo '</div>';
  22. yea thats what i ment forgot what it was called :P im sure its just an option they have to select in the admin cp
  23. It's almost perfect I need the portal back lol (with the most recent posts (more then ATM)) other ten that it's good :) Can we get the rate user like we had on SMF just checked and can't see it
  24. i think they are on about game play ie 11 days actualy in a lobby playing, im on 3 days and 4th presteige so im on cource for the 11 days 8|
  25. Small Update (3.1) I have updated the login/register so there are screen shots added (click the link in the navigation or the box with TM in it) Also i have added an updates page where you can see the progress i have made so far plus get info on old updates ;)
×
×
  • Create New...