Jump to content
MakeWebGames

DeaTH_RideR

Members
  • Posts

    132
  • Joined

  • Last visited

Everything posted by DeaTH_RideR

  1. lol i just figured i would play follow the leader and post so i can raise my post count , cause surely this thread should have been locked a long time ago. no need for a 6month debate.
  2. i signed up lastnight , cant say i spent very much time on there but i will be back to check it out some more and hopfully find something that will keep me playing . From what i did see 30min to get some energy is not going to keep players around, well atleast not me anyway.   wow 12 hours later and still dont have full energy i can say i wont make this a game i will sit and play . good luck
  3. i look forward to seeing some screenies . this sounds like something i been looking for
  4. thanks buddy i'll work on that
  5. can someone show me how to set this up by user location ? So like players in city 1 cant buy things from city 5
  6. http://makewebgames.io/board791/27191-mccode-v2-item-descryption/
  7. i want my dollar back :P just kidding ,its nice to see ya back around
  8. General Gaming Discussion Want to discuss gaming with the community...here is where. Share your experiences and opinions on browser games you play. :thumbdown:
  9. works great , thank you for this :thumbup:
  10. thanks guys, i been try to figure out a different way to do it so i could add in location and with your help i got it .
  11. Hitman 25 asked for something to help limit the attacks on his game. request This might not have been just what ya wanted but here it is. it's what i use and serves its purpose. I'm sure it could be done better,but it works .Ok here we go.   ALTER TABLE `users` ADD`fatigue` int(11) NOT NULL default '10'; ALTER TABLE `users` ADD`maxfatigue` int(11) NOT NULL default '100';   ADD this with the others for your new bar: $fnperc=(int) ($ir['fatigue']/$ir['maxfatigue']*100); $fnopp=100-$fnperc; [b]Fatigue:[/b] {$fnperc}% <img src=images/fireflash.gif width=$fnperc height=10><img src=redbar.png width=$fnopp height=10> <hr /><hr />     next open attack.php . I have added some of my attack file so you can see where to put the if statement   <?php $atkpage=1; include "globals.php"; include "travellingglobals.php"; if($ir['attackban']) { $q=$db->query("SELECT * FROM attackban WHERE ab_userid=$userid"); $r=$db->fetch_row($q); print"[b]<font color=red size=+1>You have been attack banned for {$r['ab_days']} days. Reason: {$r['ab_reason']}</font>[/b] [url='index.php']> Back[/url] "; $h->endpage(); exit; } if ($ir['fatigue'] == 100) { echo 'You cannot attack at this time, your just to tired.'; $h->endpage(); exit; } $_GET['ID'] == (int) $_GET['ID']; if(!$_GET['ID']) { print "WTF you doing, bro?"; $h->endpage(); exit; } else if($_GET['ID'] == $userid) { print "Only the crazy attack themselves."; $h->endpage(); exit;   in the same file look for: print " [b]What do you want to do with {$odata['username']} now?[/b] <form action='attackwon.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Take Their Wallet' /></form> <form action='attackbeat.php?ID={$_GET['ID']}&bounty={$_GET['bounty']}' method='post'><input type='submit' value='Brutally Assault Them' /></form> <form action='attacktake.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Leave Them To Rot' /></form>";   ADD this with the others $db->query("UPDATE `users` SET `fatigue` = `fatigue` + 10 WHERE `userid` = $userid");   Then add this to your cron_hour   $db->query("UPDATE `users` SET `fatigue` = `fatigue` - 10 WHERE `fatigue` >= 10");   hope this helps ya out.
  12. lmao let me get back to you on this Ok after Danny helping me fix the level check and me jacking with the brave check for 2hours, i have it all working.   ALTER TABLE `users` ADD `braveLVL` INT(3) NOT NULL DEFAULT '1'; ALTER TABLE `users` ADD `cEXPneeded` INT(11) NOT NULL DEFAULT '500';     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['hp']+=50; $ir['maxhp']+=50; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); $query = sprintf("UPDATE users SET %s=%s+1,%s=$expu,%s=%s+2,%s=%s+2,%s=%s+50,%s=%s+50 WHERE userid=%u", $ir['level'], $ir['level'], $ir['exp'], $ir['energy'], $ir['energy'], $ir['maxenergy'], $ir['maxenergy'], $ir['hp'], $ir['hp'], $ir['maxhp'], $ir['maxhp'], $ir['userid']); $db->query($query); } }     function check_brave() { global $db; global $ir,$c,$userid; $ir['cEXPneeded']=(int) ($ir['braveLVL']*500); if($ir['crimexp'] >= $ir['cEXPneeded']) { $ir['braveLVL']+=1; $ir['maxbrave']+=5; $ir['cEXPneeded']=(int) ($ir['braveLVL']*500); $db->query("UPDATE users SET maxbrave=maxbrave+5,braveLVL=braveLVL+1 WHERE userid=$userid"); } }   thanks to everybody that had a hand in helping me get what i wanted for my game. This has been tested and works great :!: :thumbup:
  13. ill bump :P this just cause im a needy bitch
  14. that would make my week :thumbup:
  15. yeah ,you should redo it :thumbsup:
  16. I know this is really old but i was wondering if somebody would be so kind as to remake this .pls
  17. mine works fine.   if ($dodare == 2) { $cash2 = rand(5000,7000); $pop2 = ($ir['popularity'] - 3); print "<h3 />Being a Dare-Devil</h3> You decide to be a dare-devil and try to dodge on-coming traffic. You dodge the first 3 cars to wonderful applause, but you get hit by a speeding lorry. You wake up in hospital after receiving \$".money_formatter($cash2,'')." for your efforts. Unfortunately, you lost some popularity. <font color = 'red' />Your popularity is now at $pop2.</font> <a href = 'hospital.php' />Go To Hospital</a>"; $dare2 = sprintf("UPDATE `users` SET `money` = `money` + '%d', `dare` = `dare` - '%d', `club` = '%d', `clubvisits` = `clubvisits` + '%d', `hospital` = `hospital` + '%d', `hospreason` = 'Got hit by a car while being a dare-devil' WHERE `userid` = ('%u')", $cash2, 8, 0, 1, 150, $userid); $db->query($dare2); $dare2a = sprintf("UPDATE `users` SET `popularity` = `popularity` - '%d' WHERE `userid` = ('%u') AND `popularity` >= '%d'", 3, $userid, 3); $db->query($dare2a); }
  18. if($ir['donatordays']) { $u = "<font color=silver>{$ir['gangPREF']}{$ir['username']}</font>";$d="[img=donator.gif]"; } mysql_query('UPDATE `users` SET `maxenergy` = 150 WHERE `donatordays` > 0'); mysql_query('UPDATE `users` SET `maxenergy` = 100 WHERE `donatordays` = 0');   then this for your attack.   if($_SESSION['attacking']==0 && $ir['attacking'] == 0) { if ($youdata['energy'] >= $youdata['maxenergy']/3) { $youdata['energy']-= floor($youdata['maxenergy']/3); $me=floor($youdata['maxenergy']/3); $db->query("UPDATE users SET energy=energy- {$me}, enfull=0 WHERE userid=$userid"); $_SESSION['attacklog']=""; $_SESSION['attackdmg']=0; } else { print "You can only attack someone when you have 50% energy"; $h->endpage(); exit;   i dont know if thats what your wanting but this is how i have mine works fine. no need to edit the gym for this, they get 10 trains for non donators and 15 for donators
  19. Incentive voting: AKA you don't get the reward unless you actually do the vote. weapons and armor take damage and you cant attack unless fixed. Karma: the adding of a new bar that changes what it says when you reach a new level of karma from good to bad and back the other way . would need a basic crime like page to add karma acts. like say you start at neutral then you could do a good karma act and would change to nice after so much karma exp. then after you have made it to the end ,something like god like, you could start doing bad karma acts and go the other way
  20. $equip = array( $ir['equip_primary'] => 0, $ir['equip_secondary'] => 0, $ir['equip_armor'] => 0 ); $q = $db->query("SELECT * FROM items WHERE itmid IN({$ir['equip_primary']}, {$ir['equip_secondary']}, {$ir['equip_armor']})"); while($r=$db->fetch_row($q)) { $equip[$r['itmid']]=$r; } print "<table width='75%' border='2'> <tr> <td width='25%' align='center'>[b]Primary Weapon[/b]</td> <td width='25%' align='center'>[b]Armor[/b]</td> <td width='25%' align='center'>[b]Secondary Weapon[/b]</td> </tr> <tr> <td align='center'>"; if($equip[$ir['equip_primary']]['itmpic']['itmdesc']) { print"[img=/itmpics/{$equip[$ir[]"; } else { print "No item image."; } print "</td> <td align='center'>"; if($equip[$ir['equip_armor']]['itmpic']['itmdesc']) { print"[img=/itmpics/{$equip[$ir[]"; } else { print "No item image."; } print "</td> <td align='center'>"; if($equip[$ir['equip_secondary']]['itmpic']['itmdesc']) { print"[img=/itmpics/{$equip[$ir[] {$ir['itmname']}"; } else { print "No item image."; } print "</td> </tr> <tr> <td align='center'>"; if($equip[$ir['equip_primary']]['itmid']) { print"[url='unequip.php?type=equip_primary']Unequip Item[/url]"; } else { print "Nothing equipped."; } print "</td> <td align='center'>"; if($equip[$ir['equip_armor']]['itmid']) { print"[url='unequip.php?type=equip_armor']Unequip Item[/url]"; } else { print "Nothing equipped."; }
  21. thanks for the kind words guys means a lot :thumbup:
  22. yes im refering to 1 browser and 2 or 3 windows open. like im on game if i open another tab and go to game im already signed in, i do this when i listen to my playlist so i can still do other things plus listen to music . some other people want to use it to take meds in the middle of an attack and thats why i was asking. im greatful that you guys responded so fast :thumbup:
  23. I would like to ask this great commuinity for some help. My question for anyone that would like to help is is there a way to limit a user to only have 1 window open at a time. as i have seen and used before a player can train, attack, refill energy, will and this and that. If you could limit the users to 1 window it could help stop a lot of issues with those members that i guess are just cheats at life since they have to try to cheat a game.
  24. sure they did :P
×
×
  • Create New...