
xFusion
Members-
Posts
16 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by xFusion
-
very boring looking game needs a better tempalte :P
-
Looking for a layout which is custom made for my website.
xFusion replied to kaine-'s topic in Game Projects
i have Pmed you take a look -
easy as simple cron and Database fiddle just put in the Cron five mins Updating users and setting the Will to w.e number you want not too famillar with Mccodes but im guessing it would be like that
-
I would not personally host my game or what so with this host as i dont know the owner is he reliable trustworthy, it dont look much of a professional site to me, how do i know in a few months time when my game hits big he wount steal it from me and anyone these days use or make a hosting software and can host it.
-
ill change all free images for him to photoshop quick made one's hehe as his my buddy and has not much exp. so in a few hours it should be done :)
-
okay ill change them for him as he dont know no how to make images :P all i done for him was secure but he made the template dont know how but ill give it ago.
-
NO YOU LOGIN RIGHT ? and the rest except the mafia one is okay to use and free but ill change all
-
cause it made for a mccodes Game?
-
Oh sorry not really sure if it has been done but if it has then oh well and i did not cut and paste i made this from scratch just cause it may look like other coding doesnt mean has to be theirs
-
this is not a big mod just a little one i made in spare time with this mod it prevents users from travelling without buying a Passport... SQL: ALTER TABLE `users` ADD `passport` TINYINT( 1 ) NOT NULL DEFAULT '0'; Save it as Passport.php <?php include "globals.php"; if($ir['passport'] == 1) { die("You dont need more than One passport Dumb Bum!."); } print" <br /> <div align='left'> <b><u>John Lewis</u></b>: Welcome to home office <b><u>{$ir['username']}</u></b> So i see you are apply for a passport right?<br /><Br /> <b><u>{$ir['username']}</u></b> :Yes that is right i require a Passport to travel places. <Br /><Br /> <b><u>John Lewis:</u></b> Well since you are here and wanting a Passport we can't supply you with a real Passport if you dont hold And Documents But tell you what am part of the mafia hehe :P i work for a gang, here i just work to make extra **** if you want i can get you a fake passport for $5,000 but dont tell anyone..! Intrested?<br /><br /> <a href='passport.php?buy'>> Yes, man!<</a> -- <a href='index.php'>> No maybe Next time!<</a>"; if(isset($_GET['buy'])) { if($ir['money']>4999) { print "<br /><br />Congratulations, Man you bought a fake Passport for \$5,000!<br /> <a href='monorail.php'>Start Travelling...</a>"; $db->query("UPDATE users SET money=money-5000, passport=passport+1 WHERE userid=$userid"); event_add($ir['userid'], "You Bought a Fake Passport off John Lewis!"); } else { print "<br /><br /><font style=color:red;>You do not have enough money to Buy a Passport.</font> <a href='explore.php'>Back to town...</a>"; } } $h->endpage(); ?> Replace monorail.php with this <?php include_once "globals.php"; if($ir['passport'] == 0) { die("You need A Passport to Travel..Go to Passport Agency and buy one!"); } # Basic config setting $cost_of_travel = 1000; # end $_GET['to'] = ( isset($_GET['to'])&&is_numeric($_GET['to']) )?abs(intval($_GET['to'])):''; if ( empty($_GET['to']) ) { echo ' Welcome to the Monorail Station. It costs '.money_formatter($cost_of_travel).' for a ticket. <br /> Where would you like to travel today? <br /> '; $q = $db->query("SELECT `cityid`,`cityname`,`citydesc`,`cityminlevel` FROM `cities` WHERE `cityid` != {$ir['location']} AND `cityminlevel` <= {$ir['level']}"); echo " <table width=75% cellspacing=1 cellpadding=1 class='table'> <tr style='background:gray'> <th>Name</th> <th>Description</th> <th>Min Level</th> <th> </th> </tr> "; while ( $r = $db->fetch_row($q) ) { echo " <tr> <td>{$r['cityname']}</td> <td>{$r['citydesc']}</td> <td>{$r['cityminlevel']}</td> <td><a href='monorail.php?to={$r['cityid']}'>Go</a></td> </tr> "; } echo '</table>'; } else { if ( $ir['money'] < $cost_of_travel ) { echo 'You don\'t have enough money.'; } elseif ( $ir['location'] == $_GET['to'] ) { echo 'You are already here.'; } else { $q = $db->query("SELECT `cityname` FROM `cities` WHERE `cityid` = {$_GET['to']} AND `cityminlevel` <= {$ir['level']}"); if ( !$db->num_rows($q) ) { echo 'Error, this city either does not exist or you cannot go there.'; } else { $db->query("UPDATE `users` SET `money` = `money` - $cost_of_travel, `location` = {$_GET['to']} WHERE `userid` = $userid"); $r = $db->fetch_row($q); echo 'Congratulations, you paid '.money_formatter($cost_of_travel).' and travelled to '.$r['cityname'].' on the monorail!'; } } echo '<br />> <a href="index.php">Go back</a> to index.'; } $h->endpage(); ?> Enjoy any bugs post them here i will fix them .
-
Looks Decent and a bit like the Redux version of Mccodes Script
-
Dominon is right so now don't get it confused it 2 people on same Ip..
-
Ben-Nasha is there a example of it working online and also please care to read PM
-
well W3 i jumped on this thought its a decent community will get something for my self and can build up my repititon i know people wount trust me right away but i have to make a start somewhere or another to be able to build up
-
Okay i will make a quick something for you to judge on //Securing the $_GET vars (btw just made it for numeric style now securing the number ) $_GET['ID'] = ( isset($_GET['ID'])&&is_numeric($_GET['ID']) )?abs(intval($_GET['ID'])):''; if ( empty($_GET['ID']) ) { echo 'error message here'; die($h->endpage()); //Securing $_POST (Numeric Style securing the Numbers) $_POST['blah'] = ( isset($_POST['blah'])&&is_numeric($_POST['blah']) )?abs(intval($_POST['blah'])):''; This is just $_POST and $_GET vars this is another example $_POST['blah'] = mysql_real_escape_string($_POST['blah']); $_POST['blah'] = mysql_real_escape_string($_POST['blah']); should be enough for you to judge on :P
-
well hi am new to this forum and this topic is about me giving my service ill be securing files and alot more secure per file - £2.00 Bug/error fixing per file - £0.50(depends on the bugs if it big or small.) ALOT MORE but these are for now i have seen a post from some one called Ben and want to seperate confusion don't think i am him i just thought ill help people out... and also i accept only via paypal please dont PM or anything saying i will pay this/that via a different Source..