
.: Reaper :.
Members-
Posts
32 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by .: Reaper :.
-
There is an error when you try adding an item to your gangs armory Here is the line where the error seems to be coming from: $db->query("INSERT INTO `family_armory` (``,`ItemID`,`Adder`,`RentTime`) VALUES (NULL, {$_GET['itm']}, {$ir['userid']}, {$_POST['days']}"); And here is the error: Family's Thanks for your itemical help! You have donated a AK-74u!There seem's to be a error stopping you from seeing this page, Please mail The Warden[1] or email [email][email protected][/email] and let him know there is a FATAL ERROR here REF: (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1) Is this happening to everyone or am i just the unlucky one haha -.- Sniko, you really impress me this mod is amazing and the fact that it is free :D Cheers
-
Download link is down again -.- Will you be re-uploading this ?
-
Here is more that was requested :L My photoshop was messing up so couldnt change the back image sorry :(
-
yeh i just added that didn't put all that much thought into it :D Also here is the ones as requested...
-
Hey, don't know weather this classes as a mod or not but its for mccodes. Here are two images you could put on your loggedin page or index page to encourage members to vote and donate. If you want a name adding to the corner where it says DeathsRow please say your game name and i will change it for you. :) Hope you like it. I can also change the bottom colors to suit your game. :)
-
+1 this is the card i made from the link above.
-
This is very nice well done.
-
I would also use footerchat its very nice and does the same job except it has more features you can set a status. The one downside is that you have to use the js from there site but with the other chat you can modify it to your hearts content. :)
-
Sounds great i would pay 15-20 for a forum like that but im a bit tight with money haha
-
Sorry for posting site link because i didn't have a lot of time to make a screenshot and Decio isnt bad IFFF he is helping you. He hacks my game and then helps secure it. Anyway Nice Work +1
-
**Updated** Hey i liked the code so i added a border around the table and made it look clearer. +1 though nice job <?php include "globals.php"; print "<font face='Arial' size='4'>Travel</font><hr width='95%'>"; $_GET['to'] = abs((int) $_GET['to']); if(!$_GET['to']) { print "Welcome to the train station. Tickets cost $10,000. Where would you like to travel?<hr width=95%> "; $q=$db->query("SELECT * FROM cities WHERE cityid != {$ir['location']} AND cityminlevel <= {$ir['level']}"); print "<table cellspacing='1' border='0' cellpadding='3' class='table' width='95%'> <th><font color=white>City</th> <th>Description</th> <th>Min Level</th> <th>Travel?</th></font> <tr>"; while($r=$db->fetch_row($q)) { print " <td>{$r['cityname']}</td> <td>{$r['citydesc']}</td> <td>{$r['cityminlevel']}</td> <td>[url='travel.php?to={$r[']Travel[/url]</td></tr>"; } print "</table> "; print "<hr width='85%'> By going to another city, you will be able to get newer faster updated wepons and newer properties. You must travel from town to town to attack your enimies. <hr width='85%'>> [url='explore.php']Back[/url]<hr width='95%'>"; } else { if($ir['money'] < 10000) { print " Sorry you don't have enough money."; print "<hr width='85%'>> [url='explore.php']Back[/url]<hr width='95%'>"; } else if( ((int) $_GET['to']) != $_GET['to']) { print "Sorry invalid city ID"; print "<hr width='85%'>> [url='explore.php']Back[/url]<hr width='95%'>"; } else { $q=$db->query("SELECT * FROM cities WHERE cityid = {$_GET['to']} AND cityminlevel <= {$ir['level']}"); if(!$db->num_rows($q)) { print "Sorry this city does not exist."; print "<hr width='85%'>> [url='explore.php']Back[/url]<hr width='95%'>"; } else { $db->query("UPDATE users SET money=money-10000,location={$_GET['to']} WHERE userid=$userid"); $r=$db->fetch_row($q); print "You paid \$10,000 and travelled to {$r['cityname']} on the train, congratulations."; print "<hr width='85%'>> [url='explore.php']Back[/url]<hr width='95%'>"; } } } $h->endpage(); ?> To see it in action go to http://deathsrow.com,
-
+1 great mod will give my users somthing to play with haha :)
-
an idea for a template login,register....
.: Reaper :. replied to inferno564's topic in General Discussion
Re: an idea for a template login,register.... Ok i have made this on my game and added a few more things to it like screen shots and made a few pages using it like contact us register n so on i will post here when i think i have fully done it but if you want my version i using now PM me -
Re: [v2] New Header I am using this header it did nothing to my smenu exept the size were a litle off but it is working well there is a few things i have changed on it to make it work better and there is a few tiny bugs but it is a very nice header i would change the images tho because alot of people will probs use this but i have seen this header before just not finnished +1 thanks alot
-
Re: [mccode v2] Tag Mod (Complete) Lol i hate sql's lol i find them annoying lmao here is what i used it seemed to work CREATE TABLE IF NOT EXISTS `tagmarket` ( `tmID` int(11) NOT NULL AUTO_INCREMENT, `tmQTY` BIGINT(50) UNSIGNED NOT NULL DEFAULT '0', `tmADDER` int(11) NOT NULL DEFAULT '0', `tmPRICE` BIGINT(50) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY (`tmID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=9;
-
Re: [mccode] Free Starter Pack Why whats up with my hosting looks fine to me :mrgreen:
-
Re: [mccode] Free Starter Pack If you want the free hosting domain mail me and the lost city.dp3h one isnt there no more but you can get on it at http://lostcitys.co.uk
-
Re: [mccodes]Secure demo account My demo accounts id is 80 so i jus add this to every page i dont want it to see : if ($ir['userid'] == 80) { echo "The demo account isnt alloud to this. [url='index.php']Back Home[/url]"; $h->endpage(); exit; }
-
Re: [mccode] Free Starter Pack Yeh sorry bout that i didnt notice untill i had already posted this one works : <?php /*----------------------------------------------------- -- Made by Akash for CE users -- Free Gift -- Mail [email][email protected][/email] if you need help or converting -----------------------------------------------------*/ if (file_exists('globals.php')) { require('globals.php'); } else { session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); } if ($ir['donatorpack']== 0) { print "Welcome to {$set['game_name']}, we hope you enjoy your stay and here is a complimentary pack from us to get you started."; //This is the writing they will get after clicking on the button in explore.php $sql = sprintf(" UPDATE `users` SET `money` = `money` + '%d', `crystals` = `crystals` + '%d', `donatordays` = `donatordays` + '%d', `donatorpack` = '%d' WHERE (`userid` = %u)", 10000, 100, 5, 1, $userid); $db->query($sql); //Edit any of these to credit whatever you want e.g. instead of points, it may be crystals. Please DO NOT change the donatorpack=1 as this is part of the mod. Changing it may result in users claiming more than one pack. $itmid = 1; //This is the item ID, whatever item you want it to add, just type in the ID here. If you want a random item then replace $itmid = 1; with itmid=rand(1,100), with the numbers being whatever you want. mysql_query("INSERT INTO inventory VALUES('',$itmid,$userid,1)",$c); print" "; //You do not need to change anything here, unless you want more than one of the item to be given. In this case, just edit the 1 at the end to the quantity. event_add($userid,"You were given a complimentary starter kit to begin you off. We hope you enjoy your stay at {$set['game_name']} and please mail [url='viewuser.php?u=1'][b]<font color=red>Deliria[/b]</font>[/url] for any help you need.",$c); //This is the event they will receive once they have been credited. Edit the Owner Name to the owner's name and if needed, the writing in the event. } else { die("You have already claimed your starter kit!"); //This simply ensures that the user does not claim more than one pack. } $h->endpage(); ?> Sorry bout first post ;)
-
Re: [mccode v2] Tag Mod (Complete) didnt work 4 me m8 so i used ALTER TABLE `users` ADD `HDTags` BIGINT(50) NOT NULL DEFAULT '0';
-
Re: [mccode] Free Starter Pack i was confused at first none of these worked on my game so i just edited 2 things and it worked hope it helps you out : <?php /*----------------------------------------------------- -- Made by Akash for CE users -- Free Gift -- Mail [email][email protected][/email] if you need help or converting -- Fix V2 by Deliria -----------------------------------------------------*/ if (file_exists('globals.php')) { require('globals.php'); } else { session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); } if ($ir['donatorpack']== 0) { print "Welcome to {$set['game_name']}, we hope you enjoy your stay and here is a complimentary pack from us to get you started."; //This is the writing they will get after clicking on the button in explore.php $sql = sprintf(" UPDATE `users` SET `money` = `money` + '%d', `crystals` = `crystals` + '%d', `donatordays` = `donatordays` + '%d', `donatorpack` = '%d' WHERE (`userid` = %u)", 10000, 100, 5, 5, 1, $userid); $db->query($sql); //Edit any of these to credit whatever you want e.g. instead of points, it may be crystals. Please DO NOT change the donatorpack=1 as this is part of the mod. Changing it may result in users claiming more than one pack. $itmid = 1; //This is the item ID, whatever item you want it to add, just type in the ID here. If you want a random item then replace $itmid = 1; with itmid=rand(1,100), with the numbers being whatever you want. mysql_query("INSERT INTO inventory VALUES('',$itmid,$userid,1)",$c); print" "; //You do not need to change anything here, unless you want more than one of the item to be given. In this case, just edit the 1 at the end to the quantity. event_add($userid,"You were given a complimentary starter kit to begin you off. We hope you enjoy your stay at {$set['game_name']} and please mail [url='viewuser.php?u=1'][b]<font color=red>Deliria[/b]</font>[/url] for any help you need.",$c); //This is the event they will receive once they have been credited. Edit the Owner Name to the owner's name and if needed, the writing in the event. } else { die("You have already claimed your starter kit!"); //This simply ensures that the user does not claim more than one pack. } $h->endpage(); ?>
-
[mccode v2] Improved Security on Attack System
.: Reaper :. replied to KiX's topic in Free Modifications
Re: [mccode v2] Improved Security on Attack System Oh Gawd :-o That makes me feel good about myself lol lol me 2 lmao but we were all like that once lmao -
Re: Big gang problem, Cannot create Yeh thanks i had same problem and fixed it by adding a ,'' into the file creategang.php thank you loads otherwise i would of been stck on this for ages
-
Re: [mccode v2] Fishing Mod Made a mistake soz i forgot to set it so that it actualy gives the users crystals lol it was telling them that they found them and not giving them to the user so here it is : <?php require "globals.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); switch($_GET['action']) { case 'fish': fish_1(); break; case 'fishsub': fish_1_sub(); break; default: fish_index(); break; } /** ** Calls the cases so fish.php?fish **/ function fish_index() { global $ir,$c,$userid; print "<center>Welcome to the Lost City fishing docks. </center>"; Print "<center> You Get 5 Fish Hooks a day dont waste them </center>"; print "<center> <u>Grab a boat and go Fishing!</u> [[url='fish.php?action=fish']Go Fishing[/url]] </center>"; } /** ** This is the main part you see when you come into the php page **/ if ($ir['jailtime'] > 0){ print "<center>The docks are closed to jail birds come back when thay release you</center>"; exit; } if ($ir['hospital'] > 0){ print "<center>You cant go fishing while in hospital</center>"; exit; } /** ** That makes sure you are not in jail or hospital **/ function fish_1() { global $ir,$c,$userid; if($ir['fishing_aloud'] < 1){ print "You have {$ir['fishing_aloud']} fishing times left"; exit; } mysql_query("UPDATE users SET fishing_aloud=fishing_aloud-1 WHERE userid=$userid",$c); $rand_fish = rand(1,5000); $rand_money = rand(10,1000); $rand_exp = rand(1,100); $rand_crystals = rand(1,10); echo "<center>You begin fishing and found $rand_fish fish, you took them to the fish market and sold them for $rand_money money, $rand_crystals crystals, and gained $rand_exp exp</center> You Currently can fish {$ir['fishing_aloud']} more times"; mysql_query("UPDATE users SET money=money+'$rand_money',exp=exp+'$rand_exp',crystals=crystals+'$rand_crystals' WHERE userid=$userid",$c); print "<center> [[url='fish.php?action=fish']Fish again[/url]]</center> "; print "<center>[[url='fish.php']Back[/url]]</center> "; } /** ** This is all the stuff that makes the script/mod work ** You shouldnt need to change it enless you want to ** make something add or have different MYSQL Tables **/ ?> I changed the code you need to put into global_func so that they only get 5 hooks a day
-
Re: [mccode v2] Fishing Mod Hey i thought i wud post my edited one of this i like it i hope you do : ok so here is fish.php i added so that you can also gain crystals : <?php require "globals.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); switch($_GET['action']) { case 'fish': fish_1(); break; case 'fishsub': fish_1_sub(); break; default: fish_index(); break; } /** ** Calls the cases so fish.php?fish **/ function fish_index() { global $ir,$c,$userid; print "<center>Welcome to the Lost City fishing docks. </center>"; Print "<center> You Get 10 Fish Hooks a day dont waste them </center>"; print "<center> <u>Grab a boat and go Fishing!</u> [[url='fish.php?action=fish']Go Fishing[/url]] </center>"; } /** ** This is the main part you see when you come into the php page **/ if ($ir['jailtime'] > 0){ print "<center>The docks are closed to jail birds come back when thay release you</center>"; exit; } if ($ir['hospital'] > 0){ print "<center>You cant go fishing while in hospital</center>"; exit; } /** ** That makes sure you are not in jail or hospital **/ function fish_1() { global $ir,$c,$userid; if($ir['fishing_aloud'] < 1){ print "You have {$ir['fishing_aloud']} fishing times left"; exit; } mysql_query("UPDATE users SET fishing_aloud=fishing_aloud-1 WHERE userid=$userid",$c); $rand_fish = rand(1,5000); $rand_money = rand(10,1000); $rand_exp = rand(1,100); $rand_crystals = rand(1,10); echo "<center>You begin fishing and found $rand_fish fish, you took them to the fish market and sold them for $rand_money money, $rand_crystals Crystals, and gained $rand_exp exp</center> You Currently can fish {$ir['fishing_aloud']} more times"; mysql_query("UPDATE users SET money=money+'$rand_money',exp=exp+'$rand_exp' WHERE userid=$userid",$c); print "<center> [[url='fish.php?action=fish']Fish again[/url]]</center> "; print "<center>[[url='fish.php']Back[/url]]</center> "; } /** ** This is all the stuff that makes the script/mod work ** You shouldnt need to change it enless you want to ** make something add or have different MYSQL Tables **/ ?> Oh and add this in header : Find: [b]Crystals:[/b] {$ir['crystals']} and add underneath : [b]Fishing Hooks:[/b] {$ir['fishing_aloud']} Hope this helps :)