
Joshua
Members-
Posts
1,271 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Joshua
-
Helpful advice, however, I've learned that good games with a base usergroup tend to do well The fastest way to advertise is word of mouth. You get enough loyal players, they'll bring more. Do some in-game Referral Incentives, that helps Then sit back, give it time :)
-
Simple Free mod to start off---Would anyone use?
Joshua replied to Joshua's topic in Requests & In Production
Isnt it tho? -
As we are all trying to come up with our own ideas it's relatively hard to share them. You have many factors to take into affect. Just how skilled are you? How are you handling security and Layouts? What is your budget? What are things that you enjoy in games? We all enjoy differant games, I enjoyed prisonstruggle.com until it got bigger, and i love the werewolf/vampire theme type games, so I made one. Don't let us tell you what you like :)
-
If i put something along the lines of function html_array($r = false) { if (!(($r) || is_array($r))) { return false; } $ret = array(); foreach ($r as $key=>$val) { $ret[$key] = htmlentities($val,ENT_QUOTES); } return $ret; } in global_func then use html_array for all output and mres for all input on all my scripts that required it, Would this be a huge step to security if i took the time out to do it?
-
Simple Free mod to start off---Would anyone use?
Joshua replied to Joshua's topic in Requests & In Production
The last I checked, you tried to hack my site and Epicly Failed. Then used bots because that's all you could do. ooo Then claimed it was all just trying to "help" and used your base 64 encode.. -
Simple Free mod to start off---Would anyone use?
Joshua replied to Joshua's topic in Requests & In Production
Replace script with updated one :-) Just took out the sqlpro and added exit; function. Can't beleive a known malicious hacker is trying to tell me things wrong. Mirror much? :O -
Simple Free mod to start off---Would anyone use?
Joshua replied to Joshua's topic in Requests & In Production
Quite the contrary it does not "fail" Proper use of clean functions, strip tags, htmlentities, Plus the sql.pro i have, is just extra security. And it's not the "original" off cronwerks, it's been heavily modified. Thanks for trying tho :D Original Post updated, didnt think to remove that>< -
Yea, I just see to many of them :-) I went with a Vampire/werewolf/human theme, seen some do dwarves, mages etc. Be original :)
-
Just try and make them original. I've seen WAAAAAAAAAAAY to many games with the exact same mods, it gets a bit dull. Frankly, personally, I'm tired of the "mafia" crap anywho. But not hating on your game ;-) Just not my thing. Good Luck in your endeavors.
-
Simple Free mod to start off---Would anyone use?
Joshua replied to Joshua's topic in Requests & In Production
Ah hell he did didnt he >< Oh well, i just spent 2 hours making this po-dunk one so I'm gonna post it :p This basically gives users 5 presants to open. They can only open Each present one time. 2 of them give random money/points but have a slim chance they can go to jail or hospital. the other 3 give random items from your inventory Hope someone uses this >,< ALTER TABLE users ADD xmas tinyint(4) default '0'; Make file called xmas.php <?php include_once (DIRNAME(__FILE__) . '/globals.php'); if($ir['xmas'] > 4) { echo "You have already opened your presents from Santa"; $h->endpage(); } echo "<h4>Merry Christmas, Open your presents from Santa.</h4>"; switch($_GET['option']) { case 'xmas_1': xmas_1(); break; case 'xmas_2': xmas_2(); break; case 'xmas_3': xmas_3(); break; case 'xmas_4': xmas_4(); break; case 'xmas_5': xmas_5(); break; default: index(); break; } function index() { global $ir; echo sprintf(" Merry Christmas %s Santa has left you 5 presents to open under your christmas tree.</p>", htmlspecialchars($ir['username']));; echo "[url='?option=xmas_1']First Present[/url] "; echo "[url='?option=xmas_2']Second Present[/url] "; echo "[url='?option=xmas_3']Third Present[/url] "; echo "[url='?option=xmas_4']Fourth Present[/url] "; echo "[url='?option=xmas_5']Last Present[/url] "; } function xmas_1() { global $db, $ir, $userid, $h; if($ir['xmas'] !=0) { echo "Sorry, you have already opened this present from santa."; $h->endpage(); } $cr=rand(1,10); if($cr == 2) { echo "Santa gave you just what you always wanted! An elite computer for your household. Unfortunately when you plug it in, the computer short circuits and gives you one heck of a jolt! The ambulance is called and you must spend some time in the hospital"; $db->query(sprintf("UPDATE users SET hp = %d, hospital =%d, hospreason = '%s', xmas=%d WHERE (userid=%u)",1,5,'Electricuted from faulty merchandise',1,$ir['userid'])); $h->endpage(); exit; } else { $xm=$db->query("SELECT * FROM items WHERE itmbuyable=1 ORDER BY rand() LIMIT 1"); $r=$db->fetch_row($xm); $xmasitem=$r['itmid']; $name=$r['itmname']; $userid=$ir['userid']; echo "Merry Xmas, You have received a $name from Santa Claus[url='xmas.php']Back to Christmas Tree[/url]"; $db->query(sprintf("INSERT INTO inventory VALUES ('', %u, %u, %d)",$xmasitem,$userid,1)); $db->query(sprintf("UPDATE users SET xmas=%d WHERE userid=%u",1,$ir['userid'])); } } function xmas_2() { global $db, $ir, $userid,$h; if($ir['xmas'] !=1) { echo "You must open your presents in order! You missed the first one!"; $h->endpage(); exit; } $jail=rand(1,10); if($jail=7)// If Random Number is 7--User is Jailed { echo "After opening your 2nd package from Santa you are interrupted by a Knock on the front door. As you approach the front door you are taken back when the it is kicked in and agents swarm your house. Turns out the presents Santa gave you were hot merchandise and you have to pay the time. You're hauled off to jail."; $db->query(sprintf("UPDATE users SET jail = %u, jail_reason = '%s', xmas=%d WHERE (userid=%u)",5,'Holding stolen merchandise',2,$ir['userid'])); $h->endpage(); exit; } else { $money = mt_rand(100, 1000); $crystals = mt_rand(10, 50); echo sprintf("Instead of gifts this year you find %u money %u crystals in a small envelope. Merry Xmas!", "\$". number_format($money), number_format($crystals)); $db->query(sprintf("UPDATE users SET money = money + %u, crystals = crystals + %u, xmas = %d WHERE userid = %d", $money, $crystals, 2, $userid)); } } function xmas_3() { global $db, $ir, $userid, $h; if($ir['xmas'] !=2) { echo "You must open your presents in order. You missed the first 2!"; $h->endpage(); exit; } else { $xm=$db->query("SELECT * FROM items WHERE itmbuyable=1 ORDER BY rand() LIMIT 1"); $r=$db->fetch_row($xm); $xmasitem=$r['itmid']; $userid=$ir['userid']; $item=$r['itmname']; echo "Merry Xmas, You have received a $item from Santa Claus[url='xmas.php']Back to Christmas Tree[/url]"; $db->query(sprintf("INSERT INTO inventory VALUES ('', %u, %u, %d)",$xmasitem,$userid,1)); $db->query(sprintf("UPDATE users SET xmas=%d WHERE userid=%u", 3,$ir['userid'])); } } function xmas_4() { global $db, $ir, $userid,$h; if($ir['xmas'] != 3) { echo "You must open your presents in order! You missed the first 3!"; $h->endpage(); exit; } else { $xm=$db->query("SELECT * FROM items WHERE itmbuyable=1 ORDER BY rand() LIMIT 1"); $r=$db->fetch_row($xm); $xmasitem=$r['itmid']; $userid=$ir['userid']; $item=$r['itmname']; echo "Merry Christmas, Santa Claus has given you a $item for christmas. Happy Holidays!"; $db->query(sprintf("INSERT INTO inventory VALUES ('', %u, %u, %d)",$xmasitem,$userid,1)); $db->query(sprintf("UPDATE users SET xmas=%d WHERE userid=%u", 4,$ir['userid'])); } } function xmas_5() { global $db, $ir, $userid,$h; if($ir['xmas'] != 4) { echo "You must open your presents in order! You missed the first 4!"; $h->endpage(); exit; } else { $xm=$db->query("SELECT * FROM items WHERE itmbuyable=1 ORDER BY rand() LIMIT 1"); $r=$db->fetch_row($xm); $xmasitem=$r['itmid']; $userid=$ir['userid']; $item=$r['itmname']; echo "Merry Christmas, To celebrate the New Year Santa Claus has given you an $item. Happy Holidays!"; $db->query(sprintf("INSERT INTO inventory VALUES ('', %u, %u, %d)",$xmasitem,$userid,1)); $db->query(sprintf("UPDATE users SET xmas=%d WHERE userid=%u", 5,$ir['userid'])); } } $h->endpage(); ?> -
So i'm thinking about making a Christmas Mod for users to Open Presents from Santa. Users will receive items, money, crystals, or a Random chance to receive rare items you have in your game. Will only be able to open on a set date. Anyone use this? If so i'll get it done and post it up
-
Well hell, you just let my idea out of the bag i wanted to get something really nice done for xmas gift >< Thanks Illusions
-
Really now, I just trimmed/cleaned data with sprintf and abs intval'd the form data. What more can I do, Enlighten me :) i have an sql function that does everything else with a simple Include.
-
The layout isnt bad, Not much to do, no original Mods Just your average McCodes game :P Header is chucking out a division by zero error Decent security, tried a few hacks. not full proof, but not bad.
-
I do see one thing :P $query1 = sprintf("UPDATE `users` SET money = money - $cost WHERE `userid`=$userid"); mysql_query($query1); You sprintf but didnt sprint f anything :P hehe should be $query1 = sprintf("UPDATE `users` SET money = money - %u WHERE `userid`= %u", $cost, $userid); $db->query($query1); OR $db->query(sprintf("UPDATE `users` SET money = money - %u WHERE `userid` = %u", $cost, $userid)); But good work :)
-
Nice little mod :) I like mine tho >,< hehe
-
What does how long you spend have anything to do with anything? Your site got hacked because you woke up one day with a bug up your A** to make a site. You didn't bother learning anything just decided, hey i'll go steal a V2 version off the internet, make my own game and be rich! heh. News flash, doesnt work that way.
-
Original Script Updated + More Security added.
-
It has nothing to do with you being "New" It has to do with 8 Months ago I just started all this myself The differance is. I used what little brain I had and researched before i started. I learned to pull down register, I already knew html basics(as almost any 3 year old does), AND I NEVER gave out info to my site. Hell no one here knows it yet. for the most part and it's secured as I can make it. Because there is always more i learn and can do. It's your own fault for posting on the boards your account info and such when your site isnt secured. You say it's happened 5 times? Wouldnt the warning be after the first time to not let public your info?
-
LMAO Zero. Nice. IF your site ISN'T secure, why would you publicly post a link and an account? Use Pm's. Other than that, better to find out now before you get 1000's of users and they all get porn. lol this is amusing. You were asking HTML questions but you are coding a PHP website. See the problem? ;)
-
What in the h E double hockey sticks are you rambling on about?
-
There are currently 3 people who have purchased this mod as well as myself have it running add my msn I'll give you info as i currently have Login pulled to work on site :) [email protected]
-
Stat Inserting and withdrawing mod
Joshua replied to corruptcity || skalman's topic in Free Modifications
Meh Uncle, I can't get it to work >,< Everything is 100% but the stat Add and statmarket for me I had it posting to the market earlier but i copied your updated code and now it's not working :P Cant remember wth i did to get it to work either or what has changed >,< When it was posting to the market the STAT column was blank as well -
Stat Inserting and withdrawing mod
Joshua replied to corruptcity || skalman's topic in Free Modifications
Ok. With the changes you have to make with statadd.php it doesnt work properly. If i use the original, it posts everything but the Stat into market, so i'm a bit closer to fixing. on the Market itself, When removing my stat QUERY ERROR: Duplicate entry '7' for key 1 Query was INSERT INTO implants (statid, userid, stat, amount, stat_type) VALUES ('7', '1','','14.0510','1') Is the error i get :P -
Stat Inserting and withdrawing mod
Joshua replied to corruptcity || skalman's topic in Free Modifications
Gave this mod a test run last night. 2 things. One, You didnt put what to Label Each .php page so it took me a few to figure it out =P Two, I'll go through it, but I'm getting errors when trying to add stats to market. Page keeps refreshing like I didnt add, so :P Other than that...I cant beleive you didnt make this a paid mod =)