
Eruondo
Members-
Posts
123 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Eruondo
-
I need them for - well, all known mccodes exploits. There you go. I've searched the forums, but I can't find anything, and I'm hoping that someone is willing to share them with us, =) Thanks! Regards, Eruondo.
-
Re: Earn More From your game - A Must Read Well, I got a message from him, answered it, and never heard from him again. The day after my game was hacked (my fault: suck at security). Can't prove that it was him, but well, I've got my suspicions. Luckily, I didn't give him access to anything :-D Still crap though, lost all my users and other stuff.
-
Re: Businesses Mod [Mccode V2] This part. $amount = mysql_num_rows(mysql_query(sprintf("SELECT * FROM `businesses_members` WHERE `bmembBusiness` = '%u'", $bs['busId']))); $new_customers = ((($bs['classCost'] / 5000) * ($amount + 1) + rand(-12, 18)) / 2); $new_profit = (($new_customers + rand(-4, 8)) * ((($bs['classCost'] / 2500) * rand(2, 8)) / 10) * ($amount + 1));
-
Cron problem - No energy for some users, others get it.
Eruondo replied to Eruondo's topic in General Discussion
Re: Cron problem - No energy for some users, others get it. Ah, right. That worked. Thanks! -
Cron problem - No energy for some users, others get it.
Eruondo replied to Eruondo's topic in General Discussion
Re: Cron problem - No energy for some users, others get it. I was wrong. It's not level one's who don't gain energy. I manually upgraded my level one testaccount to have a maxenergy of 13, instead of 12, and suddenly he began regaining energy. When I then went into register.php and changed the default to 13 maxenergy, instead of 12, they, again, didn't regain energy. When I then changeed the maxenergy from 13 to 12, he began regaining energy again! So, for some reason, it seems that all my users need to have their maxenergy upgraded before the cron works on them, and they can regain energy. This only applies to the energy, everything else works fine... I'm still really stuck on this stuff, so if anyone has any ideas? -
Re: Earn More From your game - A Must Read I've been selected to work with him. I think he's legit, and I'll let you know how it turns out, :D (Not what he does, since obviously he doesn't want to tell you, but how much I earned (if anything) and stuff.)
-
Re: Passport Mod (just a simple mod)
-
Re: Passport Mod (just a simple mod) Sorry, like this: print "You don't have enough money."; } else if( ((int) $_GET['to']) != $_GET['to']) { print "Invalid city ID"; } else { $q2=mysql_query("SELECT * FROM inventory WHERE inv_itemid='800' AND inv_userid=$userid",$c"); if(!mysql_num_rows($q2)) { print "You need a passport to travel! [url="buy_passport.php"]Buy one now![/url]"; else { print "Error, this city either does not exist or you cannot go there.";/code]
-
Re: Passport Mod (just a simple mod) Ah, yes ofcourse. $q2=mysql_query("SELECT * FROM inventory WHERE inv_itemid='800' AND inv_userid=$userid",$c if(!mysql_num_rows($q2)) { print" You need a passport to travel! [url="buy_passport.php"]Buy one now![/url]"; else {
-
Re: Crime Update This is what I use. Pretty much the same, but with a maximum maxbrave (100 in this example) and some different gain per level, and different formulas to level up a bravelevel. function check_brave() { global $db; global $ir,$c,$userid; if ($ir['maxbrave'] < 101) { $ir['crimeEXPneeded']=(int) (($ir['braveLVL']+1)*($ir['braveLVL']+1)*($ir['braveLVL']+1)*4.2+(500*$ir['braveLVL'])); if($ir['crimexp'] >= $ir['crimeEXPneeded']) { $ir['braveLVL']+=1; $ir['brave']+=5; $ir['maxbrave']+=5; $ir['crimeEXPneeded'] = (int) (($ir['braveLVL']+1)*($ir['braveLVL']+1)*($ir['braveLVL']+1)*4.2+(500*$ir['braveLVL'])); $db->query("UPDATE users SET brave=brave+5,maxbrave=maxbrave+5,braveLVL=braveLVL+1 WHERE userid=$userid"); } } }
-
Re: Earn More From your game - A Must Read What will this involve? Major game changes? Giving you rights to files and databases? Etc? A little more info please, even if you don't want to devulge exactly what your idea is.
-
Re: please help with this one thanks Ah. Sorry.
-
Re: Passport Mod (just a simple mod) save this as buy_passport.php <?php include "globals.php"; $price = 25000; print "<h3>Buy Passport</h3> "; switch($_GET['act']) { case "yes": yes(); break; case "no": no(); break; default: index(); break; } function index() { global $db,$ir,$userid,$price; if($ir['userlevel'] < 3) //set 3 to the level you want. { print " So, you need some illegal documents? I can get them for you, for \$$price... Would you like to buy one? [url='buy_passport.php?act=yes'][Yes][/url] [url='buy_passport.php?act=no'][No][/url]"; } else { print "Sorry, you need to be a higher level to buy a passport."; } } function yes() { global $db,$ir,$userid,$price; if($ir['money'] < $price) { print "You don't have enough money... Come back later."; } else { print "You've bought a passport!"; item_add($userid, 23, 1);//set 23 to passport item ID. $sql1 = sprintf("UPDATE users SET money = money - ('%u') WHERE $userid = ('%u')", $price, $userid); $db->query($sql1); } } function no() { global $db,$ir,$userid,$price; print "Oh. Okay. [url='explore.php']Back[/url]"; } $h->endpage(); ?> And then you just put up a link somewhere, (Like i like to out different shady charachters around my game, and make storylines with them.) Anyhows, just link to [url="buy_passport.php"]Buy passport now![/url] or, you could replace in monorail.php $q2=mysql_query("SELECT * FROM inventory WHERE inv_itemid='800'",$c); if(mysql_num_rows($q2)) { with $q2=mysql_query("SELECT * FROM inventory WHERE inv_itemid='800'",$c); if(!mysql_num_rows($q2)) { print" You need a passport to travel! [url="buy_passport.php"]Buy one now![/url]"; else { Tell me if it works!
-
Re: Helping me learn :) Here's one: Illegal boxing matches You can set up a match, bet, and win cash. But, there has to be a chance to get busted too. Example: A user pays $25,000 to set up a match. Other users bets on who is going to win. The user who sat up the match starts it when he/she think there is much enough cash in the pot, and the users who betted on the winner shares the winnings. The match arranger ofcourse, get's something too, but I won't steal all the fun from you, so you decide. I'm actually making something like this myself, but I'm guessing yours will come out better.
-
Re: please help with this one thanks I think he's done it already. We're way to slow.
-
Re: please help with this one thanks I guess it was include "global_functions.php"
-
Re: Energy not going up? I'm having exactly the same problem! How did you fix it?
-
Cron problem - No energy for some users, others get it.
Eruondo posted a topic in General Discussion
I've got a big problem with my five-min cron. Some users get their energy, while others get nothing! I've got no idea what's causing this, though it seems it applies mostly, if not only, to users who is level one. Please help, anyone? Here is my cron. <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } 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']; } //brave update $query="UPDATE users SET brave=brave+1 WHERE brave<maxbrave "; $query2="UPDATE users SET brave=maxbrave WHERE brave>maxbrave"; $query3="UPDATE users SET hp=hp+(maxhp/3) WHERE hp<maxhp"; $query4="UPDATE users SET hp=maxhp WHERE hp>maxhp"; $db->query($query); $db->query($query2); $db->query($query3); $db->query($query4); //enerwill update $query="UPDATE users SET energy=energy+(maxenergy/(25)) WHERE energy<maxenergy AND donatordays=0"; $query5="UPDATE users SET energy=energy+(maxenergy/(12.5)) WHERE energy<maxenergy AND donatordays>0"; $query2="UPDATE users SET energy=maxenergy WHERE energy>maxenergy"; $query3="UPDATE users SET will=will+10 WHERE will<maxwill"; $query4="UPDATE users SET will=maxwill WHERE will>maxwill"; $db->query($query); $db->query($query5); $db->query($query2); $db->query($query3); $db->query($query4); if($set['validate_period'] == 5 && $set['validate_on']) { $db->query("UPDATE users SET verified=0"); } if($set['validate_period'] == 15 && $set['validate_on'] && in_array(date('i'),array("00", "15", "30", "45"))) { $db->query("UPDATE users SET verified=0"); } ?> -
Re: My layout. Don't we all? :wink:
-
Re: My layout. Thanks a lot! :D I go by the K.I.S.S rule. (Keep It Simple Stupid). I'm still working on implementing much more images to replace and supplement static text, but mainly, this is how it's gonna end up. Anyhows, I forgot to supply you with an account. Username: Demo1 Pass: Demo
-
I've worked with graphics for a while, but I've never done any paid work. However, I would like to ask you to take a look at my game, http://www.thedarkestfate.com, and take a look at the layout and graphics there. Everything is homemade, so I would wery much like to hear what you think, and perhaps get an estimate on how much you think it's worth.
-
Re: Businesses Mod [Mccode V2] There is a job specials in here somewhere. Just take that and modify it to fit your needs. I can do it for you when I get home, but that's not until 1 1/2 weeks.
-
Re: First attempt at securing files. Ah, right! I (finaly) got it now! Thanks for sticking out with me, hopefully I'll make it worth your while in the end!
-
+1 for helping me get this Cron_5 Min to work
Eruondo replied to Joshua's topic in General Discussion
Re: +1 for helping me get this Cron_5 Min to work Hm. What's the deal with these? As far as I can see, they're not doing anything... $db->query($query); $db->query($query5); $db->query($query2); $db->query($query3); $db->query($query4);