Jump to content
MakeWebGames

R!der

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

Everything posted by R!der

  1. Re: [mccode] Mining mod PM me your game url
  2. Re: [mccode] Mining mod Put it in your 5 minuite cron. which being the energy update one.
  3. Re: sms billing   But thay might make enough money to lose that aswell
  4. Re: need help   <?PHP print" [img=main.gif] "; ?>   That will show a image on your game login but replace "main.jpg" with your own image
  5. Re: need help new background asin change the color? if so find this is login.php   background-color:#000000;   then change #000000 to what ever color code u want there
  6. Re: sms billing Hmm thanks for that.. my game isnt bringin in that much at the moment lol. i think i will hold off that idea till i get more donating members, Thanks LostOne. +1 for the reply
  7. I dont know where to put this so sorry if its in the wrong place.... I am looking for another way for my users to donate to the game... Does anyone know where i can get a good sms provider its something like micropayments Something like TC used to have where the users sends there id to a number, Thanks for your help
  8. Re: ****FREE Mining mod****   Thay dont get much as it is. when i was testing it i used about 10k power and ended up getting about 2k crystals
  9. Re: ****FREE Mining mod****   Oh yea sorry forgot to add that in here.. Well i have max power at 100 and 100 power at default... when the user goes up a mining level thay get +10 max power This can be changed if you dont like the way it is set up... its basicly just set up to fit into my game lol
  10. Re: ****FREE Mining mod**** Its not been tested for lite only tested on 1.1 Post here if it works for lite. Thanks :D
  11. Re: ****FREE Mining mod**** If you look at the coding you will see its a way for users to get crystals/money Its basicly another skill thay can train which would hopfully get your more active members
  12. Re: ****FREE Mining mod**** This is optional open header.php and find $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; replace with $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $power=(int) ($ir['power']/$ir['max_power']*100); $minexp=(int) ( $ir['mine_exp']/$ir['mine_needed']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $pow=100-$power; $minex=100-$minexp; then find [b]Energy:[/b] {$enperc}% <img src=bargreen.gif width=$enperc height=6><img src=barred.gif width=$enopp height=6> [b]Will:[/b] {$wiperc}% <img src=bargreen.gif width=$wiperc height=6><img src=barred.gif width=$wiopp height=6> [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=bargreen.gif width=$brperc height=6><img src=barred.gif width=$bropp height=6> [b]EXP:[/b] {$experc}% <img src=bargreen.gif width=$experc height=6><img src=barred.gif width=$exopp height=6> [b]Health:[/b] {$hpperc}% <img src=bargreen.gif width=$hpperc height=6><img src=barred.gif width=$hpopp height=6> replace with [b]Energy:[/b] {$enperc}% <img src=bargreen.gif width=$enperc height=6><img src=barred.gif width=$enopp height=6> [b]Will:[/b] {$wiperc}% <img src=bargreen.gif width=$wiperc height=6><img src=barred.gif width=$wiopp height=6> [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=bargreen.gif width=$brperc height=6><img src=barred.gif width=$bropp height=6> [b]EXP:[/b] {$experc}% <img src=bargreen.gif width=$experc height=6><img src=barred.gif width=$exopp height=6> [b]Health:[/b] {$hpperc}% <img src=bargreen.gif width=$hpperc height=6><img src=barred.gif width=$hpopp height=6> [b]Power:[/b] {$ir['power']}/{$ir['max_power']} <img src=bargreen.gif width=$power height=6><img src=barred.gif width=$pow height=6> [b]Mine Exp:[/b] {$minexp}% <img src=bargreen.gif width=$minexp height=6><img src=barred.gif width=$minex height=6></td></tr>
  13. Re: ****FREE Mining mod**** Well i have tested it all seems to work fine for me. did'nt find any bugs in it and i tested it quite well while making it. But i am sure improvments can be made to it so it dont look too plain lol
  14. Re: Mining mod Forgot to say you need a cron to update power i have mine in the energy cron file   $query6="UPDATE users SET power=power+5 WHERE power<max_power";
  15. Re: Mining mod Thanks genocide :)
  16. Free mining mod, its pretty basic. anyone who can make inprovements to it then go ahead... mine.php <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); get_mine(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); switch($_GET['action']) { case 'mine': mine_1(); break; case 'minesub': mine_1_sub(); break; case 'mine2': mine_2(); break; case 'mine2sub': mine_2_sub(); break; case 'mine3': mine_3(); break; case 'mine3sub': mine_3_sub(); break; case 'mine4': mine_4(); break; case 'mine4sub': mine_4_sub(); break; case 'mine5': mine_5(); break; case 'mine5sub': mine_6_sub(); break; case 'mine6': mine_6(); break; case 'mine6sub': mine_6_sub(); break; default: mine_index(); break; } function mine_index() { global $ir,$c,$userid; print "Welcome to the mine shaft. There are 3 spots to go mining but thay are restricted depending on your mine level. Your mining level is {$ir['mine_level']} and you have {$ir['mine_exp']}/{$ir['mine_needed']} mining experience "; print " Crystal Mines [[url='mine.php?action=mine']Level 1 mine[/url]] [[url='mine.php?action=mine2']Level 20 mine[/url]] [[url='mine.php?action=mine3']Level 40 mine[/url]] Money Mines [[url='mine.php?action=mine4']Level 10 mine[/url]] [[url='mine.php?action=mine5']Level 30 mine[/url]] [[url='mine.php?action=mine6']Level 40 mine[/url]] "; } if ($ir['jailtime'] > 0){ print "The mine is closed to jail birds come back when thay release you"; exit; } if ($ir['hospital'] > 0){ print "You cant go mining while in hospital"; exit; } function mine_1() { global $ir,$c,$userid; if($ir['power'] < 10){ print "You need 10 power to mine here your have {$ir['power']}"; exit; } mysql_query("UPDATE users SET power=power-10 WHERE userid=$userid",$c); $rand_gems = rand(1,5); $rand_exp = rand(1,100); echo "You begin mining in the level 1 mine and found $rand_gems crystal(s). "; mysql_query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "[[url='mine.php?action=mine']Mine again[/url]] "; print "[[url='mine.php']Back[/url]] "; } function mine_2() { global $ir,$c,$userid; if($ir['power'] < 15){ print "You need 15 power to mine here your have {$ir['power']}"; exit; } if($ir['mine_level'] < 20){ print "You need to be mining level 20 to mine here you are mining level {$ir['mine_level']}"; exit; } mysql_query("UPDATE users SET power=power-15 WHERE userid=$userid",$c); $rand_gems = rand(1,20); $rand_exp = rand(1,300); echo "You begin mining in the level 20 mine and found $rand_gems crystal(s). "; mysql_query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "[[url='mine.php?action=mine2']Mine again[/url]] "; print "[[url='mine.php']Back[/url]] "; } function mine_3() { global $ir,$c,$userid; if($ir['power'] < 25){ print "You need 25 power to mine here your have {$ir['power']}"; exit; } if($ir['mine_level'] < 40){ print "You need to be mining level 40 to mine here you are mining level {$ir['mine_level']}"; exit; } mysql_query("UPDATE users SET power=power-25 WHERE userid=$userid",$c); $rand_gems = rand(1,40); $rand_exp = rand(1,600); echo "You begin mining in the level 40 mine and found $rand_gems crystal(s). "; mysql_query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "[[url='mine.php?action=mine3']Mine again[/url]] "; print "[[url='mine.php']Back[/url]] "; } function mine_4() { global $ir,$c,$userid; if($ir['power'] < 10){ print "You need 10 power to mine here your have {$ir['power']}"; exit; } if($ir['mine_level'] < 10){ print "You need to be mining level 10 to mine here you are mining level {$ir['mine_level']}"; exit; } mysql_query("UPDATE users SET power=power-10 WHERE userid=$userid",$c); $rand_money = rand(1,1000); $rand_exp = rand(1,100); echo "You begin mining in the level 10 mine and found $$rand_money . "; mysql_query("UPDATE users SET money=money+'$rand_money',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "[[url='mine.php?action=mine4']Mine again[/url]] "; print "[[url='mine.php']Back[/url]] "; } function mine_5() { global $ir,$c,$userid; if($ir['power'] < 15){ print "You need 15 power to mine here your have {$ir['power']}"; exit; } if($ir['mine_level'] < 30){ print "You need to be mining level 30 to mine here you are mining level {$ir['mine_level']}"; exit; } mysql_query("UPDATE users SET power=power-15 WHERE userid=$userid",$c); $rand_money = rand(1,3000); $rand_exp = rand(1,300); echo "You begin mining in the level 30 mine and found $$rand_money . "; mysql_query("UPDATE users SET money=money+'$rand_money',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "[[url='mine.php?action=mine5']Mine again[/url]] "; print "[[url='mine.php']Back[/url]] "; } function mine_6() { global $ir,$c,$userid; if($ir['power'] < 25){ print "You need 25 power to mine here your have {$ir['power']}"; exit; } if($ir['mine_level'] < 40){ print "You need to be mining level 40 to mine here you are mining level {$ir['mine_level']}"; exit; } mysql_query("UPDATE users SET power=power-25 WHERE userid=$userid",$c); $rand_money = rand(1,8000); $rand_exp = rand(1,600); echo "You begin mining in the level 40 mine and found $$rand_money . "; mysql_query("UPDATE users SET money=money+'$rand_money',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "[[url='mine.php?action=mine6']Mine again[/url]] "; print "[[url='mine.php']Back[/url]] "; } ?> global_func.php find function check_level() { 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['maxenergy']+=2; $ir['hp']+=50; $ir['maxhp']+=50; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); mysql_query("UPDATE users SET level=level+1,exp=$expu,maxbrave=maxbrave+1,maxhp=maxhp+25 where userid=$userid",$c); } } below that add function get_mine() { global $ir,$c,$userid; if($ir['mine_exp'] >= $ir['mine_needed']) { $minexp=$ir['mine_exp']-$ir['mine_needed']; $ir['mine_level']+=1; $ir['mine_exp']=$minexp; $ir['mine_needed']=(int) (($ir['mine_level']+1)*($ir['mine_level']+1)*($ir['mine_level']+1)*2.2); mysql_query("UPDATE users SET mine_level=mine_level+1,mine_exp=$minexp,mine_needed=mine_needed+1000,max_power=max_power+10 where userid=$userid",$c); } } the querys ALTER TABLE `users` ADD `mine_level` int(11) NOT NULL ; ALTER TABLE `users` ADD `mine_exp` int(11) NOT NULL ; ALTER TABLE `users` ADD `mine_needed` int(11) NOT NULL ; ALTER TABLE `users` ADD `power` int(11) NOT NULL ; ALTER TABLE `users` ADD `max_power` int(11) NOT NULL ; As i stated this is pretty basic. Please post your thoughts and comments lol Any problems let me know
  17. Re: mailbox with smilies Nice addition
  18. Re: function error Ah that worked thx :)
  19. I am trying to make it so i can add/edit/delete crimes via the admin panel but i seem to get this error   Fatal error: Call to undefined function: crimegroup_dropdown() in /******/*********/******/admin.php on line 2000 This is line 2000   Crime Group: ".crimegroup_dropdown($c,'crimeGROUP')."   Does anyone know what this error means and how i can fix it?
  20. Re: Switching Hoster You could always try iipanel.com. thay are cheap for what you get. i have been with them for about 8 months and have'nt had one problem with tham
  21. Re: need help , got another that won't work..attackwon.php Dont add it to attackwon.php add it to attackmug.php
  22. Re: Problem creating gangs Thx seany :)
  23. Ok i have run into a problem. my game wont make gangs. It takes the money from you and says "gang created" but it does'nt put you in the gang nor does it add the gang to the database. Anyone else found this to happen with there game or have a fix for it? It was working fine when i had the game. i aint even edited there files for it to go like that :S Thanks
  24. Re: Multi Account Issues     This worked for me. with no problems
  25. Re: Hospital time its ok i done it now thx
×
×
  • Create New...