Jump to content
MakeWebGames

curious4moreknowledge

Members
  • Posts

    20
  • Joined

  • Last visited

    Never

curious4moreknowledge's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: [v2]Attack Ban[v2] I never said it was eliminated completely, I said the "Option" was eliminated. Just as in this forum many of the ppl are too lazy to code for themselves, gamers are also too lazy to type in a url to bypass something they can't just click a link on, LOL. Personally I would do all mods to prevent the attacks if I wanted owner and staff cheats in my game. I use Staff Test accounts to login with while I am working on the game that is attack blocked. Anyone foolish enough to try will get a few days in fedjail. Currently I have a 10 attacks per day limit but I am considering changing that to limit 3 attacks on the same person and no total limit per day (unless they happen to attack all player in the game 3 times, then they are SOL).
  2. Re: [v2]Attack Ban[v2] Another option would be to hide the attack link for staff or NPC's in the viewuser.php script. so you would have something like this: open viewuser.php and find: print " [[url='attack.php?ID={$r[']Attack[/url]] [[url='contactlist.php?action=add&ID={$r[']Add Contact[/url]]";   replace with: if($r['user_level'] == 1) { print "[[url='attack.php?ID={$r[']Attack[/url]] "; } print " [[url='contactlist.php?action=add&ID={$r[']Add Contact[/url]]"; now you have eliminated the option to attack staff and NPC's on the user profiles. If you have attack shortcuts in your user list and users online scripts you will also need to add the mods to them as well. :-D
  3. Re: unexpected t string to add to what Zeon said, the reason you get the t_string error is because of the double quote count in the line for one and no return require "class/class_db_{$_CONFIG['driver']}.php"usr/lib/php/usr/local/lib/php" ------^1 ------^2 -----^3 and missing --> ; not to mention the extra that probably shouldn't be there as Zeon displayed.
  4. Re: Mccodes Version 1 Or 2 I'd say they both suck, otherwise we would not have to recode every script file to fix bugs or modify the layout to meat your personal preference. And by time you get through doing all of that, its no longer MC Code's work, only MC Code' platform. So with that being said, I would vote for mine.
  5. Re: Illegal downloading First of all you would have to consider the definition of the term. Illegal Downloading means that I/you copied files from another computer or file system with out authorization from the owner. Therefore making it theft. Now on the other side of this, you have web sites providing a distribution service. If I login to a site that offers music downloads, free or fee based, I have every right to use that service and download every file they offer with out having to worry about legal repercussions. Now if that web site is providing copyright protected material with out proper authorization or licenses from the producer or owner of such works, then they (not I) are in violation of the copyright laws. Now this does not mean I have the right to reproduce and redistribute the works I have downloaded. If I did, then I would be in violation of the law. Now if you want to talk about these php and html script files and modifications posted on CE, a whole different set of regulations come into play. But I won’t discuss them here and point out how ignorant people are when they learn the truth about Free Open Source Software (FOSS) Regulations and how stupid they are for arguing over who did or didn’t write what. By the way, “Free” in FOSS does not mean “with out cost or fee”, it means; free to modify, edit, reproduce and redistribute edited works. Now keep in mind Copyright laws still apply to the “Original Works” but not edited/modified works. You should also keep in mind that copyright infringement is not the governments problem to deal with, it is a civil matter which the original inventor/creator/producer has to deal with.
  6. Re: times kicked from gangs Both great ideas but if I were to use them, I would make them viewable to gang leaders only so getting kicked or leaving gangs doesn't become a contest between players and railroading the original intent of having it post in the first place. Which should be to let gang leaders know they are problem players. So technically nobody else needs to be able to see it. Otherwise you may as well add 2 more spots on your HOF for Most Gangs Joined: and Most kicked: :-)
  7. Re: [mccode v1&2]Clear Hospital And Jail Shout Boxes Hourly wouldn't it be easier to add one of these to your hour or day cron: :| v1) mysql_query("TRUNCATE TABLE shout_table_here;"); v2) $db->query("TRUNCATE TABLE shout_table_here;");
  8. Re: help with something Hint: look at the itemsend.php script to see how the event_add is coded and figure out how to merge it in your give items script. :| Just about everything you would ever need to write new scripts is somewhere in the package somewhere. You only need to look for it.
  9. Re: FREE Bug Tracker Mod OK, I know this is an old post but I recently started working on a couple of games, v1 and v2. Decided to use this for the v2 game since it didn't come with the bug reporter script. I have fixed several errors in the script, dressed it up a bit and added a way to change the status of the reported bug. Fixes: 1) Staff comment box to post the staff ID rather than wrongly posting the reporters ID. 2) Removed the phantom cell from the end of the display where manager functions are held that was seen by the players. 3) Renamed the urgency labels 4) Added options to change the status of the bug. 5) Reoganized the layout and modified the SQL tables slightly. 6) I have also changed the staff access levels on my game but left them generic here so they will work for you.(You may want to change them on your game as well)   <?php /*************************** Bug Tracker (1.0) made by oxidati0n -- Designed to make sure your bug asking days are over, Your players can efficiently report them, for those buggy players - It has most hacks removed. Such as HTML block, Javascript and PHP! Requires PHP version 4.44 minimum for this code to work! Created by oxidati0n! ***************************/ include "globals.php"; $sd=$db->query("SELECT * FROM `bugtracker` WHERE `bt_from` = '$userid'"); if($_GET['x'] == "add" and $db->num_rows($sd) < 7) { if($_POST['urgency'] and $_POST['description']) { //Secure the webpage. My favourite :> $_POST['description']=str_replace("/n", " ", strip_tags($_POST['description'])); $time=time(); //Insert the time log. $ip=$_SERVER['REMOTE_ADDR']; //The users IP - logged. ha ha! $nf="Not Fixed"; //The text for startup $db->query("INSERT INTO `bugtracker` (`bt_id`, `bt_posted`, `bt_from`, `bt_description`, `bt_read`, `bt_replyfrom`, `bt_status`, `bt_replytext`, `bt_urgency`, `bt_iplogged`) VALUES ('NULL', '$time', '$userid', '$_POST[description]', '0', '0', '$nf', 'N/A', '$_POST[urgency]', '$ip');") or die("<center>Your report couldn't be processed at this time. Either contact an admin or try again later. Thanks and sorry for any inconvenience caused [url='bugtracker.php']Back[/url] </center>"); print "<center>Your bug report has initially been added! [url='bugtracker.php']Back[/url]</center> "; $h->endpage(); exit(); } else { print "<center><h3>Submit your report</h3></center> <center><table width=60% border=2 cellspacing=1 class='table'></center> <td><font color=red>Your IP logged: ".$_SERVER['REMOTE_ADDR']."</font> Your IP is logged for our benefit and yours, to ensure the reporting system is not being abused! Once submitted, your report will show as hidden to all other players except you and authorized staff. <hr /> NOTE: This is only to report bugs, If it's related to players post it on the "Report a Player" page. Bugs are errors/spelling mistakes, php disruption, file/page errors or a glitch in the game that allows an unfair advantage if exploited. </td></tr></table> <center><form action='bugtracker.php?x=add' method='post'> Urgency: <select name='urgency'><option value='Low'>Low</option> <option value='Medium'>Medium</option><option value='High'>High</option></select> Description (include as much detail as possible, page links and error messages will be helpful aswell): <textarea name='description' cols=60 rows=11></textarea> <input type=submit value='Submit Bug Report'></form> </center>"; $h->endpage(); exit(); } } else if($ir['user_level'] > 1 and $_GET['x'] == "remove" and $_GET['report']) { $db->query("DELETE FROM `bugtracker` WHERE `bt_id` = '$_GET[report]'"); print "<center>Bug Report Row Removed [url='bugtracker.php']Back[/url]</center> "; $h->endpage(); exit(); } elseif($ir['user_level'] > 1 and $_GET['x'] == "reply" and $_GET['report']) { if($_POST['text']) { //Make sure the text is ready to go, clean and safe. $text=str_replace(array("<",">","/n"),array("","",""),$_POST['text']); $status=($_POST['status']); $db->query("UPDATE `bugtracker` SET `bt_replyfrom` = '$userid', `bt_replytext` = '$text', `bt_status` = '$status' WHERE `bt_id` = '$_GET[report]'"); print "<center>Bug Report Row Edited [url='bugtracker.php']Back[/url]</center> "; $h->endpage(); exit(); } else { print "<center>[b]Make a reply[/b] <form action='bugtracker.php?x=reply&report=$_GET[report]' method='post'> Status: <select name='status'> <option value='Not Fixed'>Not Fixed</option> <option value='Not a Bug'>Not a Bug</option> <option value='Under Repair'>Under Repair</option> <option value='Fixed'>Fixed</option></select> Reply: <textarea name='text' cols=60 rows=11>Your reply here...</textarea> <input type=submit value='Submit Reply!'> </form></center>"; $h->endpage(); exit(); } } $_GET['st'] = abs((int) $_GET['st']); $st=($_GET['st']) ? $_GET['st'] : 0; print "<center><h3>Bug Reports</h3></center>"; $sd=$db->query("SELECT * FROM `bugtracker` WHERE `bt_from` = '$userid'"); if($db->num_rows($sd) < 7) { print "<center>[url='bugtracker.php?x=add'][Add a Report][/url]</center> "; } print "<center>[b]You can submit several bug reports[/b] </center>"; if(!$_GET['selectBug']) { $reports=$db->num_rows($db->query("SELECT * FROM `bugtracker`")); $shown=10; //How many rows should be shown in one row $pages=(int) ($reports/$shown)+1; if($membs % $shown == 1) { $pages--; } print "<center>Pages: "; for($i=1;$i <= $pages;$i++) { $stl=($i-1)*$shown; print "[url='bugtracker.php?st=$stl']$i[/url] </center>"; } } if($ir["user_level"] > 1) { $man="<th>Manage</th>"; $cols=8; $db->query("UPDATE `bugtracker` SET `bt_read` = '1' WHERE `bt_read` = '0'"); } else { $cols=7; } print " <center><table width=90% border=2 cellspacing=1 class='table'></center> <tr style='background:darkred'> <th colspan={$cols}>Viewing all reported bugs - </th> </tr> <tr style='background:darkred'> <th>Report Number</th> <th>From</th> <th>Urgency</th> <th>Description</th> <th>Reply Comments</th> <th>Read</th> <th>Status</th> ".$man."</tr>"; if(!$_GET['selectBug']) { $q=$db->query("SELECT * FROM `bugtracker` ORDER BY `bt_posted` DESC LIMIT $st,10"); } else { $q=$db->query("SELECT * FROM `bugtracker` WHERE `bt_id` = '$_GET[selectBug]' LIMIT 1;"); } if($db->num_rows($q) == 0) { print "<tr style='background:darkred'> <td colspan={$cols}>There are no current reports been posted.</td> </tr>"; } while($r=$db->fetch_row($q)) { if($r['bt_from'] == $userid or $ir['user_level'] == 2 or $ir['user_level'] == 3) { $user_q=$db->query("SELECT * FROM `users` WHERE `userid` = '$r[bt_from]'"); $p=$db->fetch_row($user_q); if($r['bt_replyfrom'] > 0) { $user_q2=$db->query("SELECT * FROM `users` WHERE `userid` = '$r[bt_replyfrom]'"); $d=$db->fetch_row($user_q2); } $x=$r["bt_id"]; if($r['bt_read'] == 1) { $re="<font color=green>[b]Read[/b]</font>"; } else { $re="<font color=red>[b]No[/b]</font>"; } print " <tr style='background:darkred'> <td align=center>".number_format($x)."</td> <td align=center>[url='viewuser.php?u={$x}']".$p['username']."[/url] [".$p['userid']."]</td> <td align=center>".$r['bt_urgency']."</td> <td align=center>".$r['bt_description']."</td> <td align=center>"; if($r['bt_replyfrom'] > 0) { print "[b]".$r['bt_replytext']." [i]Replied from [url='viewuser.php?u=$d[userid]']$d[username][/url][/i]"; } else { print "<center>You haven't been replied yet.</center>"; } print " </td> <td align=center>".$re."</td> <td align=center>$r[bt_status]</td>"; if($cols == 8) { print " <td align=center> <font color=black>IP Logged: [b]".$r['bt_iplogged']."[/b]</font> [url='bugtracker.php?x=remove&report={$x}']Remove[/url] [url='bugtracker.php?x=reply&report={$x}']Make Reply[/url] [url='mailbox.php?action=compose&ID={$p[']Mail User[/url] </td>"; } print "</tr>"; } else { print "<tr style='background:darkred'><center> <td align=center>Hidden</td> <td align=center>Hidden</td> <td align=center>Hidden</td> <td align=center>Hidden</td> <td align=center>Hidden</td> <td align=center>Hidden</td> <td align=center>Hidden</td> </center></tr>"; } } print "</table></center> "; if(!$_GET['selectBug']) { print "<center>Pages: "; for($i=1;$i <= $pages;$i++) { $stl=($i-1)*$shown; print "[url='bugtracker.php?st=$stl']$i[/url] </center>"; } } $h->endpage(); ?>   SQL tables: -- -- Table structure for table `bugtracker` -- CREATE TABLE `bugtracker` ( `bt_id` int(11) NOT NULL auto_increment, `bt_posted` varchar(255) NOT NULL, `bt_from` int(11) NOT NULL, `bt_description` longtext NOT NULL, `bt_read` tinyint(2) NOT NULL, `bt_replyfrom` int(11) NOT NULL, `bt_status` varchar(255) NOT NULL, `bt_replytext` longtext NOT NULL, `bt_urgency` varchar(255) NOT NULL, `bt_iplogged` varchar(255) NOT NULL, PRIMARY KEY (`bt_id`) ) ENGINE=MyISAM ;   Hope you enjoy :-D
  10. Re: Secure Your Crons. Seems to me that this function would be more practical to use as an IP tracker and log system if you have ppl trying to run your crons. Then you can IP ban and fedjail the user. I may add this to my files just for this purpose although I doubt it would ever be an issue anyway. Good way to find out though :-D
  11. Re: Money,crystals cap Here is the fix for userstats table to change the cap. You do not have to change to BIGINT, you only need to change the variable (11,4) to a higher number. (11) is the total number of place holders, (#,4) or (#,6) is the decimal places in the number. So if you have a cap of “ 9,999,999.9999” you have used up all 11 places. Make the number higher as eg; (20,4) and you have “9,999,999,999,999,999.9999” cap. 20 places 4 decimal places. Simple fix that doesn’t screw up your stats table. :-D ALTER TABLE `userstats` CHANGE `strength` `strength` decimal(50,4) NOT NULL default '0.0000', CHANGE `agility` `agility` decimal(50,4) NOT NULL default '0.0000', CHANGE `guard` `guard` decimal(50,4) NOT NULL default '0.0000', CHANGE `labour` `labour` decimal(50,4) NOT NULL default '0.0000', CHANGE `IQ` `IQ` decimal(50,6) NOT NULL default '0.000000',
×
×
  • Create New...