-
Posts
1,099 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Everything posted by Lithium
-
Re: Street Images hmmm shorter? 3 lines vs 4 is not shorter... unless my math is wrong
-
Re: Street Images $chance = rand(1,10); $spinpicA = 'streets'.$chance.'.jpg'; print "[url='streets.php']<img src=$spinpicA 'width=500' 'height=300'>[/url] "; Prolly you save a few lines like this?
-
Re: [mccode v2] Player Card ($8) First mod i got from either one... i only say... simple and effective! "it does what it says on the box". A recomendation to consider, if you guys can, supply the .psd file for the base gfx to allow a fully compatible edited image ;)
-
Re: How good CronWerks/Cronus is grow up? even my kid is more mature than you and he's 4 years old! You do not silence? damn then why all the posts stating that the SMS mod you have, don't work with a couple of operators were deleted? Why people can't know from the begining if the mod will suit their needs? Fraud? Why do 80% of your mods don't work with major re-writes? and i don't see you posting that nor fixed versions... a support ticket? for you to be busy and people have to wait a huge amount of time? I saw you criticizing a couple of times people that post FREE mods that don't work, yet you do the same with PAID ones.
-
Well... as it seems that no one can say absolutely nothing on Cronwerks mods, as the posts simply get deleted, and Cronus seems to wanting to be always on his high horse, for those who are interested this is the way he does business... If things go wrong or his mods simply don't work, the usual way he has to deal with it, is to silence those that some way give their negative opinion about his job, by deleting their threads (and not his btw). And even after that, he acts like this... And the funny about all this... "his threads" as he calls them were 2 mods of his were i pointed some flaws. Too bad he doesn't keep the threads for everyone to see. Here stays the "serious" way he deals with critics and the "serious" way he does business.
-
Re: voting help as BD23 said... mysql_num_rows() will only return 1/2/3/whatever rows there are or FALSE, if you need to check for certain fields (hint: trpg(voting site)) you need at least the mysql_fetch_array(), my advice... check what is what and go from there!
-
Re: voting help if elseif else
-
Re: [MCCODES v2] Attack restriction if (abs($ir['level'] - $r['level']) > 3) { sorry you can hit that player } this works both ways... either more than 3 levels higher, or more than 3 levels lower
-
Re: Something other than male/female? Writing a stupid function is the best way if you still want a compatible db to use other mods, otherwise you would need to keep recoding every single change you apply on a game!
-
Re: What do you nice reading, read it about 20 years ago, and hell, even these days, that damn book is just on top of actual facts (some of them though) :) kafka, nietsche, dumas are also a couple of my favs :)
-
Re: What would you do with $100,000,000? 1978 vette, new house, and live on the interest of having all that cash on some offshore bank :D
-
Re: 3 Word Game your dumb a$$
-
Re: Mod to get finished... nothing similar! :P
-
I have started a "gang replacement" mod a few month back, yet due my lack of time i simply have put it aside as it is quite a big mod. So what do i want? Someone to finish it, according the needs. The current progress is about 15-20% (~400 lines) and willing to give full rights to sell/give it away to whoever finishes it. If You are willing to help me out, just send me a pm asking for details. Also, i will only reply to a very limited number of users (those who i know that can do the job). Just to warn... this is quite a bit of time consuming mod :)
-
Re: [mccode] Money,crystals cap on item add file something along these lines if ($_POST['price'] > max_value_for_item) { echo no pricing over max_value_for_item; exit; }
-
Re: [mccode] Money,crystals cap Change the db field to the decimal places you want DECIMAL (XX,amount_of_decimal_places)
-
Re: Let see despite the arrays, which by the way is a stupid excuse, unless you use a <form> to $_POST training it WILL NEVER work, as i said on my first post on this thread
-
Re: Let see hummm? There are no decent coders around, what were you expecting?
-
Re: [V2] Cron Mods Request UPDATE users set will = will + maxwill/10 WHERE will < maxwill; UPDATE users set will = maxwill WHERE will > maxwill;
-
Re: Let see without a <form> to $_POST what you want to do you won't get far... :)
-
Re: Idea For sql protection True, yet the html "exploits" are basicly caused for non compliant code, mcc php is bad, html is even worst. As quoted, an external or redone db class, is the best option. I use an external class, and haven't add any single problem on the sites where it was used. though is quite a pain to aplly it properly on already made games. starting from scratch, fix/secure while you get your game is also the best option.
-
Re: Cron advise not sure if this will work but try <?php require "mysql.php"; require "global_func.php"; include "arson.config.php"; global $c,$db_config; //////////////////////////////////// //auction code //////////////////////////////////// mysql_query("update auctions set time=time-1",$c); $qqq=mysql_query("select * from auctions where time=0",$c); if (mysql_num_rows($qqq)) { while($win=mysql_fetch_array($qqq)) { $time=$win['time']; $item=$win['itemname']; $winner=$win['bidder']; $current=$win['current']; $owner=$win['owner']; $iname=mysql_result(mysql_query("SELECT itmname FROM items WHERE itmid={$item}", $c), 0, 0); if($win['bids']>0) { mysql_query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error()); mysql_query("UPDATE users SET money=money+{$win['current']} WHERE userid=$owner",$c); event_add($winner,"You won the auction of the {$iname} for \${$win['current']}",$c); event_add($owner, "Your {$iname} sold succesfully on the auction market with {$win['bids']} bids. You have been paid \${$win['current']}", $c); } if($win['bids']==0) { event_add($win['owner'],"Your auction has ended with no bidders. Your {$iname} has been returned to your inventory.",$c); $winner=$win['owner']; mysql_query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error()); } } } mysql_query("delete from auctions where time=0", $c); //////////////////////////////////// //end of auction code //////////////////////////////////// //////////////////////////////////// //misc minute counters //////////////////////////////////// mysql_query("UPDATE userpets SET phospital=phospital-1 WHERE phospital>0",$c); mysql_query("UPDATE userpets SET phospital=phospital 0 WHERE phospital<0",$c); mysql_query("UPDATE userpets SET pound=pound-1 WHERE pound>0",$c); mysql_query("UPDATE userpets SET pound=0 WHERE pound <= 0",$c); mysql_query("UPDATE userpets SET poundreason='' WHERE pound <= 0",$c); mysql_query("UPDATE userpets SET phospreason='' WHERE phospital <= 0",$c); mysql_query("UPDATE users set hosptime=hosptime-1 WHERE hosptime>0",$c); mysql_query("UPDATE users set jailtime=jailtime-1 WHERE jailtime>0",$c); mysql_query("UPDATE users SET validation=validation-1 WHERE validation > 0",$c); //////////////////////////////////// //misc minute counters //////////////////////////////////// //arson countdown mysql_query("UPDATE users SET arsontime=arsontime-1 where arson>0",$c); mysql_query("UPDATE users SET maxwill=arson where arsontime=0 AND arson>0",$c); mysql_query("UPDATE users SET will=arson where arsontime=0 AND arson>0",$c); mysql_query("UPDATE users SET arson=0 where arsontime=0 AND arson>0",$c); mysql_query("UPDATE users SET arsontime={$db_config['AT2']} where arsontime>{$db_config['AT2']} AND insurance>0",$c); mysql_query("UPDATE users SET arsontime=0 where arson=0 AND arsontime>0",$c); ///////////////////////// ?>
-
Re: Secure user ip! - NEW lol more like... localhost - ipv4 (127.0.0.1) ipv6(::1), also ipv6 holds hex values, so that wouldn't be an option :)
-
Re: Secure user ip! - NEW if i use an IPv6 i won't be able to log in... ;)