
mj12
Members-
Posts
48 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by mj12
-
Re: [sHOWCASE] Avalon Broke the 100 players mark :)
-
Re: [Guide]MC Economy I had the same thought in mind with the hunger bar, but there really is no other way except if players just know that they have to eat 3 times a day or eat enough food.....calories depending on your level you would need a certain amount of calories, average calories = 2000. so instead of a hunger bar we would need a calorie bar. This would facilitate different foods, with differing prices, and differing values. I think i'm going to have to design this and implement this into my game as well as the tax mod. It won't eliminate inflation completely but it will definitely help. As soon as i finish this paper i'm going to start writing algorithms.
-
Re: [Guide]MC Economy I realised today that in many games users get stuff for free or next to nothing energy, brave, will. There should be some cost attached. Back to the hunger thing; maybe it can be that the higher you hunger the less you gain from anything. e.g. gainsFromtraining = gainsFromtraining * (1 - (hunger/100)) efficiencyIncrimes = efficiencyIncrimes * (1 - (hunger/100)) Players would have to buy various kinds of foods to satisfy this hunger, if not they wont be able to do anything meaningful. That kind of tax/price system would need tons of development
-
Re: [Guide]MC Economy Hunger is a good idea, it would need to be balanced though so that users dont get too annoyed because they have to eat. One way i was thinking was that users would gain energy slower if they didnt eat, like 2 every cron updates and the more the ate, they could increase this gain to the regular 10 or whatever its it. I also believe that taxation can be effective. If you can get the total value of a players' assets house, money, bank, crystals, items etc. you can tax them a percentage of it, in my game which is medieval based, taxation was very high in those times, so if you dont use your money you will lose it.... Will be back later have to go to class :)
-
Re: Help !!URGENT!! 114 players - Amount of cash in banks: $744,952,331. Fix that while you're at it too.
-
Re: [Guide]MC Economy The thing i've come to realize is that items that refill health, really arent needed users can just come online whenever they have these things and do *crimes or whatever If brave fills every 100 minutes and a crime can give a player 5000, in a month he can make 2.1mil and he doesnt have to use that for anything. I believe all of us game developers/owners need to come up with real necessities. I was thinking something along the lines of food, something users HAVE to buy/pay for regardless. Any ideas?
-
I need help with an update script for a little mod I did
mj12 replied to plintu's topic in Game Support
Re: I need help with an update script for a little mod I did Ok so in mc the current value of a stat has no effect whatsoever on how much of that stat you gain -
I need help with an update script for a little mod I did
mj12 replied to plintu's topic in Game Support
Re: I need help with an update script for a little mod I did what happens if the person goes to the gym and trains there stats? -
Re: [Guide]MC Economy One good way i feel, which i'm using to limit the economy in my non mc game is to look at how stuff happens in the real world. For example the number one cause of a bloated economy is bank interest, real banks do not give interest on a daily basis, its more monthly or quarterly and its not much either, what ive done is something similar to the reak banking system, everyone starts off with a basic kind of account which earns <2% interest every week. They can upgrade it but not by very much. To limit people from buying stats limit refills, or limit training e.g. Training requires no energy buy you can only train once per hour. Controlling bank interest is the main thing though
-
Re: [sHOWCASE] Avalon Thanks. I'm working on the voting sites now, but im only choosing certain ones, like apex, topweb games, top ranking games
-
Re: [sHOWCASE] Avalon Thanks, does anyone have any tips on getting more players?
-
Re: [sHOWCASE] Avalon You're registered. I think there's some problem with how im collecting ip addresses.
-
Re: [sHOWCASE] Avalon hmmm, i can't seem to re create that one
-
Re: [sHOWCASE] Avalon AHHH....NUTS It should be fixed now. Forget some quotation marks :cry: I wonder how many possible registrations I;ve missed
-
Re: [sHOWCASE] Avalon criminalexistence.com Visits: 8 Average pages:1.38 Average Time:00:00:08 Bounce Rate:75.00% What gives CE?
-
Re: [sHOWCASE] Avalon Can't find the edit button :( I've been working on it since October 2007 until now. Its built from scratch, with a few ideas i've seen on here, thanks for those. Hope everyone enjoys it.
-
Title: Avalon Site URL: http://www.worldofavalon.net Site Description: Avalon is a Persistent Browser Based Game set in medieval times. Players engage in the age-old struggle for great respect, unimaginable fame and untold riches. Your memories of life before waking up in a hut in Avalon are non-existent. No Memory, No Family, Nothing....All that remains is your will to live... to grow... to become a Legend. Begin The Ultimate Quest Now!
-
Re: [REVIEW] Cetwar WoW. 9/10 For Layout, Colours and Graphics 8/10 For Complexity Very Good Game +1 For prizes too.
-
Re: Gang-Warz The header isn;t good at all, and the animated status bars are distracting
-
Hybrid Solution? Using the time stamp with crons is to me the faster solution. For example: In your minute cron you can do this, but you will need to add the time when the user is supposed to come out of the hospital. //Update Hospital mysql_query("DELETE FROM hospital WHERE time <=".time()."") or die(mysql_error()); Then on the other pages all you would need to check is the hospital table to see whether the user is there or not. The delete query would only run if the current time is greater than the hospital time i.e the user has been in the hospital long enough. I think you folks also underestimate how fast mysql does things. i've seen in excess of 14,000 queries, inserts being executed in less than a second on a shared server. My 2 cents
-
mccode-v2 8 Lines to secure your site from known sql injections.
mj12 replied to Haunted Dawg's topic in Free Modifications
Re: [mccode] 8 Lines to secure your site from known sql injections. I think it needs to be said again, there is no one way to prevent attacks. I posted a function earlier, but thats just one part of the whole security issue. Here's what i do: 1. If you expect it to be a number make sure it is by using functions such as 'abs' 2. Treat all user input as unsafe, whether from forms or in the url string. 3. Use regular expressions to check inputs from users 4. Secure queries by 'sprintf' and 'mysql_real_escape_string' 5. Read as much as you can about securing websites and adapt the information accordingly -
mccode-v2 8 Lines to secure your site from known sql injections.
mj12 replied to Haunted Dawg's topic in Free Modifications
Re: 8 Lines to secure your site from known sql injections. Wont work. $_GET = sanitize($_GET); $_POST = sanitize($_POST); i assume that you know of recurssion. Note if (is_array($values)) { foreach ($values as $key => $value) { $values[$key] = sanitize($value, $quotes);//Recursive Function Call } } The function can clean/ sanitize/sanitise an array of any depth. EDIT: oops now i see what you meant :-o. -
mccode-v2 8 Lines to secure your site from known sql injections.
mj12 replied to Haunted Dawg's topic in Free Modifications
Re: 8 Lines to secure your site from known sql injections. Below is the code i use to secure all my sites against sql injections Edit: Thanks for the observation killah usage: $_GET=sanitize($_GET); $_POST=sanitize($_POST); function sanitize($values, $quotes = true) { if (is_array($values)) { foreach ($values as $key => $value) { $values[$key] = sanitize($value, $quotes); } } else if ($values === null) { $values = 'NULL'; } else if (is_bool($values)) { $values = $values ? 1 : 0; } else if (!is_numeric($values)) { $values = mysql_real_escape_string(mysql_prep($values)); if ($quotes) { //$values = '"' . $values . '"'; } } return $values; } function mysql_prep($value){ $magic_quotes_active = get_magic_quotes_gpc(); if($magic_quotes_active){ $value = stripslashes($value); } return $value; }