-
Posts
2,686 -
Joined
-
Last visited
-
Days Won
81
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
[mccode] A better Safer Forum for your members to enjoy
Uridium replied to Uridium's topic in Free Modifications
Re: [MOD Mcc V1 + V2] A better Safer Forum for your members to enjoy Can i mention... DONT REMOVE ANY COPYRIGHTS EITHER FROM THE THEMES OR THE SMF ITSELF The guys tat created the forums have done a great job as with the Theme Creators so give them Credit by leaving their Copyright Notices Intact. Cheeeeers -
[mccode] A better Safer Forum for your members to enjoy
Uridium replied to Uridium's topic in Free Modifications
Re: [MOD Mcc V1 + V2] A better Safer Forum for your members to enjoy Cheers matey the simple ideas always prove to be the best ones :) -
[mccode] A better Safer Forum for your members to enjoy
Uridium replied to Uridium's topic in Free Modifications
Re: [MOD Mcc V1 + V2] A better Safer Forum for your members to enjoy That sounds good but your also going to have to put your SMF tables inside of your MCC tables which reduces your security.. The SMF on mine is away from tha MCC tables thus making it a bit more secure.. -
[mccode] A better Safer Forum for your members to enjoy
Uridium replied to Uridium's topic in Free Modifications
Re: [MOD Mcc V1 + V2] A better Safer Forum for your members to enjoy Too be honest im not sure i havent gone as far as doing that. It ptobably can be done but may also need extra info like email addresses for all members so they can retrieve lost passwords.. Again i would just let your members just Re-reg for the forum its only 30 seconds but that 30 seconds is what makes their accounts safer,,, -
[mccode] A better Safer Forum for your members to enjoy
Uridium replied to Uridium's topic in Free Modifications
Re: [MOD Mcc V1 + V2] A better Safer Forum for your members to enjoy Too be honest the registration for your users will take less than 30 seconds to do it would take you longer messing about trying to get everyones username and passwords from your mcc to place into the SMF.. I would give them a clean slate and make the SMF as it is for them to Register -
[Other] Disable Register(not technicaly disabled)
Uridium replied to Solid Snake's topic in Free Modifications
Re: [Other] Disable Register(not technicaly disabled) Actually i gotta agree with you would be a lot easier just rename the register and make another that says GO AWAY come back when im done ;) -
[mccode] A better Safer Forum for your members to enjoy
Uridium posted a topic in Free Modifications
I was fed up of the way that the Forums were on the standard MCC talk about rubbish so i decided to install an SMF forum instead... Download link for SMF forums.. http://www.simplemachines.org/download/ Forum Themes Downloads (free) Use drop down at top of the theme to change, view, download http://www.smfthemes.org/index.php?theme=160 My little bit.. call this file forumframe.php <?php include "globals.php"; echo " <iframe src='http://www.yourwebsiteurl.com/forum/' allowtransparency='true' frameborder='0' scrolling='no' width='100%' height='1500' style='border: 0px solid #000000;'></iframe>"; $h->endpage(); ?> and replace the old menu forum link in mainmenu.php to point to the one placed in your forumframe.php file The outcome.. -
[mod v2] halloween bit late but fun Scare members with Masks
Uridium replied to Uridium's topic in Free Modifications
Re: [mod v2] halloween bit late but fun Scare members with Masks Well you dont really need to use it just for halloween you could just alter scare to become anything infact may even make a decent Xmas script if you alter it right :) -
mccode-v2 Upgrade IPFINDER original Script by Magicaltallguy
Uridium replied to Uridium's topic in Free Modifications
Re: mccodes V2] Upgrade IPFINDER original Script by Magicaltallguy CREATE TABLE IF NOT EXISTS `ipfinder` ( `ip` varchar(255) NOT NULL default '0', `status` varchar(255) NOT NULL default '', `cleared_by` varchar(255) NOT NULL default '' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; SQLS -
mccode-v2 Upgrade IPFINDER original Script by Magicaltallguy
Uridium replied to Uridium's topic in Free Modifications
Re: mccodes V2] Upgrade IPFINDER original Script by Magicaltallguy <?php include "sglobals.php"; /* Created by Magictallguy */ error_reporting(E_ALL); if($ir['user_level'] != 2 && $ir['user_level'] != 3) { die("You can't access this"); } //----------- $_GET['action'] = isset($_GET['action']) && is_string($_GET['action']) ? strtolower(trim($_GET['action'])) : ""; //----------- switch($_GET['action']) { case 'index': index(); break; case 'status': status(); break; case 'status2': status_edit(); break; default: index(); break; } function index() { echo ("10.0.0.0 and 127.0.0.1 are default IPs. Pay no attention to those. <table border='1' class='table' cellpadding='2' cellspacing='2' width='100%'> <tr> <th>IP</th> <th>How Many</th> <th>ID's</th> <th>Usernames</th> <th>Status</th> <th>Cleared By</th> </tr>"); $sql = ( "SELECT `username`,`lastip`, COUNT(`userid`) AS `numusers`, `userid`, CAST(GROUP_CONCAT(`userid`) AS CHAR) AS `userlist`, fedjail " . "FROM `users` " . "WHERE (`lastip` != '') " . "GROUP BY `lastip` " . "HAVING (`numusers` > 1) " . "ORDER BY `lastip`"); $mysql = mysql_query($sql); while($z = mysql_fetch_array($mysql)) { $ipcheck = sprintf("SELECT * FROM ipfinder WHERE (ip = '%s')", $z['lastip']); $doipcheck = mysql_query($ipcheck); $ip = mysql_fetch_array($doipcheck); if($ip['status'] == "" || !$ip['status']) { $status = "<font color=blue>Needs Checking</font>"; } ## else { $status = stripslashes($ip['status']); } ## if(!$ip['cleared_by']) { $cleared = "No-one"; } ## else { $cleared = $ip['cleared_by']; } echo ("<tr>"); echo sprintf("<td style='text-align:center;'>[url='/ipfinder.php?action=status&ip=%s']%s[/url]</td>", $z['lastip'], $z['lastip']); echo sprintf("<td style='text-align:center;'>%s</td>", $z['numusers']); echo sprintf("<td>%s</td>", wordwrap($z['userlist'], 50, " \n", true)); echo sprintf("<td style='text-align:center;'><a href='/details.php?u=%s'>%s</td>", $z['userid'], $z['username']); echo sprintf("<td style='text-align:center;'>%s</td>", $status); echo sprintf("<td style='text-align:center;'>%s</td>", $cleared); echo ("</tr>"); } echo ("</table>"); } function status() { echo sprintf("Editing the status of IP: %s", $_GET['ip']); $GetIPDetails = sprintf("SELECT * FROM ipfinder WHERE (ip = '%s')", $_GET['ip']); $sql = mysql_query($GetIPDetails); $a = mysql_fetch_array($sql); echo (" "); echo ("You can use code, but limit it to font colours only (<font color=colour>Text</font>) "); echo ("<font color=red>Multi</font> - <font color=green>Federal Jailed</font> "); echo ("<font color=green>Library IP</font> "); echo (" <font color=orange>Side Note:</font> "); echo ("<form action='ipfinder.php?action=status2' method='post'>"); echo sprintf("<input type='hidden' name='ip' value='%s' />", $_GET['ip']); echo sprintf("<textarea rows='10' cols='50' name='status'>".$a['status']."</textarea> "); echo ("<input type='submit' value='Change Status'>"); echo ("</form>"); } function status_edit() { $Count = sprintf("SELECT ip FROM ipfinder WHERE (ip = '%s')", $_POST['ip']); $mq = mysql_query($Count); # $Name = sprintf("SELECT userid, username FROM users WHERE (userid = %u)", $_SESSION['userid']); $SN = mysql_query($Name); $fluff = mysql_fetch_array($SN); if(mysql_num_rows($mq) == 0) { $Update = sprintf("INSERT INTO ipfinder VALUES ('%s', '%s', '%s')", $_POST['ip'], mysql_real_escape_string($_POST['status']), mysql_real_escape_string($fluff['username'])); mysql_query($Update) OR DIE(mysql_error()); echo ("[b]Status Updated![/b]<hr />[url='/ipfinder.php']Back[/url]"); } else { $Insert = sprintf("UPDATE ipfinder SET status = '%s', cleared_by = '%s' WHERE (ip = '%s')", $_POST['status'], mysql_real_escape_string($fluff['username']), $_POST['ip']); echo ("[b]Status Updated![/b]<hr />[url='/ipfinder.php']Back[/url]"); mysql_query($Insert) OR DIE(mysql_error()); } stafflog_add(sprintf("Edited the status of IP %s", $_POST['ip'])); } ?> Updated Script should work fine now -
[mod v2] halloween bit late but fun Scare members with Masks
Uridium replied to Uridium's topic in Free Modifications
Re: [mod v2] halloween bit late but fun Scare members with Masks Add this line to your Viewuser.php Scare {$r['username']}' and finally the SQLs ALTER TABLE `items` ADD `mask` int(11) NOT NULL default '0'; and ALTER TABLE `users` ADD `scarewon` int(11) NOT NULL default '0'; ALTER TABLE `users` ADD `scare` int(11) NOT NULL default '0'; You will need to create an item mask sellable but as a weapon Your users can buy the masks and when inserted into their Inventory equip then to scare Opponents.... Oucomes Vary... and the final Result -
[mod v2] halloween bit late but fun Scare members with Masks
Uridium replied to Uridium's topic in Free Modifications
Re: [mod v2] halloween bit late but fun Scare members with Masks Call this Inventory.php or just extract what you need and place it into your own copy [<?php include "globals.php"; $q=$db->query("SELECT * FROM items WHERE itmid IN({$ir['equip_primary']}, {$ir['equip_secondary']}, {$ir['equip_armor']}, {$ir['equip_mask']})"); print "<h3>Equipped Items</h3><hr />"; while($r=$db->fetch_row($q)) { $equip[$r['itmid']]=$r; } print "<table width='75%' cellspacing='1' class='table'> <tr> <td>"; if($equip[$ir['equip_mask']]['itmid']) { print $equip[$ir['equip_mask']]['itmname']."</td><td>[url='unequip.php?type=equip_mask']Remove This Item[/url]</td>"; } else { print "<th>Face Mask.</th></td><td> </td>"; } print "</tr> </tr> <tr> <td>"; if($equip[$ir['equip_primary']]['itmid']) { print $equip[$ir['equip_primary']]['itmname']."</td><td>[url='unequip.php?type=equip_primary']Remove Left Handed[/url]</td>"; } else { print "<th>Equip Primary.</th></td><td> </td>"; } print "</tr> <tr> <td>"; if($equip[$ir['equip_secondary']]['itmid']) { print $equip[$ir['equip_secondary']]['itmname']."</td><td>[url='unequip.php?type=equip_secondary']Remove Right Handed[/url]</td>"; } else { print "<th>Equip Secondary.</th></td><td> </td>"; } print "</tr> <tr> <td>"; if($equip[$ir['equip_armor']]['itmid']) { print $equip[$ir['equip_armor']]['itmname']."</td><td>[url='unequip.php?type=equip_armor']Remove This Item[/url]</td>"; } else { print "<th>Armor.</th></td><td> </td>"; } print "</tr> <tr> <td>"; if($equip[$ir['equip_feet']]['itmid']) { print $equip[$ir['equip_feet']]['itmname']."</td><td>[url='unequip.php?type=equip_feet']Remove This Item[/url]</td>"; } else { print "<th>Feet.</th></td><td> </td>"; } print "</tr> </table><hr /> <h3>Inventory</h3> [[url='reorder.php']Click Here to Re group Items by Quantity[/url]]<hr />"; $inv=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_userid={$userid} ORDER BY i.itmtype ASC, i.itmname ASC"); if ($db->num_rows($inv) == 0) { print "[b]You have no items![/b]"; } else { print "[b]Your items are listed below.[/b] <table width=100% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <td class=\"h\">Item</td> <td class=\"h\">Sell </td> <td class=\"h\">Total Sell </td> <td class=\"h\">[b]Item Pic[/b]</td> <td class=\"h\">Links</td> </tr>"; $lt=""; while($i=$db->fetch_row($inv)) { if($lt!=$i['itmtypename']) { $lt=$i['itmtypename']; print "\n<tr><td colspan=5>[b]{$lt}[/b]</td></tr>"; } if($i['weapon']) { $i['itmname']="<font color='red'>*</font>".$i['itmname']; } if($i['armor']) { $i['itmname']="<font color='green'>*</font>".$i['itmname']; } if($i['mask']) { $i['itmname']="<font color='lime'>*</font>".$i['itmname']; } print "<tr><td>[url='iteminfo.php?ID={$i['][b]{$i['itmname']}[/b][/url]"; if ($i['inv_qty'] > 1) { print " x{$i['inv_qty']}"; } print "</td><td>\${$i['itmsellprice']}</td><td>"; print "$".($i['itmsellprice']*$i['inv_qty']); print"</td><td>[img=itmpics/{$i[]"; print "</td><td>[[url='itemsend.php?ID={$i[']Send[/url]] [[url='itemsell.php?ID={$i[']Sell[/url]] [[url='imadd.php?ID={$i[']Add To Market[/url]]"; if($i['effect1_on'] || $i['effect2_on'] || $i['effect3_on']) { print " [[url='itemuse.php?ID={$i[']Use[/url]]"; } if($i['weapon']) { print " [[url='equip_weapon.php?ID={$i[']Equip as Weapon[/url]]"; } if($i['armor']) { print " [[url='equip_armor.php?ID={$i[']Equip as Armor[/url]]"; ) if($i['mask']) { print " [[url='equip_mask.php?ID={$i[']Equip as Mask[/url]]"; } if($i['special']) { print ""; } print "</td></tr>"; } print "</table> "; print "[size="1"][b]NB:[/b] Items with a small red [/size]<font color='red'>*</font>[size="1"] next to their name can be used as weapons in combat. Items with a small green [/size]<font color='green'>*</font>[size="1"] next to their name can be used as armor in combat. Items with a small brown [/size]<font color='brown'>*</font>[size="1"] next to their name can be used as a Mask in combat. [/size]"; } $h->endpage(); ?> Call this File unequip.php <?php include "globals.php"; if(!in_array($_GET['type'], array("equip_primary", "equip_secondary", "equip_armor", "equip_mask"))) { print "This slot ID is not valid."; $h->endpage(); exit; } if(!$ir[$_GET['type']]) { print "You do not have anything equipped in this slot."; $h->endpage(); exit; } item_add($userid, $ir[$_GET['type']], 1); $db->query("UPDATE users SET {$_GET['type']}=0 WHERE userid={$ir['userid']}"); $names=array( "equip_primary" => "Left Hand", "equip_secondary" => "Right Hand", "equip_armor" => "Armor", "equip_mask" => "mask", ); print "The item in your {$names[$_GET['type']]} slot was successfully unequipped."; $h->endpage(); ?> -
[mod v2] halloween bit late but fun Scare members with Masks
Uridium replied to Uridium's topic in Free Modifications
Re: [mod v2] halloween bit late but fun Scare members with Masks call this file equip_mask.php <?php include "globals.php"; $_GET['ID'] = abs((int) $_GET['ID']); $id=$db->query("SELECT iv.*,it.* FROM inventory iv LEFT JOIN items it ON iv.inv_itemid=it.itmid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid LIMIT 1"); if($db->num_rows($id)==0) { print "Invalid item ID"; $h->endpage(); exit; } else { $r=$db->fetch_row($id); } if(!$r['mask']) { print "This item cannot be equipped to this slot."; $h->endpage(); exit; } if($_GET['type']) { if(!in_array($_GET['type'], array("equip_mask"))) { print "This slot ID is not valid."; $h->endpage(); exit; } if($ir[$_GET['type']]) { item_add($userid, $ir[$_GET['type']], 1); } item_remove($userid, $r['itmid'], 1); $db->query("UPDATE users SET {$_GET['type']} = {$r['itmid']} WHERE userid={$userid}"); print "Item {$r['itmname']} equipped successfully."; } else { print "<h3>Equip mask</h3><hr /> <form action='equip_mask.php' method='get'> <input type='hidden' name='ID' value='{$_GET['ID']}' /> Click Equip {$r['itmname']} as your mask <input type='hidden' name='type' value='equip_mask' /> <input type='submit' value='Equip mask' /></form>"; } $h->endpage(); ?> Call this file equip_weapon.php <?php include "globals.php"; $_GET['ID'] = abs((int) $_GET['ID']); $id=$db->query("SELECT iv.*,it.* FROM inventory iv LEFT JOIN items it ON iv.inv_itemid=it.itmid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid LIMIT 1"); if($db->num_rows($id)==0) { print "Invalid item ID"; $h->endpage(); exit; } else { $r=$db->fetch_row($id); } if(!$r['weapon']) { print "This item cannot be equipped to this slot."; $h->endpage(); exit; } if($_GET['type']) { if(!in_array($_GET['type'], array("equip_primary", "equip_secondary", "equip_mask"))) { print "This slot ID is not valid."; $h->endpage(); exit; } if($ir[$_GET['type']]) { item_add($userid, $ir[$_GET['type']], 1); } item_remove($userid, $r['itmid'], 1); $db->query("UPDATE users SET {$_GET['type']} = {$r['itmid']} WHERE userid={$userid}"); print "Item {$r['itmname']} equipped successfully."; } else { print "<h3>Equip Weapon</h3><hr /> <form action='equip_weapon.php' method='get'> <input type='hidden' name='ID' value='{$_GET['ID']}' /> Please choose the slot to equip {$r['itmname']} to, if there is already a weapon in that slot, it will be removed back to your inventory. <input type='radio' name='type' value='equip_primary' checked='checked' /> Equip Primary <input type='radio' name='type' value='equip_secondary' /> Equp Secondary <input type='radio' name='type' value='equip_mask' /> Mask <input type='submit' value='Equip Weapon' /></form>"; } $h->endpage(); ?> Part 4 to follow -
[mod v2] halloween bit late but fun Scare members with Masks
Uridium replied to Uridium's topic in Free Modifications
Re: [mod v2] halloween bit late but fun Scare members with Masks Replace your staff_Items.php with this one. remember to ammend or remove anything you dont need in this file..... <?php include "sglobals.php"; //This contains item stuffs switch($_GET['action']) { case 'newitem': new_item_form(); break; case 'newitemsub': new_item_submit(); break; case 'giveitem': give_item_form(); break; case 'giveitemsub': give_item_submit(); break; case 'killitem': kill_item_form(); break; case 'killitemsub': kill_item_submit(); break; case 'edititem': edit_item_begin(); break; case 'edititemform': edit_item_form(); break; case 'edititemsub': edit_item_sub(); break; case 'newitemtype': newitemtype(); break; case 'edititemtype': edititemtype(); break; case 'edititemtypeform': edititemtypeform(); break; case 'edititemtypesub': edititemtypesub(); break; case 'delitemtype': delitemtype(); break; case 'delitemtypesub': delitemtypesub(); break; case 'massitemgive': mass_give_item(); break; case 'massitemgivesub': mass_give_item_sub(); break; default: print "Error: This script requires an action."; break; } function new_item_form() { global $db,$ir,$c; if($ir['user_level'] > 2) { die("403"); } print "<h3>Adding an item to the game</h3><form action='staff_items.php?action=newitemsub' method='post'> Item Name: <input type='text' name='itmname' value='' /> Item Desc.: <input type='text' name='itmdesc' value='' /> Item Type: ".itemtype_dropdown($c,'itmtype')." Item Buyable: <input type='checkbox' name='itmbuyable' checked='checked' /> Item Price: <input type='text' name='itmbuyprice' /> Item Sell Value: <input type='text' name='itmsellprice' /> <hr /> [b]Usage Form[/b]<hr /> [b]<u>Effect 1</u>[/b] On? <input type='radio' name='effect1on' value='1' /> Yes <input type='radio' name='effect1on' value='0' checked='checked' /> No Stat: <select name='effect1stat' type='dropdown'> <option value='energy'>Energy</option> <option value='will'>Will</option> <option value='brave'>Brave</option> <option value='hp'>Health</option> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='guard'>Guard</option> <option value='labour'>Labour</option> <option value='IQ'>IQ</option> <option value='hospital'>Hospital Time</option> <option value='jail'>Jail Time</option> <option value='money'>Money</option> <option value='crystals'>Crystals</option> <option value='cdays'>Education Days Left</option> <option value='bankmoney'>Bank money</option> <option value='cybermoney'>Cyber money</option> <option value='crimexp'>Crime XP</option> </select> Direction: <select name='effect1dir' type='dropdown'> <option value='pos'>Increase</option> <option value='neg'>Decrease</option> </select> Amount: <input type='text' name='effect1amount' value='0' /> <select name='effect1type' type='dropdown'> <option value='figure'>Value</option> <option value='percent'>Percent</option> </select><hr /> [b]<u>Effect 2</u>[/b] On? <input type='radio' name='effect2on' value='1' /> Yes <input type='radio' name='effect2on' value='0' checked='checked' /> No Stat: <select name='effect2stat' type='dropdown'> <option value='energy'>Energy</option> <option value='will'>Will</option> <option value='brave'>Brave</option> <option value='hp'>Health</option> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='guard'>Guard</option> <option value='labour'>Labour</option> <option value='IQ'>IQ</option> <option value='hospital'>Hospital Time</option> <option value='jail'>Jail Time</option> <option value='money'>Money</option> <option value='crystals'>Crystals</option> <option value='cdays'>Education Days Left</option> <option value='bankmoney'>Bank money</option> <option value='cybermoney'>Cyber money</option> <option value='crimexp'>Crime XP</option> </select> Direction: <select name='effect2dir' type='dropdown'> <option value='pos'>Increase</option> <option value='neg'>Decrease</option> </select> Amount: <input type='text' name='effect2amount' value='0' /> <select name='effect2type' type='dropdown'> <option value='figure'>Value</option> <option value='percent'>Percent</option> </select><hr /> [b]<u>Effect 3</u>[/b] On? <input type='radio' name='effect3on' value='1' /> Yes <input type='radio' name='effect3on' value='0' checked='checked' /> No Stat: <select name='effect3stat' type='dropdown'> <option value='energy'>Energy</option> <option value='will'>Will</option> <option value='brave'>Brave</option> <option value='hp'>Health</option> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='guard'>Guard</option> <option value='labour'>Labour</option> <option value='IQ'>IQ</option> <option value='hospital'>Hospital Time</option> <option value='jail'>Jail Time</option> <option value='money'>Money</option> <option value='crystals'>Crystals</option> <option value='cdays'>Education Days Left</option> <option value='bankmoney'>Bank money</option> <option value='cybermoney'>Cyber money</option> <option value='crimexp'>Crime XP</option> </select> Direction: <select name='effect3dir' type='dropdown'> <option value='pos'>Increase</option> <option value='neg'>Decrease</option> </select> Amount: <input type='text' name='effect3amount' value='0' /> <select name='effect3type' type='dropdown'> <option value='figure'>Value</option> <option value='percent'>Percent</option> </select><hr /> [b]Combat Usage[/b] Weapon Power: <input type='text' name='weapon' value='0' /> Armor Defense: <input type='text' name='armor' value='0' /> Mask Power: <input type='text' name='mask' value='0' /> [b]Item Pics[/b] <input type='text' name='itmpic' value='default.jpg' /><hr /> <input type='submit' value='Add Item To Game' /></form>"; } function new_item_submit() { global $db,$ir,$c,$h; if($ir['user_level'] > 2) { die("403"); } if(!isset($_POST['itmname']) || !isset($_POST['itmdesc']) || !isset($_POST['itmtype']) || !isset($_POST['itmbuyprice']) || !isset($_POST['itmsellprice'])) { print "You missed one or more of the fields. Please go back and try again. [url='staff_items.php?action=newitem']> Back[/url]"; $h->endpage(); exit; } $itmname=$db->escape($_POST['itmname']); $itmdesc=$db->escape($_POST['itmdesc']); $weapon=abs((int) $_POST['weapon']); $armor=abs((int) $_POST['armor']); $mask=abs((int) $_POST['mask']); if($_POST['itmbuyable'] == 'on') { $itmbuy=1; } else { $itmbuy=0; } $efx1=$db->escape(serialize(array("stat" => $_POST['effect1stat'], "dir" => $_POST['effect1dir'], "inc_type" => $_POST['effect1type'], "inc_amount" => abs((int) $_POST['effect1amount'])))); $efx2=$db->escape(serialize(array("stat" => $_POST['effect2stat'], "dir" => $_POST['effect2dir'], "inc_type" => $_POST['effect2type'], "inc_amount" => abs((int) $_POST['effect2amount'])))); $efx3=$db->escape(serialize(array("stat" => $_POST['effect3stat'], "dir" => $_POST['effect3dir'], "inc_type" => $_POST['effect3type'], "inc_amount" => abs((int) $_POST['effect3amount'])))); $m=$db->query("INSERT INTO items VALUES('',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor, $mask, '{$_POST['itmpic']}')"); print "The {$_POST['itmname']} Item was added to the game."; stafflog_add("Created item {$_POST['itmname']}"); } function give_item_form() { global $db,$ir,$c; if($ir['user_level'] > 3) { die("403"); } print "<h3>Giving Item To User</h3> <form action='staff_items.php?action=giveitemsub' method='post'> User: ".user_dropdown($c,'user')." Item: ".item_dropdown($c,'item')." Quantity: <input type='text' name='qty' value='1' /> <input type='submit' value='Give Item' /></form>"; } function give_item_submit() { global $db,$ir,$c; if($ir['user_level'] > 3) { die("403"); } $db->query("INSERT INTO inventory VALUES('',{$_POST['itmname']}, {$_POST['item']},{$_POST['user']},{$_POST['qty']})",$c) or die(mysql_error()); print "You gave {$_POST['qty']} of item ID {$_POST['itmname']} to user ID {$_POST['user']}"; stafflog_add("Gave {$_POST['qty']} of item ID {$_POST['itmname']} to user ID {$_POST['user']}"); } function kill_item_form() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } print "<h3>Deleting Item</h3> The item will be permanently removed from the game. <form action='staff_items.php?action=killitemsub' method='post'> Item: ".item_dropdown($c,'item')." <input type='submit' value='Kill Item' /></form>"; } function kill_item_submit() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } $d=$db->query("SELECT * FROM items WHERE itmid={$_POST['item']}"); $itemi=$db->fetch_row($d); $db->query("DELETE FROM items WHERE itmid={$_POST['item']}"); $db->query("DELETE FROM shopitems WHERE sitemITEMID={$_POST['item']}"); $db->query("DELETE FROM inventory WHERE inv_itemid={$_POST['item']}"); $db->query("DELETE FROM itemmarket WHERE imITEM={$_POST['item']}"); print "The {$itemi['itmname']} Item was removed from the game."; stafflog_add("Deleted item {$itemi['itmname']}"); } function edit_item_begin() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } print "<h3>Editing Item</h3> You can edit any aspect of this item. <form action='staff_items.php?action=edititemform' method='post'> Item: ".item_dropdown($c,'item')." <input type='submit' value='Edit Item' /></form>"; } function edit_item_form() { global $db,$ir,$c,$h; if($ir['user_level'] > 2) { die("403"); } $d=$db->query("SELECT * FROM items WHERE itmid={$_POST['item']}"); $itemi=$db->fetch_row($d); print "<h3>Editing Item</h3> <form action='staff_items.php?action=edititemsub' method='post'> <input type='hidden' name='itmid' value='{$_POST['item']}' /> Item Name: <input type='text' name='itmname' value='{$itemi['itmname']}' /> Item Desc.: <input type='text' name='itmdesc' value='{$itemi['itmdesc']}' /> Item Type: ".itemtype_dropdown($c,'itmtype',$itemi['itmtype'])." Item Buyable: <input type='checkbox' name='itmbuyable'"; if ($itemi['itmbuyable']) { print " checked='checked'"; } print " /> Item Price: <input type='text' name='itmbuyprice' value='{$itemi['itmbuyprice']}' /> Item Sell Value: <input type='text' name='itmsellprice' value='{$itemi['itmsellprice']}' /><hr />[b]Usage Form[/b]<hr />"; $stats=array( "energy" => "Energy", "will" => "Will", "brave" => "Brave", "hp" => "Health", "strength" => "Strength", "agility" => "Agility", "guard" => "Guard", "labour" => "Labour", "IQ" => "IQ", "hospital" => "Hospital Time", "jail" => "Jail Time", "money" => "Money", "crystals" => "Crystals", "cdays" => "Education Days Left", "bankmoney" => "Bank money", "cybermoney" => "Cyber money", "crimexp" => "Crime XP"); for($i=1;$i<=3;$i++) { if($itemi["effect".$i]) { $efx=unserialize($itemi["effect".$i]); } else { $efx=array("inc_amount" => 0); } $switch1=($itemi['effect'.$i.'_on'] > 0) ? " checked='checked'" : ""; $switch2=($itemi['effect'.$i.'_on'] > 0) ? "" : " checked='checked'"; print "[b]<u>Effect {$i}</u>[/b] On? <input type='radio' name='effect{$i}on' value='1'$switch1 /> Yes <input type='radio' name='effect{$i}on' value='0'$switch2 /> No Stat: <select name='effect{$i}stat' type='dropdown'>"; foreach($stats as $k => $v) { if($k==$efx['stat']) { print "<option value='{$k}' selected='selected'>{$v}</option>\n"; } else { print "<option value='$k'>{$v}</option>\n"; } } if($efx['dir']=="neg") { $str="<option value='pos'>Increase</option><option value='neg' selected='selected'>Decrease</option>"; } else { $str="<option value='pos' selected='selected'>Increase</option><option value='neg'>Decrease</option>"; } if($efx['inc_type']=="percent") { $str2="<option value='figure'>Value</option><option value='percent' selected='selected'>Percent</option>"; } else { $str2="<option value='figure' selected='selected'>Value</option><option value='percent'>Percent</option>"; } print "</select> Direction: <select name='effect{$i}dir' type='dropdown'>{$str} </select> Amount: <input type='text' name='effect{$i}amount' value='{$efx['inc_amount']}' /> <select name='effect{$i}type' type='dropdown'>{$str2}</select><hr />"; } print "[b]Combat Usage[/b] Weapon Power: <input type='text' name='weapon' value='{$itemi['weapon']}' /> Armor Defense: <input type='text' name='armor' value='{$itemi['armor']}' /><hr /> Mask Power: <input type='text' name='mask' value='{$itemi['mask']}' /> [b]Item Pics[/b] <input type='text' name='itmpic' value='{$itemi['itmpic']}' /><hr /> <input type='submit' value='Edit Item' /></form>"; } function edit_item_sub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } if(!isset($_POST['itmname']) || !isset($_POST['itmdesc']) || !isset($_POST['itmtype']) || !isset($_POST['itmbuyprice']) || !isset($_POST['itmsellprice'])) { print "You missed one or more of the fields. Please go back and try again. [url='staff_items.php?action=edititem']> Back[/url]"; $h->endpage(); exit; } $itmname=$_POST['itmname']; $itmdesc=$_POST['itmdesc']; $weapon=abs((int) $_POST['weapon']); $armor=abs((int) $_POST['armor']); $mask=abs((int) $_POST['mask']); if($_POST['itmbuyable'] == 'on') { $itmbuy=1; } else { $itmbuy=0; } $db->query("DELETE FROM items WHERE itmid={$_POST['itmid']}",$c); $efx1=$db->escape(serialize(array("stat" => $_POST['effect1stat'], "dir" => $_POST['effect1dir'], "inc_type" => $_POST['effect1type'], "inc_amount" => abs((int) $_POST['effect1amount'])))); $efx2=$db->escape(serialize(array("stat" => $_POST['effect2stat'], "dir" => $_POST['effect2dir'], "inc_type" => $_POST['effect2type'], "inc_amount" => abs((int) $_POST['effect2amount'])))); $efx3=$db->escape(serialize(array("stat" => $_POST['effect3stat'], "dir" => $_POST['effect3dir'], "inc_type" => $_POST['effect3type'], "inc_amount" => abs((int) $_POST['effect3amount'])))); $m=$db->query("INSERT INTO items VALUES('{$_POST['itmid']}',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor, $mask, '{$_POST['itmpic']}')"); print "The {$_POST['itmname']} Item was edited successfully."; stafflog_add("Edited item {$_POST['itmname']}"); } function newitemtype() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } if($_POST['name']) { $db->query("INSERT INTO itemtypes VALUES(NULL, '{$_POST['name']}')"); print "Item Type {$_POST['name']} added."; stafflog_add("Added item type {$_POST['name']}"); } else { print "<h3>Add Item Type</h3><hr /> <form action='staff_items.php?action=newitemtype' method='post'> Name: <input type='text' name='name' /> <input type='submit' value='Add Item Type' /></form>"; } } function edititemtype() { global $db,$ir,$c,$h,$userid; print "<h3>Remove Item Type</h3><hr /> <form action='staff_items.php?action=edititemtypeform' method='post'> Name: ".itemtype_dropdown($c,'itmtype')." <input type='submit' value='Edit Item Type' /></form> "; } function edititemtypeform() { global $db,$ir,$c,$h,$userid; $d=$db->query("SELECT * FROM itemtypes WHERE itmtypeid={$_POST['itmtype']}"); $itemt=$db->fetch_row($d); print "<h3>Remove Item Type</h3><hr /> <form action='staff_items.php?action=edititemtypesub' method='post'> <input type='hidden' name='itmtypeid' value='{$_POST['itmtype']}' /> Name: <input type='text' name='rename' value='{$itemt['itmtypename']}' /> <input type='submit' value='Edit Item Type' /></form> "; } function edititemtypesub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } $db->query("DELETE FROM itemtypes WHERE itmtypeid={$_POST['itmtypeid']}"); $db->query("INSERT INTO itemtypes VALUES('{$_POST['itmtypeid']}', '{$_POST['rename']}')"); print "The itemtype {$_POST['rename']} has been edited."; stafflog_add("Editted itemtype {$_POST['rename']}"); } function delitemtype() { global $db,$ir,$c,$h,$userid; print "<h3>Remove Item Type</h3><hr /> <form action='staff_items.php?action=delitemtypesub' method='post'> Name: ".itemtype_dropdown($c,'itmtype')." <input type='submit' value='Remove Item Type' /></form> "; } function delitemtypesub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } $d=$db->query("SELECT * FROM itemtypes WHERE itmtypeid={$_POST['itmtype']}"); $itemt=$db->fetch_row($d); $db->query("DELETE FROM itemtypes WHERE itmtypeid={$_POST['itmtype']}"); print "The itemtype {$itemt['itmtypename']} has been removed from the game."; stafflog_add("Deleted itemtype {$itemt['itmtypename']}"); } function mass_give_item() { global $db,$ir,$c; print "<h3>Giving Item To All Users</h3> <form action='staff_items.php?action=massitemgivesub' method='post'> Item: ".item_dropdown($c,'item')." Quantity: <input type='text' name='qty' value='1' /> <input type='submit' value='Mass Send' /></form>"; } function mass_give_item_sub() { global $db,$ir,$c; $q=mysql_query("SELECT * FROM users WHERE fedjail=0",$c); while($r=mysql_fetch_array($q)) { $db->query("INSERT INTO inventory VALUES('',{$_POST['item']},{$r['userid']},{$_POST['qty']})",$c) or die(mysql_error()); event_add($r['userid'],"All users were given an item {$_POST['item']}, Click [url='inventory.php']Here[/url] to check.",$c); print "Item Sent To {$r['username']}</br>"; } print " <font color=blue>Mass item sending complete!</br></font>"; stafflog_add("Gave {$_POST['qty']} of item ID {$_POST['item']} to all users"); } $h->endpage(); ?> PART 3 to follow -
Sorry this is late for Halloween but its still fun to have based on the attack.php ive just modified it so members can wear Masks to scare the hell out of each other.. Call this file scare.php <?php $menuhide=1; $atkpage=1; include "globals.php"; $_GET['ID'] == (int) $_GET['ID']; if(!$_GET['ID']) { print "Invalid Move!!"; $h->endpage(); exit; } else if($_GET['ID'] == $userid) { print "Pointless trying to scare yourself!."; $h->endpage(); exit; } else if ($ir['hp'] <= 1) { print "You couldnt scare yourself let alone anyone else. [url='index.php']Back[/url]"; $h->endpage(); exit; } else if ($_SESSION['scare'] == 1) { print "You Failed to scare anyone. [url='index.php']Back[/url]"; $_SESSION['scare']=0; $h->endpage(); exit; } //get player data $youdata=$ir; $q=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $odata=$db->fetch_row($q); $myabbr=($ir['gender']=="Male") ? "his" : "her"; $oabbr=($ir['gender']=="Male") ? "his" : "her"; if($ir['scare'] && $ir['scare'] != $_GET['ID']) { print "This is way too scared. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['scare']=0; $ir['scare']=0; $db->query("UPDATE users SET scare=0 WHERE userid=$userid"); exit; } if($_GET['nextstep'] > 50) { print"<center><h1><font color='red'>STALEMATE!</h1> <h2>Your both just scaring each other why not go play!</h2> [url='index.php']> Back[/url]</center>"; $h->endpage(); event_add($odata['userid'],"[url='viewuser.php?u=$userid']{$youdata['username']}[/url] Tried to Care You you but was Unsuccessful.",$c); event_add($youdata['userid']," You Tried to Scare [url='viewuser.php?u=$userid']{$odata['username']}[/url] but Scared Each Other.",$c); exit; } $hosp = rand(100,250); if($odata['bguard'] >0) { $db->query("UPDATE users SET hp=0, hospital=hospital+$hosp, hospreason='Beaten Severely By Someones Personal Bodyguard' WHERE userid=$userid",$c); die("<center>[b]<font color='#FFFF00'>Holy Shit![/b]</font> You Just Got Your Ass Kicked By The Bodygaurd!! [url='index.php']>Home[/url]</center>"); } else if($odata['hospital']) { print "This player is in hospital. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['scare']=0; $ir['scare']=0; $db->query("UPDATE users SET scare=0 WHERE userid=$userid"); exit; } else if($ir['hospital']) { print "While in hospital you can't scare anyone. [url='hospital.php']> Back[/url]"; $h->endpage(); $_SESSION['scare']=0; $ir['scare']=0; $db->query("UPDATE users SET scare=0 WHERE userid=$userid"); exit; } else if($odata['jail']) { print "This player is in jail. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['scare']=0; $ir['scare']=0; $db->query("UPDATE users SET scare=0 WHERE userid=$userid"); exit; } else if($ir['jail']) { print "While in jail you can't attack. [url='jail.php']> Back[/url]"; $h->endpage(); $_SESSION['scare']=0; $ir['scare']=0; $db->query("UPDATE users SET scare=0 WHERE userid=$userid"); exit; } else if($odata['travelling']) { print "That player is travelling. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['scare']=0; $ir['scare']=0; $db->query("UPDATE users SET scare=0 WHERE userid=$userid"); exit; } print "<table width=100%><tr><td colspan=2 align=center>"; if($_GET['maskid']) { if($_SESSION['scare']==0 && $ir['scare'] == 0) { if ($youdata['energy'] >= $youdata['maxenergy']/3) { $youdata['energy']-= floor($youdata['maxenergy']/3); $me=floor($youdata['maxenergy']/3); $db->query("UPDATE users SET energy=energy- {$me} WHERE userid=$userid"); $_SESSION['attacklog']=""; $_SESSION['attackdmg']=0; } else { print "You can only attack someone when you have 30% energy"; $h->endpage(); exit; } } $_SESSION['scare']=1; $ir['scare']=$odata['userid']; $db->query("UPDATE users SET scare={$ir['scare']} WHERE userid=$userid"); $_GET['maskid'] = (int) $_GET['maskid']; $_GET['nextstep'] = (int) $_GET['nextstep']; //damage if($_GET['maskid'] != $ir['equip_mask']) { print "Stop trying to abuse a game bug. You can lose all your EXP for that. [url='index.php']> Home[/url]"; $db->query("UPDATE users SET exp=100 where userid=$userid",$c); die(""); } $qo=$db->query("SELECT i.* FROM items i WHERE i.itmid={$_GET['maskid']}"); $r1=$db->fetch_row($qo); $mydamage=(int) (($r1['mask']*$youdata['strength']/($odata['guard']/1.5))*(rand(8000,12000)/10000)); $hitratio=max(10,min(60*$ir['agility']/$odata['agility'],95)); if(rand(1,100) <= $hitratio ) { $q3=$db->query("SELECT i.armor FROM items i WHERE itmid={$odata['equip_armor']} ORDER BY rand()"); if($db->num_rows($q3)) { $mydamage-=$db->fetch_single($q3); } if($mydamage < -100000) { $mydamage=abs($mydamage); } else if($mydamage < 1) { $mydamage=1; } $crit=rand(1,40); if($crit==17) { $mydamage*=rand(20,40)/10; } else if($crit==25 or $crit == 8) { $mydamage/=(rand(20,40)/10); } $mydamage=round($mydamage); $odata['hp']-=$mydamage; if($odata['hp']==1) { $odata['hp']=0;$mydamage+=1; } $db->query("UPDATE users SET hp=hp-$mydamage WHERE userid={$_GET['ID']}"); //$db->query("UPDATE items SET itmdamage-1 WHERE itmid={$_GET['maskid']}"); print "<font color=red>{$_GET['nextstep']}. You jump out from behind a bush wearing your {$r1['itmname']} you scared the hell out of {$odata['username']}</font> \n"; $_SESSION['attackdmg']+=$mydamage; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. Using {$myabbr} {$r1['itmname']} {$ir['username']} hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font> \n"; } else { print "<table width='169' cellpadding='0' cellspacing='0'> <tr> <td width='169' height='39' background='block_01.jpg'><center>[b]{$odata['username']} Health[/b]</td></tr><tr> <td width='169' background='block_02.jpg' valign='top'><center><img src=greenbar.png width={$vars2['hpperc']} height=10><img src=redbar.png width={$vars2['hpopp']} height=10> [img=attpics/{$odata[] <tr> <td width='169' height='21' height='21' background='block_03.jpg'><center></td></tr><tr><td> </td></tr> <tr> <table width='169' cellpadding='0' cellspacing='0'> <tr> <td width='169' height='39' background='block_01.jpg'><center>[b]{$ir['username']} Health:[/b]</td></tr><tr> <td width='169' background='block_02.jpg' valign='top'><center><img src=greenbar.png width={$vars['hpperc']} height=10><img src=redbar.png width={$vars['hpopp']} height=10> [img=attpics/{$ir[]<tr> <td width='169' height='21' height='21' background='block_03.jpg'><center></td></tr><tr><td> </td></tr> <tr></table><font color=red>{$_GET['nextstep']}. You tried to hit {$odata['username']} but missed ({$odata['hp']})</font> \n"; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. {$ir['username']} tried to hit {$odata['username']} but missed ({$odata['hp']})</font> \n"; } if($odata['hp'] <= 0) { $odata['hp']=0; $_SESSION['scarewon']=$_GET['ID']; $db->query("UPDATE users SET hp=0 WHERE userid={$_GET['ID']}"); print " [b]You Scared the Shit out of {$odata['username']} [/b] [url='index.php']Lets go home for a Cuppa[/url]"; } else { //choose opp gun $eq=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$odata['equip_mask']})"); if(mysql_num_rows($eq) == 0) { $mask="Fists"; $dam=(int)((((int) ($odata['strength']/$ir['guard']/100)) +1)*(rand(8000,12000)/10000)); } else { $cnt=0; while($r=$db->fetch_row($eq)) { $enmasks[]=$r; $cnt++; } $masktouse=rand(0,$cnt-1); $mask=$enmasks[$masktouse]['itmname']; $dam=(int) (($enmasks[$masktouse]['mask']*$odata['strength']/($youdata['guard']/1.5))*(rand(8000,12000)/10000)); } $hitratio=max(10,min(60*$odata['agility']/$ir['agility'],95)); if(rand(1,100) <= $hitratio) { $q3=$db->query("SELECT i.mask FROM items i WHERE itmid={$ir['equip_mask']} ORDER BY rand()"); if($db->num_rows($q3)) { $dam-=$db->fetch_single($q3); } if($dam < -100000) { $dam=abs($dam); } else if($dam < 1) { $dam=1; } $crit=rand(1,40); if($crit==17) { $dam*=rand(20,40)/10; } else if($crit==25 or $crit == 8) { $dam/=(rand(20,40)/10); } $dam=round($dam); $youdata['hp']-=$dam; if ($youdata['hp']==1) { $dam+=1; $youdata['hp']=0; } $db->query("UPDATE users SET hp=hp-$dam WHERE userid=$userid"); $ns=$_GET['nextstep']+1; print "<font color=blue>{$ns}. Using $oabbr $mask {$odata['username']} scares you doing $dam damage ({$youdata['hp']})</font> \n"; $_SESSION['attacklog'].="<font color=blue>{$ns}. Using $oabbr $mask {$odata['username']} scares {$ir['username']} doing $dam damage ({$youdata['hp']})</font> \n"; } else { $ns=$_GET['nextstep']+1; print "<font color=red>{$ns}. {$odata['username']} tried to hit you but missed ({$youdata['hp']})</font> \n"; $_SESSION['attacklog'].="<font color=blue>{$ns}. {$odata['username']} tried to hit {$ir['username']} but missed ({$youdata['hp']})</font> \n"; } if($youdata['hp'] <= 0) { $youdata['hp']=0; $_SESSION['attacklost']=1; $db->query("UPDATE users SET hp=0 WHERE userid=$userid"); print "<form action='attacklost.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Continue' />"; } } } else if ($odata['hp'] < 5) { print "You can only attack those who have health"; $h->endpage(); exit; } else if ($ir['gang'] == $odata['gang'] && $ir['gang'] > 0) { print "You are in the same gang as {$odata['username']}! What are you smoking today dude!"; $h->endpage(); exit; } else if ($youdata['energy'] < $youdata['maxenergy']/3) { print "You can only attack someone when you have 30% energy"; $h->endpage(); exit; } else if ($youdata['location'] != $odata['location']) { print "You can only attack someone in the same location!"; $h->endpage(); exit; } else if ($odata['userid'] == 12) { print "<h1>You cannot scare me! Go scare Someone Else Up Im Too Busy ILLUSIONS</h1> [url='index.php']>Back[/url]"; exit; } print "</td></tr>"; if($youdata['hp'] <= 0 || $odata['hp'] <= 0) { print "</table>"; } else { $vars['hpperc']=round($youdata['hp']/$youdata['maxhp']*100); $vars['hpopp']=100-$vars['hpperc']; $vars2['hpperc']=round($odata['hp']/$odata['maxhp']*100); $vars2['hpopp']=100-$vars2['hpperc']; $mw=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$ir['equip_mask']})"); print "<tr><td colspan=2 align='center'>Scare with: "; if($db->num_rows($mw) > 0) { while($r=$db->fetch_row($mw)) { if(!$_GET['nextstep']) { $ns=1; } else { $ns=$_GET['nextstep']+2; } if($r['itmid']==$ir['equip_mask']) { print "<table ALIGN=CENTER width='169' cellpadding='0' cellspacing='0'> <tr> <td width='169' height='39' background='block_01.jpg'><center>[b]Primary mask[/b]</td></tr> <tr> <td width='169' background='block_02.jpg' valign='top'><center>"; } print "[url='scare.php?nextstep=$ns&ID={$_GET['][img=itmpics/{$r[]{$r['itdesc']}[/url] <tr> <td width='169' height='21' height='21' background='block_03.jpg'><center></td></tr><tr><td> </td></tr> <tr></table>"; } } else { print "You dont have a Mask to scare anyone with."; } print "</table>"; print" <table ALIGN=RIGHT width='169' cellpadding='0' cellspacing='0'> <tr> <td width='169' height='39' background='block_01.jpg'><center>[b]{$odata['username']} Fear Level[/b]</td></tr><tr> <td width='169' background='block_02.jpg' valign='top'><center><img src=greenbar.png width={$vars2['hpperc']} height=10><img src=redbar.png width={$vars2['hpopp']} height=10> [img=attpics/{$odata[] <tr> <td width='169' height='21' height='21' background='block_03.jpg'><center></td></tr><tr><td> </td></tr> <tr> <table ALIGN=LEFT width='169' cellpadding='0' cellspacing='0'> <tr> <td width='169' height='39' background='block_01.jpg'><center>[b]{$ir['username']} Fear Level:[/b]</td></tr><tr> <td width='169' background='block_02.jpg' valign='top'><center><img src=greenbar.png width={$vars['hpperc']} height=10><img src=redbar.png width={$vars['hpopp']} height=10> [img=attpics/{$ir[]<tr> <td width='169' height='21' height='21' background='block_03.jpg'><center></td></tr><tr><td> </td></tr> <tr></table>"; } $h->endpage(); ?> PART 2 to follow
-
mccode-v2 streets.php includes image + ability to fight NPCS
Uridium replied to Uridium's topic in Free Modifications
Re: [uPGRADE] V2 streets.php includes image + ability to fight NPCS Just to let you know i tried to reg on your game but was unable to due to a missing table Unknown column 'diamonds' in 'field list' might be worth commenting out the diamonds part if they are not available -
mccode-v2 New and improved inventory code sources for free!
Uridium replied to MDK666's topic in Free Modifications
Re: [mccodes v2]New and improved inventory code sources for free! Just to mention a small note :) When your adding your types to the database make sure that your staff_items.php is laid out the same way as your tables..... example if your tables are ALTER TABLE `items` ADD `head` int(11) NOT NULL default '0'; ALTER TABLE `items` ADD `legs` int(11) NOT NULL default '0'; ALTER TABLE `items` ADD `feet` int(11) NOT NULL default '0'; ALTER TABLE `items` ADD `mask` int(11) NOT NULL default '0'; Then when adding these to the staff_items.php make sure they are in the same order as above. $itmname=$_POST['itmname']; $itmdesc=$_POST['itmdesc']; $weapon=abs((int) $_POST['weapon']); $armor=abs((int) $_POST['armor']); $head=abs((int) $_post['head']); $legs=abs((int) $_POST['legs']); $feet=abs((int) $_POST['feet']); $mask=abs((int) $_POST['mask']); same also applies for your SQL queries...... $m=$db->query("INSERT INTO items VALUES('{$_POST['itmid']}',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor, $head, $legs, $feet, $mask)"); Or you may find when Editing or adding your new Selections they may be added to the wrong place. -
Re: mccodes v2 jail cron If you already have the minute cron set up then the rest of your crons will use that cron code. Or you can goto your config.php file and its the long lline of letters and numbers.. copy and paste that after code=4hjhjghj435ghghjew53hy on your Cpanels CRONJOBS page << Thats just an example by the way
-
Re: [mccode] Updated Mod for MainMenu pointless just add a male and female symbol beside names... not hard I agree even though its miy work and yes it maybe pointless have no real value but the fact remains its Free its an Addon and its been posted for those that may or may not wish to use it.
-
Re: [mccode] Updated Mod for MainMenu The answer to your question would be quite simply Dont use it :) if you have 400+ members each visit on your site then you wont need this mediocre addon. So quit being big headed and post somewhere else :)
-
Re: [requests] Bot online 24hours Sorry to sound stupid but HOW can somethng that never signs in show as onlline ?
-
Re: [mccodes v2]New and improved inventory And how many STANDARD versions of MCC have you seen this on ? sure primary, secondary, and armor are standard. I think what your trying to say POG is why didnt i think of this and do it. ANSWER is coz your too busy selling mods ;) Move over theres a new Script crew that do it for Free :)
-
mccode-v2 Upgrade IPFINDER original Script by Magicaltallguy
Uridium replied to Uridium's topic in Free Modifications
Re: mccodes V2] Upgrade IPFINDER original Script by Magicaltallguy I am also getting that Error just after you make a comment on someones IP as I havent touched the Remainder of the ipfinders script and only added the section username and click I cant comment on why its doing that but i'll have a play and see what i can come up with.. -
Re: How do i add images on to events Love the name of your game lol i think all games names should have a bit of humour lol