-
Posts
3,713 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Zero-Affect
-
Re: [mccodes v2] Mail Prank Mod <?php include "globals.php"; echo '<h3>Mailpranking User<h3>'; if($_POST['user']) { global $ir,$c,$h,$userid; $_POST['user'] = abs((int) $_POST['user']); $_POST['newmail'] = abs((int) $_POST['newmail']); if($ir['money'] < 1000) { echo 'Invalid Command. You do not have enough money to use this. > [url="index.php"]Go Home[/url]'; $h->endpage(); exit; } else { $query = sprintf('UPDATE `users` SET new_mail = new_mail + %u WHERE userid = %u', $_POST['newmail'], $_POST['user']); $db->query($query); $query = sprintf('UPDATE `users` SET money = money - 1000 WHERE userid = %u', $ir['userid']); $db->query($query); echo 'Prank Done'; } } else { echo ' <h3>Mailpranking User<h3> This user will have a set number of new mail, this will cost you $1000 <form action="'.$_SERVER['PHP_SELF'].'" method="post"> User: '.user_dropdown($c,"user",$_GET['userid']).' number: <input type="text" name="newmail"> <input type="submit" value="Prank \'em"> </form> '; } $h->endpage(); ?> try that
-
Re: New Host needed Urgently i dislike host gator i use byethost.com
-
Re: [mccodes v2] Mail Prank Mod Actually i make a slight miscalculation with my code > instead of < my bad so... <?php include "globals.php"; echo '<h3>Mailpranking User<h3>'; if($_POST['user']) { global $ir,$c,$h,$userid; $_POST['user'] = abs((int) $_POST['user']); $_POST['newmail'] = abs((int) $_POST['newmail']); if($ir['money'] < 1000) { echo 'Invalid Command. You do not have enough money to use this. > [url="index.php"]Go Home[/url]'; $h->endpage(); exit; } else { $query = sprintf('UPDATE `users` SET new_mail = new_mail + %u WHERE userid = %u', $_POST['newmail'], $_POST['user']); $db->query($query); $query = sprintf('UPDATE `users` SET money = money - 1000 WHERE userid = %u', $ir['userid']); $db->query($query); echo 'Prank Done'; } else { echo ' <h3>Mailpranking User<h3> This user will have a set number of new mail, this will cost you $1000 <form action="'.$_SERVER['PHP_SELF'].'" method="post"> User: '.user_dropdown($c,"user",$_GET['userid']).' number: <input type="text" name="newmail"> <input type="submit" value="Prank \'em"> </form> '; } $h->endpage(); ?> Im sure that will work perfectly
-
Name: Steal Availability: 10 Copies Price: $10.00 USD Includes: 1 php file(steal.php) 1 txt file(Install.txt) Description:. This modification is used has a profile option, used to steal crystals and money from the selected user. Basically it allows a user to steal Money and Crystals from another user without using attack, obviously they wouldn't make any experience or get has much money, but its a good way for weak members to steal from stronger members. It can be edited very easily with a specified config section of the modification. But as people say words are nothing compared to pictures so view the screen shots below. Screen Shots: Screen Shot 1 Screen Shot 2 Contact Me: [email protected] [MSN] or message me on here [CE]. This mod is only for v2 you can convert it yourself if you wish.
-
Re: [mccodes v2] Mail Prank Mod if($ir['money'] > 1000) { echo 'Invalid Command. You do not have enough money to use this. > [url="index.php"]Go Home[/url]'; $h->endpage(); exit; } like that?
-
[mccode] AV Bounty/Hitmanlist [$20.00]
Zero-Affect replied to Zero-Affect's topic in Paid Modifications
Re: [mccode] AV Bounty/Hitmanlist [$20.00] nope the price is set -
Re: [review]www.lost-warzone.net Looks very familiar i must have like just forgot letting them take my name off the register of which i made.. | | This Game Is Brought To You By Ishz | | | | This Game Is Owned Only By Ishz | | | | This Game Is Coded Only By Ishz | | couldn't code to save your life and i am contact your host.
-
Re: [mccode] MD5 Generator Im sure your incorrect there Nyna it is possible to decrypt it with the original encrypt string, there's noway anything is not solvable it would just take a brain like yours. Maybe you should give it a go and see if your smarter than the people who have tried before but reversing any string is possible (of my knowledge) like deleted files on a hard-drive are still there
-
Re: [mccode] Login Thank you very much please remember has a term of use you must keep my copyrights on there
-
Re: [mccodes v2] Tournement PvP [$10.00] Instead of complaining why don't you guys just make it...
-
Re: [mccode v2] Add images when you attack Disk Space Usage 931.89/? MB Monthly Bandwidth Transfer 5147.15/1024000 MB i like your bandwidth lol nice mod illusion i've not worked with this type of coding so i may use this for learning some of the functions
-
Re: [mccode v2] Slots Minor problem with this Nyna, it lets money goto minus... Fix - slots.php: <?php include("./globals.php"); global $db, $h, $ir, $userid, $c; $am2bet = 10; // how much it costs to bet for the following if statement. if ($ir['money'] < $am2bet) { echo 'You don\' have enough money to play >[url="index.php"]Go Home[/url]'; $h->endpage(); exit; } $tokens = null; $sql = sprintf("SELECT `Tokens` FROM `mod_slots` WHERE (`User` = %d)", $userid); $rs = $db->query($sql); if ($db->num_rows($rs)) { $row = $db->fetch_row($rs); $tokens = $row['Tokens']; } if (is_null($tokens)) { $tokens = 75; $sql = sprintf("INSERT INTO `mod_slots` (`User`, `Tokens`) VALUES (%d, %d)", $userid, $tokens); $db->query($sql); } $wheels = array ( array // Money = $1,116,360 ( "coopoopclgobocgppbpssppsoccbobbobbpspsgbooloosspc", "olglpgclcbslsossscbgsopgglpblslsssplbpbsoloslgpgp", "ggobpcoobcpcbgpcbcplbbbgsbpgcslogcbcsbbpcslsbbcpc", ), array // Money = $1,139,490 ( "gglboosppplcgpobspcollsolpgossolsspgoossgbbossbpg", "ocsoscsppbobglpgpbbolboogcgcgosocbccpgpsbpssscbcc", "pbocppolcsglpllbccslggsgocccocgoslpbpbpsoopgollsp", ), array // Money = $1,168,030 ( "gogppsospgggsppsocglblbpcpbpccbsopbclccscbboppgso", "slgllbogbposbsoososscsogoooplgpolssblbocbopglsopp", "lclglcolclplcpgsbobpcpgcbocogsopsgggsosocoocpsbsb", ), array // Money = $1,113,230 ( "bpcsspoglpcollggppopolppbopbspbcoslccccllposbsgpp", "lpgcgcsscssososgosbcloopplsbglclggssbsoccobbllpcl", "gsocbgpsgpopoooblbcslopgpsbbpggopsbpslobplbpgoops", ), array // Money = $1,006,150 ( "lcbblslpggppboobscslllollgbloooblcsgpslsoopgpssso", "spcobpppgplposbcpppcplcpppocgoslcsolsssslgpplcblp", "bsslplgggpoocppcgcbblglogbpsppopbppocbpsobloslbbo", ), array // Money = $1,175,040 ( "lpopolollgglglsogpblglpsogsolppolpoppbcgscbooolsl", "clpssgblsplcbopgcpolppobssoclogsgbgpscpsogcocpgsc", "oppogcspplgpoogbbggcpccpccooblcbscobpsbgoppssbbps", ), array // Money = $1,138,370 ( "plgopssgsbclollblpslbspolpsscspcpbpslbglbssccogog", "ggpscbgcgssoopcpgscssslcllcsocppcppgpoosppgllgpps", "pgslgopsbllcolpgslooopgplcsocblgsgcssgblcsclgogpg", ), array // Money = $1,164,030 ( "pbgpgclgogbllslplsbpscpobogcsbglslgssllgspbbslbog", "ocsllcccgocobplpocpcloglocopoogpsolpgolpsglssgcpg", "glpbssopcbbogppspgbbpplbclboglocbppcpsopopbgggopo", ), array // Money = $1,096,070 ( "slosplsbsglsgssggspllsccsclcppcpollsloogplgpbgllb", "ggosslccgbopcbboooosogsolocpgsbbclgbogbpbsoppboop", "bplboosbclgopgocgspollsobobsbcgsboglobbbppbbpsobb", ), array // Money = $1,145,150 ( "lpospocpspcpclcclbcppgllgbpslspcpgooplolsoogsbslb", "psslsssgbcosblsbggopbslcgpooppbblocbbocggbslspbgg", "pogslcgcggsoppcblcpblloclcsblcogppooggssppcgsospp", ), ); $images = array ( 'b' => "bananas", 'c' => "cherries", 'g' => "g<censored>s", 'l' => "lemon", 'o' => "orange", 'p' => "pineapple", 's' => "strawberry", ); if (!isset($_SESSION['wheel'])) $_SESSION['wheel'] = mt_rand(0, 9); echo "<style type='text/css'>"; echo "table.ni { width:95%;border-collapse:collapse; }"; echo "table.ni th { border:solid 1px #999;background:#F6F6F6;padding:3px; }"; echo "table.ni td { border:solid 1px #999;padding:3px; }"; echo "</style>"; echo "<h3>Slots</h3>"; echo "<table cellpadding='0' cellspacing='0' class='ni'>"; echo "<tr>"; echo "<th class='sub'>Fruit Machine</th>"; echo "<th class='sub' style='width:13em;'>All 3 The Same</th>"; echo "<th class='sub' style='width:13em;'>First 2 The Same</th>"; echo "</tr>"; echo "<tr>"; echo "<td style='vertical-align:top;text-align:center;'>"; $wheel = $wheels[$_SESSION['wheel']]; $index1 = mt_rand(1, 49) - 1; $index2 = mt_rand(1, 49) - 1; $index3 = mt_rand(1, 49) - 1; $wheel1 = $wheel[0] . $wheel[0] . $wheel[0]; $wheel2 = $wheel[1] . $wheel[1] . $wheel[1]; $wheel3 = $wheel[2] . $wheel[2] . $wheel[2]; $index1 += 49; $index2 += 49; $index3 += 49; echo "<table cellpadding='0' cellspacing='0' style='border-collapse:collapse;margin:10px auto;background:white;'>"; echo "<tr style='background:#DDD;'>"; echo sprintf("<td>[img=slots/%s_gray.png]</td>", $images[$wheel1[$index1 - 1]]); echo sprintf("<td>[img=slots/%s_gray.png]</td>", $images[$wheel2[$index2 - 1]]); echo sprintf("<td>[img=slots/%s_gray.png]</td>", $images[$wheel3[$index3 - 1]]); echo "</tr>"; echo "<tr>"; echo sprintf("<td>[img=slots/%s.png]</td>", $images[$wheel1[$index1]]); echo sprintf("<td>[img=slots/%s.png]</td>", $images[$wheel2[$index2]]); echo sprintf("<td>[img=slots/%s.png]</td>", $images[$wheel3[$index3]]); echo "</tr>"; echo "<tr style='background:#DDD;'>"; echo sprintf("<td>[img=slots/%s_gray.png]</td>", $images[$wheel1[$index1 + 1]]); echo sprintf("<td>[img=slots/%s_gray.png]</td>", $images[$wheel2[$index2 + 1]]); echo sprintf("<td>[img=slots/%s_gray.png]</td>", $images[$wheel3[$index3 + 1]]); echo "</tr>"; echo "</table>"; if ($tokens == 0) { echo "You have no more casino tokens "; echo "You will get another 75 or so at midnight game time "; } else if ($ir['money'] <= 0) { echo "You don't have any money left! "; echo "Better do some more work! "; } else { echo "<form action='slots.php' method='post'>"; echo "<input type='hidden' name='slots' value='1234' />"; echo "<input type='submit' value='Play $10' />"; echo "</form>"; } echo " "; if (isset($_POST['slots']) && is_string($_POST['slots']) && ($_POST['slots'] === "1234")) { $win = 0; $bet = 10; $letter1 = $wheel1[$index1]; $letter2 = $wheel2[$index2]; $letter3 = $wheel3[$index3]; if (($letter1 == $letter2) && ($letter2 == $letter3)) { switch ($letter1) { case "b": $win = 700; break; case "c": $win = 600; break; case "g": $win = 500; break; case "l": $win = 400; break; case "o": $win = 300; break; case "p": $win = 200; break; case "s": $win = 100; break; } } else if ($letter1 == $letter2) { switch ($letter1) { case "b": $win = 70; break; case "c": $win = 60; break; case "g": $win = 50; break; case "l": $win = 40; break; case "o": $win = 30; break; case "p": $win = 20; break; case "s": $win = 10; break; } } if ($win) echo sprintf("<span style='color:#070;'>You win $%d</span>", $win); else echo "<span style='color:#C00;'>You lose</span>"; $sql = sprintf("UPDATE `users` SET `money` = `money` + %d WHERE (`userid` = %d)", $win - $bet, $userid); $db->query($sql); $sql = sprintf("UPDATE `mod_slots` SET `Tokens` = `Tokens` - 1 WHERE ((`User` = %d) AND (`Tokens` > 0))", $userid); $db->query($sql); } echo "</td>"; echo "<td style='vertical-align:top;text-align:center;'>"; echo "[img=slots/bananas.png]"; echo "[img=slots/bananas.png]"; echo "[img=slots/bananas.png]"; echo " $700 "; echo "[img=slots/cherries.png]"; echo "[img=slots/cherries.png]"; echo "[img=slots/cherries.png]"; echo " $600 "; echo "[img=slots/g<censored>s.png]"; echo "[img=slots/g<censored>s.png]"; echo "[img=slots/g<censored>s.png]"; echo " $500 "; echo "[img=slots/lemon.png]"; echo "[img=slots/lemon.png]"; echo "[img=slots/lemon.png]"; echo " $400 "; echo "[img=slots/orange.png]"; echo "[img=slots/orange.png]"; echo "[img=slots/orange.png]"; echo " $300 "; echo "[img=slots/pineapple.png]"; echo "[img=slots/pineapple.png]"; echo "[img=slots/pineapple.png]"; echo " $200 "; echo "[img=slots/strawberry.png]"; echo "[img=slots/strawberry.png]"; echo "[img=slots/strawberry.png]"; echo " $100 "; echo "</td>"; echo "<td style='vertical-align:top;text-align:center;'>"; echo "[img=slots/bananas.png]"; echo "[img=slots/bananas.png]"; echo " $70 "; echo "[img=slots/cherries.png]"; echo "[img=slots/cherries.png]"; echo " $60 "; echo "[img=slots/g<censored>s.png]"; echo "[img=slots/g<censored>s.png]"; echo " $50 "; echo "[img=slots/lemon.png]"; echo "[img=slots/lemon.png]"; echo " $40 "; echo "[img=slots/orange.png]"; echo "[img=slots/orange.png]"; echo " $30 "; echo "[img=slots/pineapple.png]"; echo "[img=slots/pineapple.png]"; echo " $20 "; echo "[img=slots/strawberry.png]"; echo "[img=slots/strawberry.png]"; echo " $10 "; echo "</td>"; echo "</tr>"; echo "</table>"; echo "<p style='color:#CCC;'>An open-source extension from [url='http://nyna.co.uk/']Nyna[/url]</p>"; $h->endpage(); ?> if a user refreshed the post then it would allow them to play for free and set money to minus. so everything from first post and this has slots.php if you don't see the fix and have edited the mod then simply add: $am2bet = 10; // how much it costs to bet for the following if statement. if ($ir['money'] < $am2bet) { echo 'You don\' have enough money to play >[url="index.php"]Go Home[/url]'; $h->endpage(); exit; } below: <?php include("./globals.php"); global $db, $h, $ir, $userid, $c;
-
Re: [mccode v2] Ignore User Mail this runs a sql table right? im gunna try make one running on a single row :p
-
Re: [mccodes v2] Gang Bomb [$15.00] Thanks mate, hope it works fine now +1
-
Re: [mccode] Login it's pulled from basic settings in your staff panel mate... i do have to repeat myself again since some people have been changing my name and stuff on this and the register... BY USING THIS YOU ARE AGREEING TO KEEP MY NAME AND WEBSITE ON THE CODING AND SHOWING TO THE PUBLIC VIA THE GUI.
-
Re: Bodyguard - My first attempt to make my first mod ever heard of a file called globals?
-
Re: [mccode v2] Mine Shaft if($ir['level'] < $_POST['shaft']) // checks to see if the user has the right level { echo 'Invalid Command. You don\'t have the right level for this shaft. >[url="'.$_SERVER['PHP_SELF'].'"]Go Back[/url]'; $h->endpage(); exit; } it works mate Uriah... that's a bad way of doing it should be Add row: ALTER TABLE `users` ADD `Mturns` INT( 11 ) NOT NULL DEFAULT '0'; Add into file: If (!$ir['Mturns']) { echo 'Invalid Command. You have ran out of turn today. >[url="'.$_SERVER['PHP_SELF'].'"]Go Back[/url]'; $h->endpage(); exit; } change: $query = sprintf('UPDATE `users` SET %s = %s + %u, brave = brave - %u WHERE userid = %u', $Mtype, $Mtype, $earn, $cost, $userid); to: $query = sprintf('UPDATE `users` SET %s = %s + %u, brave = brave - %u, Mturns = Mturns - %u WHERE userid = %u', $Mtype, $Mtype, $earn, $cost, 1, $userid); you would also need to add the turns showing in the file replace: echo '<h3>Mine Shaft</h3>'; with: echo '<h3>Mine Shaft (Turns: '.$ir['Mturns'].')</h3>'; and obviously the cron_day code: $db->query('UPDATE `users` SET Mturns = 20'); although i did code this i suggest on adding this function into it when it runs with no sql rows into user db needed (without this function) the original mine shaft mod posted in i think it was the 3rd post takes 100% brave per turn... it takes 5 mins for it to grow a percentage so i don't understand how anyone could consider this modification even needing turns Uriah yes you don't mind admitting it i see which is a good start but maybe get over your im a victim stage and people will talk to you without thinking is she lieing...
-
Re: [mccode v2] Male & Female count also Males & Females that are Online $males = $db->fetch_row($db->query('SELECT COUNT(userid) AS count FROM users WHERE gender="Male"')); $females = $db->fetch_row($db->query('SELECT COUNT(userid) AS count FROM `users` WHERE gender="Female"')); would be better i think
-
Re: [mccode v2] Mine Shaft Yeah i criticize people but it is always encouraging criticism. ask any member i will help anyone who asks in a polite way unless its something like "Can you code my game for free" ill send them here. and just to clarify how many times have i helped you Uriah? even though i can't stand being around you i have helped... answer that... and with some of the minor problems have i not given you hints to research to get the answers? another simple question: Who saved your site from being ruined by ****** and gave you a code to patch forum? BUT SERIOUSLY please refrain from posting anymore (because i know now you will not publicly admit your wrong and i have helped you on many occasions) we are trying to keep the useless posts down sadly some people didn't get the message. (and i know that means me for all the replies but i am allowed at least the last word on my topic)
-
Re: [MCcodes V2] Gang Bomb [$15.00] v2 sucks, bugs and holes everywhere. True mate, 8 COPIES left get 'em while they are still available
-
Re: [mccode v2] Mine Shaft I admit i could brush up on some spelling but i type very fast compared to other people since i have had alot of experience in program coding and html before php. maybe you should imply some of my Live It, Learn It, CODE It. to yourself i mean you maybe a good speller but i have never seen you post one mod yet. but looking at your website you use everyone's. hit a nerve im sorry someone that low to the ground couldn't hit a nerve. Laugh Out Loud!
-
Re: [mccode v2] Mine Shaft It's 3:36AM and i seriously have no reason to pay this any attention besides a simple a quick reply i can't help if your insecure about your mistakes but love to point out other peoples. anymore posts can be sent over yahoo.
-
Re: [mccode v2] Mine Shaft I don't think a type means i can't spell, but Live it, Learn it, Code it means code not spelling i mean come on hence the CODE... lol
-
Re: [MCcodes V2] Gang Bomb [$15.00] No need to defend me mate but thanks all the same, hows that mod doing anyways? yeah obviously i just wanted to make it clear to anyone who read the topic. I do understand how you guys can put it in the same category which i do actually put it in the item bomb category myself. i have been bored and just coded anything i could think of lately lol which reminds me look out for my next mod (after i code 2 - 3 languages on my game)
-
Re: [mccode v2] Mine Shaft <?php require "globals.php"; $_POST['shaft'] = abs((int) $_POST['shaft']); echo '<h3>Mine Shaft</h3>'; $shaft_array = array(1, 5, 10, 25, 50, 60, 75, 100); if(in_array($_POST['shaft'], $shaft_array)) // checks if the posted data is valid { $costi = $ir['level']*2+3; // Normal level gain is +2 brave each level so $ir['level']*2+3 the plus 3 is because they start with 5 is the max will for the users level $cost = $costi/2; // the divide 2 allows multiple goes if oyu add a 3 they will get 3 goes and so on if($ir['brave'] < $cost) // checks to see if the user has enough brave { echo 'Invalid Command. You don\'t have enough brave for this shaft. >[url="'.$_SERVER['PHP_SELF'].'"]Go Back[/url]'; $h->endpage(); exit; } if($_POST['shaft'] <= 25) // checks if its a money function { $earn = rand(1, $_POST['shaft'])*2; // example: 44 multiplied by 2 equals 88, so the user gets $88 (i suggest editing this to maybe *5) which then would equal $220 $Mtype = 'money'; // This is basically what tells the sql query several lines down what to add depending on shaft in this case money } elseif($_POST['shaft'] > 25 AND $_POST['shaft'] <= 100) // checks if its a crystal function { $earn = rand(1, $_POST['shaft'])/2; // example: 88 divided by 2 equals 44, so the user would get 44 crystals (that's using shaft 100 [the max]) $Mtype = 'crystals'; // This is basically what tells the sql query several lines down what to add depending on shaft in this case crystals } $chance = rand(1, 3); if($chance == 3) { echo '<font color="green">[b]You\'re mining trip came out to be successful, you earned: $'.$earn.' congratulations.[/b]</font>'; $query = sprintf('UPDATE `users` SET %s = %s + %u, brave = brave - %u WHERE userid = %u', $Mtype, $Mtype, $earn, $cost, $userid); // %s is text AND %u is numbers $db->query($query); } else { echo '<font color="red">[b]You\'re mining trip came out to be disastrous.[/b]</font>'; $query = sprintf('UPDATE `users` SET brave = brave - %u WHERE userid = %u', $cost, $userid); $db->query($query); } echo ' >[url="'.$_SERVER['PHP_SELF'].'"]Go Back[/url]'; $h->endpage(); exit; } else { echo ' <form action="'.$_SERVER['PHP_SELF'].'" method="post"> <table width="60%" class="h" border="1" align="center"> <tr> <th width=50%>Level</th> <th width=50%>Do</th> </tr> <tr align="center" class="h"> <td colspan="2">Money</td> </tr> <tr align="center"> <td>1</td> <td><input type="radio" name="shaft" value="1"></td> </tr> <tr align="center"> <td>5</td> <td><input type="radio" name="shaft" value="5"></td> </tr> <tr align="center"> <td>10</td> <td><input type="radio" name="shaft" value="10"></td> </tr> <tr align="center"> <td>25</td> <td><input type="radio" name="shaft" value="25"></td> </tr> <tr align="center" class="h"> <td colspan="2">Crystal</td> </tr> <tr align="center"> <td>50</td> <td><input type="radio" name="shaft" value="50"></td> </tr> <tr align="center"> <td>60</td> <td><input type="radio" name="shaft" value="60"></td> </tr> <tr align="center"> <td>75</td> <td><input type="radio" name="shaft" value="75"></td> </tr> <tr align="center"> <td>100</td> <td><input type="radio" name="shaft" value="100"></td> </tr> <tr align="center" class="h"> <td colspan="2"><input type="submit" value="Mine"></form></td> </tr> </table> '; } $h->endpage(); ?> Corrected a small spelling mistake. and since i cannot edit my original post i though i would just post again.