Jump to content
MakeWebGames

Eruondo

Members
  • Posts

    123
  • Joined

  • Last visited

    Never

Everything posted by Eruondo

  1. Re: [MCCODES V2] Reset password + Secret question before password is sent. +1 Nice mod! Just one problem though. It sends the mail even if the secret question is wrong.
  2. Re: New Houses Mod [Mccodes V2] You have to make them yourself, :D Took me a while to figure it out too.
  3. Re: My jailescape   Whops, try   else { print "<font color='#FFFFFF'>While trying to escape from jail, a guard spots you. Looks like you are going to be here even longer than we thought! "; $time=rand(30,100); $db->query("UPDATE users SET brave=brave-7,jail=jail+$time WHERE userid=$userid", $c); }   Sorry, :P
  4. Re: My jailescape Just notised a little bug. replace else { print "<font color='#FFFFFF'>While trying to escape from jail, a guard spots you. Looks like you are going to be here even longer than we thought! "; $time=rand(30,100); $db->query("UPDATE users SET jail=jail+$time WHERE userid=$userid", $c); } with else { print "<font color='#FFFFFF'>While trying to escape from jail, a guard spots you. Looks like you are going to be here even longer than we thought! "; $time=rand(30,100); $db->query("UPDATE users SET brave=brave-7 jail=jail+$time WHERE userid=$userid", $c); } and everything should be fine.
  5. Re: My jailescape Thanks, I would add it in, but I'm not allowed, :roll:
  6. Re: My jailescape Thanks, I'm glad it's working, :-D
  7. This is my first mod, so go easy on me. Save this as jailescape.php <?php include "globals.php"; print " <font color='#FFFFFF'><hr width='70%'><h3>Jail</h3></font><hr width='70%'/> "; if ($ir['brave'] < 7) { die("<font color='#FFFFFF'>It costs seven brave to try to escape. Come back later. <hr width='70%'>[url='#']Back[/url] <hr width='70%'></font>"); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$ir['userid']) { die("<font color='#FFFFFF'>Invalid user. <hr width='70%'>[url='#']Back[/url] <hr width='70%'></font>"); } if(!$ir['jail']) { die("<font color='#FFFFFF'>You are not in jail! <hr width='70%'>[url='#']Back[/url] <hr width='70%'></font>"); } $mult=$ir['jail']/$ir['crimexp']; $chance=rand(1,100)+$mult+5; $gain=$ir['jail']/10; if(rand(1,100) <= $chance) { print "<font color='#FFFFFF'>You successfully escaped from jail. "; $db->query("UPDATE users SET crimexp=crimexp+{$gain} WHERE userid=$userid"); $db->query("UPDATE users SET brave=brave-7 WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid=$userid"); } else { print "<font color='#FFFFFF'>While trying to escape from jail, a guard spots you. Looks like you are going to be here even longer than we thought! "; $time=rand(30,100); $db->query("UPDATE users SET jail=jail+$time WHERE userid=$userid", $c); } print " <hr width='70%'>[url='#']Back[/url] <hr width='70%'>"; $h->endpage(); ?>   and add this to your jail.php if($ir['jail']) { print " [url='jailescape.php?ID={$ir['][Try to escape][/url]"; }   And that should be it.
  8. Re: Questions about languages. Thanks, I think I've got what I need.
  9. Re: Questions about languages. Thank you for answering! Still need more answers though, so if you've got a minute, thanks!
  10. Re: Businesses Mod [Mccode V2]   This mod doesn't work. I have it on my game and you cant add anyone to your business. It works with me. It just needs some editing. I've sorted out all bugs except the one with the daycron. Which I still need some help with, please. :| Every time the cron is run, it takes the profits for that day, and overwrite what you have in the vault. Example: I have 500k in my vault, New day comes and I earn 2.5k that day Now I only have 2.5k in the vault. Could someone please help? I bet it's something really simple, but I've been working on this since friday.
  11. I'm writing an exam paper, and my topic is intercultural relations. One of the things i write about is languages, and therefore I'm performing a little survey. That brings me to my questions, which I hoped you could take two minutes to respond to. 1. How old are you? 2. Which country do you live in? 3. How many and which languages do you speak? 4. Where did you learn them? Thank you!
  12. Re: New Houses Mod [Mccodes V2] Is there a way you can make it so that all new users automatically live in the default house when they move in? Rigth now it says on the index page that they live in the default house, but in houses.php it says you don't own any houses. If you get it?
  13. Re: Rise Of Lycans Screenshots is misspelled. Only one word, not two. Link doesn't work, neither does contact us. Voting does'nt work. Newspapers scrolls to fast, and I would have gotten rid of the yellow text, and gone all white. Other than that, I like it!
  14. Re: Businesses Mod [Mccode V2]   I've got the same problem. I guess it's got something to do with either the `busCash` = `busCash` + '%d' or ($new_profit - $bs['busCash']) part in the business_cron.php. Am I right? I'm looking for a fix, but I hate MySQL. Argh, how I wish I was back in the good ol' flashdays.
  15. Re: Businesses Mod [Mccode V2] I set the standard number for all new businesses in the database to five. Not a wery elegant solution, but I'm a n00b and it get's the job done. And then I changed the code so that the price of upgrading is not dependant of the max amount of employees, but the price of the business + the price of the upgrades.
  16. Re: Which File Extension are You?
  17. Re: Businesses Mod [Mccode V2] It's the same error I had. It's because the code does not write to the database, so max members in the database is zero.
  18. Re: [MCCODES V2] Stop Users Refreshing attack pages / Leaving Fight I'm sorry, but this does not work for me. The message just pops up under the rest of the attack screen. Any ideas?
  19. Re: [Review] The Darkest Fate Thanks, :-D Yeah, we've done all the images ourselves. Gurpreet, could you please tell me how it's insecure? I'm pretty new at security.
  20. Re: Businesses Mod [Mccode V2]   1) Nope there is no reason, I presume Richard did it like that to keep it a bit more organised. 2) It is working quite well on my side. could u give us a bit more information please.   Nevermind, I fixed it. New problem though. :roll: Hope you can help. In KiX's upgrade business mod, I have a little problem. I get no errors, it does not take the money, and the database is not updated. Here is the code line: mysql_query(sprintf("UPDATE `businesses` SET `busEmployees` = busEmployees+5, `busMoney` = busMoney - ".$price_upgrade." WHERE `busDirector` = ".$ir['userid']."")); Sorry for my n00bness.   Alrigth, thanks, :wink:
  21. Re: Businesses Mod [Mccode V2] But that won't stop them from quitting theire job, getting a job in a company and then get a new standard job?
  22. Re: [Review] The Darkest Fate That would be the businessmod running in, :D Well, I've gotta have the ads. That's simply how I earn my money. But perhaps I could get a new place for it. Anyhow, how do you like the game itself?
  23. Game name: The Darkest Fate URL: http://www.thedarkestfate.com Please tell me what you think, :D And, if you please, give me a ?/10 rating! I'll happily accept constructive critisism.
  24. Re: Businesses Mod [Mccode V2] I've done a little investigating. It seems that the 'busEmployees' database field does not update. It stands as 0 all the time, even when i try to upgrade member capacity. Can anyone help? And is there any special reason why we can't add businesscron to the daycron? Plus, thanks to Richard and KiX, great mod!
  25. Re: Businesses Mod [Mccode V2] I get this message, but I've got space... :? Any ideas?   "Your business cannot hold more members at this time."
×
×
  • Create New...