
The Ace
Members-
Posts
363 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by The Ace
-
Anyone know why sometimes the stats page says "The average player has in their bank account: ?-1,459,214,237. " Yet sometimes it's normal and in positve numbers...? Just slightly confused me.... ;) Ggl.
-
Re: A little ponder But that might change by the year 2250... ;) Ggl And it would be interesting if such a script was made... tehe. :)
-
Re: A little ponder Well, no one as of yet. ;) Ggl. Cheers. Ggl. EDIT: Just in case peeps do get that much... ;) Ggl. See, my game is future based and the economy is growing. Ggl.
-
This is no biggy but has made me ponder: How do I remove the 9,223,372,036,854,775,808 cap? Would I change the field in the DB from float to bigint? Ggl. Thanks. :)
-
Re: New In-Game Template I really like it!! I like the colours you have used and the background is impressive. I would like to make my own game template, but I don't know where to start!! ;) Ggl.
-
Re: Nerve Bar This is most likely because of a mod or crimes that use brave, where you have the query: UPDATE users SET brave=brave-whatever But do you have: WHERE brave > 0 Or, for some reason, the user might be able to do a certain crime without the required brave and therefore goes into negative....
-
Re: Donating Problem LUKE!! Thanks so much! "Make sure the pack is allowed" That made me ponder, and I realised I had missed out a small amount of code where it states that if $pack != 5, etc, and forgot to add my new packs. :| But hey ho, thanks a lot. =D
-
Re: [V2] Upgraded Brothel What about this: <?php include "globals.php"; $price = 50; //The price of the hoes $cashfh = $price * 100; //The total cash your hoes earn a day and give to you print "<h3>Brothel</h3> [i]Sign up to the brothel with your bought hoes and gain some money each day.[/i] [b]You currenltly have {$ir['hoes']} Meaning you earn {$cashfh} a day!"; switch($_GET['action']) { case "join": join(); break; case "joinconfirm": joinconfirm(); break; case "leave": leave(); break; case "buy": buy(); break; case "buyhoes": buyhoes(); break; case "buyconfirm": buyconfirm(); break; default: index(); break; } function index() { global $db, $ir,$c,$userid,$h; print "[url='.$_SERVER[']Join brothel And Buy Hoes[/url] [url='.$_SERVER[']Buy Extra Hoes[/url] [url='.$_SERVER[']Leave and loose all your hoes[/url] "; } function join() { global $db, $ir,$c,$userid,$h; print "So, you would like to join the brothel and buy some hoes? It costs [b]FREE[/b] to sign up and \$5000 for each hoe. From each hoe you gain \$100 a day [b]How many hoes would you like to buy? You need 1 To Join![/b] <form action='.$_SERVER['PHP_SELF'].'?action=buyconfirm' method='post'> <input type=text name=hoes> <input type=submit value=submit> </form> "; } function joinconfirm() { global $db, $ir,$c,$userid,$h; print "We have now taken your cash and you have now joined"; $db->query('UPDATE `users` SET money = money - $price WHERE userid = $userid'); $db->query('UPDATE `users` SET brotheljoin = 1 WHERE userd = $userid')"; } function buy() { global $db, $ir,$c,$userid,$h; print "You can only buy one hoe a day, So would you like to buy a hoe today? [url='.$_SERVER[']Buy your hoe ($5000)[/url] "; } function buyhoes() { global $db, $ir,$c,$userid,$h; print "Buying A Hoe "; if($ir['money'] < '2000') { print "<font color=red>Error!</font> You dont have enough for the hoe you need 2000 dollars [url='index.php']Back Home[/url] "; } if($ir['money'] > '1999') { print "<font color=green>Success!</font> You buy a hoe for 2000 Dollars"; $db->query('UPDATE users SET money = money - 2000 WHERE userid = $userid'); $db->query('UPDATE users SET hoesbuy = 1 WHERE userid = $userid'); $db->query('UPDATE `users` SET money = money + totalhoes * 100 WHERE userid = $userid')"; } if($ir['hoesbuy'] == 1) { print "<font color=red>Error!</font> You have already bought a hoe today!"; } function leave() { global $db, $ir,$c,$userid,$h; print "Leaving Brothel "; if($ir['brotheljoin'] == '0') { print "<font color=red>Error!</font> You are not joined in the brothel [url='index.php']Back Home[/url] "; } if($ir['brotheljoin'] == '1') { print "<font color=green>Success!</font> You leave the brothel and you get rid of all your hoes"; $db->query('UPDATE users SET totalhoes = 0 WHERE userid = $userid'); $db->query('UPDATE users SET brotheljoin = 0 WHERE userid = $userid')"; } $h->endpage(); ?> Not too sure.....TBH. Ggl.
-
Re: Donating Problem F**k's sake! That didn't work. I even tried making the pack give IQ and made the query look similar to the one for the standard pack.... didn't work. :x I am so frustrated by this stupid thing. Therefore, I don't even know if any other pack works.... Would it be easier if I posted my donator.php and ipn_donator.php? Or shouldn't I because people shouldn't know what the script says? I'm really trying to think what has to be done to make this damn thing work! It's pissing me off SO much!!! Now, I don't know why but the password in config.php is different to my current password.... does anyone know if this has any affect on it? And I am sure I changed config.php to match my current one.... so I'm left f**king confused. Grr. :x
-
Re: [mccode v1] DONATION PACKS TO ITEMS First of all I must say that you are still using the donatordone.php to credit the user??? If so I must say that is a bad idea, I found that out real quickly, if I were you I would read up on the forums and use the ipn file. Works great. I made this to work with V2 and if I get some extra time I will see what I can do about making it work on V1 if ya'll still need it, I don't mind its just finding the time. Actually its alot easier to work with on V1 if I remember correctly lol. Why is it a bad idea to use donatordone.php??
-
[MCcodes All] Staff Members cannot be attacked.
The Ace replied to Undergroundcity's topic in Free Modifications
Re: [MCcodes All] Staff Members cannot be attacked. Scratch what I said... Ggl. -
Re: Donating Problem Thanks. :D I'll try that when I can. =D
-
Re: Donating Problem Ah, OK, thanks... hmm, :( Um, would it have anything to do with that in donator.php I have (for one of the packs) in the form: value="http://{$domain}/donatordone.php?action=done&type=twohundreddollars" Yet for the same pack in ipn_donator.php I have $t="twohundredpounds"; Do the red bits NEED to be the same... I know, I sound like a total noob! Ggl.
-
Re: Donating Problem Hmm, I tried the new queries out last night and they didn't work. :| The pack I was buying with my mum's account costs ?1.50 and gives the user ?5 billion game money. Now, I received the money into my PayPal, but she didn't receive the 5 billion! Grr. This is SO bloody annoying. I have added the correct code into the donator.php and the ipn_donator.php. Is there another script that needs editing so the user can actually get their things? Also, it didn't go into the dps_accepted table in the database... :| Any ideas?
-
Re: Mccodes V2 crime formula help There are some good topics on CE that explain this, but I'll explain here anyway. ;) OK, here is one formula: ((WILL*3.5)/3)+(LEVEL/3) Now, this formula produces a HIGH chance of success. At will 100 and level 1, this comes out with: 117. This is a 117% chance of succeeding. Now, to make it harder, decrease the number the will is multiplied (3.5), increase the division number (3,3). A low success formula would be: ((WILL*1.2)/10)+(LEVEL/8) This produces 12.125% chance of succeeding. (Level and will the same as before). To make the crime easier, apply the same change, but vice versa. Therefore the multiplication is increase and division numbers decreased. Easy crime: ((WILL*15)/2)+(LEVEL/2) This produces a 750.5% chance of success. Hope this helps ya. :) Mail me if you need any further help. :D
-
Re: Donating Problem Ha. Gard. That simple. Jeez! Thanks AlabamaHit! :D I dunno whay I was trying to complicate things! Ggl.
-
Re: Donating Problem I think I'm an idiot.... For the packs that don't give stats, should it just be like a normal query: $db->query("UPDATE users u SET u.money=u.money+20000000000 WHERE u.userid={$for}"); If it is, I'll cry. ;) Ggl. =D
-
Re: Donating Problem Sorry, I also forgot to mention that 2 users have bought the standard pack, which gives money/crystals/IQ. They both received ALL of it and the Donator Days. So there must be a problem with the packs that don't involve stats.....well, that's what I think anyways! Ggl. But thanks, and I'll contact my host now. :)
-
Hey all. I have added some money packs to my game. Someone bought one (for ?5) but wasn't credited the money. I have added the relevant code to donator.php and the ipn_donator.php. Would this issue be because the query being ran in order to give the money involves userstats? I did receive the money.... Here is the query in ipn_donator.php: $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money+20000000000 WHERE u.userid={$for}"); $t="fivepoundsmoney"; As you can see, it is only updating the money...so would I need the LEFT JOIN userstats etc...?? I would like to get this issue resolved ASAP please. Thanks, The Ace EDIT: Also, it is not inputting into my database that that user bought the DP/Money Pack.... :?
-
Re: Weird cron problem Have you contacted your host about the issue? They might have the solution...
-
Re: [MOD all MCC's] LET IT SNOW WOW! This is amazing. Nice work!
-
Re: [showcase] Red Fury Wow, game looks really good!! I'll have a proper look tomorrow, when I'm not as tired!! ;) Ggl.
-
Hello all. I was wondering, do special characters in names, such as: ? ? ? ? affect sending messages to that user? In a game that I played, I had special characters in my name, and sometimes I could receive messages, yet sometimes I couldn't.... Anyone actually know why this happened!? Ggl. :lol:
-
Re: [V2] Libary Sniko did state that in his first post..... ;) Nice mod idea mate!! Keep up the good work. :-D
-
Re: Crimes??? The formulas are for the rate of success. This makes the crime easy: ((WILL*3.5)/3)+(LEVEL/3) Now, to make them harder, make the red number smaller, the blue number bigger and the purple color bigger. And vice versa to make the crime easier. If you need anymore help, just ask. ;) ggl.