
Danny696
Members-
Posts
2,632 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
Events
Everything posted by Danny696
-
Re: mailbox.php now paying you if you can fix thats easy to fix
-
Re: [mccode v2] View User hey just a small problem when i go on the vactons or cactons when i try and attack it says no ID specified
-
i have made a little mod wich lets you craft items out of other items e.g water and coke makes rolla cola but i want it to only let you be able to make the rolla cola when youve done a course lets say the course of 'Make rolla cola' would it be like?? if($_GET['make'] == 2) {{ $stuff = $db->query("SELECT inv_id FROM `inventory` WHERE `inv_itemid` = 8021 AND `inv_itemid` = 8022 AND `inv_userid` = ".$ir['userid']); $db->query("SELECT courseid FROM `coursesdone` WHERE `courseid` = 3 AND 'userid` = ".$ir['userid']); if(mysql_num_rows($stuff)) { item_add($ir['userid'], 8044, 1); item_remove($ir['userid'], 8021, 1); item_remove($ir['userid'], 8022, 1); echo "Congratulations, you crafted Rolla Cola. [url='theflat.php']Back to the Flat[/url] "; }} else { echo "You do not have the sufficient ingredients yet <u>OR</u> you havent done the course . [url='theflat.php']Back to the Flat[/url] "; }}
-
i tried to make a little page where when you make the NPC's you pick weapons and armour for it and because my game has a verfifaction mod on it it will get deleted after 3 days so i tried to make it so it would get validated straight away but it dont work heres what i made it works but it dont get verified and im nto sure about the weapons im pritty sure that it will work but i need the verified really: <?php include "sglobals.php"; //This contains user stuffs switch($_GET['action']) { case 'newuser': new_user_form(); break; case 'newusersub': new_user_submit(); break; case 'edituser': edit_user_begin(); break; case 'edituserform': edit_user_form(); break; case 'editusersub': edit_user_sub(); break; case 'invbeg': inv_user_begin(); break; case 'invuser': inv_user_view(); break; case 'deleinv': inv_delete(); break; case 'deluser': deluser(); break; default: print "Error: This script requires an action."; break; } function htmlspcl($in) { return str_replace("'", "'", htmlspecialchars($in)); } function new_user_form() { global $db,$ir, $c; if($ir['user_level'] != 2) { die("403"); } print "Adding a new NPC. <form action='staff_npc.php?action=newusersub' method='post'> Username: <input type='text' name='username' /> Login Name: <input type='text' name='login_name' /> Email: <input type='text' name='email' /> Password: <input type='text' name='userpass' /> Type: <input type='radio' name='user_level' checked='checked' value='0' />NPC <input type='radio' name='user_level' value='6' />Animal <input type='radio' name='user_level' value='7' />Police <input type='radio' name='user_level' value='8' />Mobster Level: <input type='text' name='level' value='1' /> Money: <input type='text' name='money' value='0' /> Crystals: <input type='text' name='crystals' value='0' /> City ID: <input type='test' name='location' value='1' Gender: <select name='gender' type='dropdown'><option>N/A</option></select> Primamy Item: <name='equip_primary' ".item_dropdown($c,'item')." Secondary Item <name= 'equip_secondary' ".item_dropdown($c,'item')." Armor <name= 'equip_armor' ".item_dropdown($c,'item')." [b]Stats[/b] Strength: <input type='text' name='strength' value='10' /> Agility: <input type='text' name='agility' value='10' /> Guard: <input type='text' name='guard' value='10' /> Labour: <input type='text' name='labour' value='10' /> IQ: <input type='text' name='labour' value='10' /> [b]Valadated[/b] Validate Days: <input type='text' name='validateDays' value='0' /> Validateted: <input type='text' name='validated' value='1' /> <input type='submit' value='Create User' /></form>"; } function new_user_submit() { global $db,$ir,$c,$userid; if($ir['user_level'] != 2) { die("403"); } if(!isset($_POST['username']) || !isset($_POST['login_name']) || !isset($_POST['userpass'])) { print "You missed one or more of the required fields. Please go back and try again. [url='admin.php?action=newuser']> Back[/url]"; $h->endpage(); exit; } $level=abs((int) $_POST['level']); $money=abs((int) $_POST['money']); $crystals=abs((int) $_POST['crystals']); $donator=abs((int) $_POST['donatordays']); $ulevel=abs((int) $_POST['user_level']); $strength=abs((int) $_POST['strength']); $agility=abs((int) $_POST['agility']); $guard=abs((int) $_POST['guard']); $labour=abs((int) $_POST['labour']); $iq=abs((int) $_POST['iq']); $energy=10+$level*2; $brave=3+$level*2; $hp=50+$level*50; $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, equip_primary, equip_secondary, equip_armor, validateDays, validated) VALUES( '{$_POST['username']}', '{$_POST['login_name']}', md5('{$_POST['userpass']}'), $level, $money, $crystals, $donator, $ulevel, $energy, $energy, 500, 500, $brave, $brave, $hp, $hp, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', '{$_POST['equip_primary']}', '{$_POST['equip_secondary']}', '{$_POST['equip_armor']}', '{$_POST['validateDays']}', '{$_POST['validated']}', -1)"); $i=mysql_insert_id($c); $db->query("INSERT INTO userstats VALUES($i, $strength, $agility, $guard, $labour, $iq)"); print "NPC created!"; stafflog_add("Created NPC {$_POST['username']} [$i]"); } function edit_user_begin() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } print "<h3>Editing NPC</h3> You can edit any aspect of this NPC. <form action='staff_npc.php?action=edituserform' method='post'> User: ".user_dropdown($c,'user')." <input type='submit' value='Edit NPC' /></form> OR enter a NPC ID to edit: <form action='staff_npc.php?action=edituserform' method='post'> User: <input type='text' name='user' value='0' /> <input type='submit' value='Edit NPC' /></form>"; } function edit_user_form() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } $d=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us on u.userid=us.userid WHERE u.userid={$_POST['user']}"); $itemi=$db->fetch_row($d); $itemi['hospreason']=htmlspcl($itemi['hospreason']); $itemi['jail_reason']=htmlspcl($itemi['jail_reason']); print "<h3>Editing User</h3> <form action='staff_npc.php?action=editusersub' method='post'> <input type='hidden' name='userid' value='{$_POST['user']}' /> Username: <input type='text' name='username' value='{$itemi['username']}' /> Login Name: <input type='text' name='login_name' value='{$itemi['login_name']}' /> Duties: <input type='text' name='duties' value='{$itemi['duties']}' /> Staff Notes: <input type='text' name='staffnotes' value='{$itemi['staffnotes']}' /> Level: <input type='text' name='level' value='{$itemi['level']}' /> Money: \$<input type='text' name='money' value='{$itemi['money']}' /> Bank: \$<input type='text' name='bankmoney' value='{$itemi['bankmoney']}' /> Cyber Bank: \$<input type='text' name='cybermoney' value='{$itemi['cybermoney']}' /> Crystals: <input type='text' name='crystals' value='{$itemi['crystals']}' /> Mail Ban: <input type='text' name='mailban' value='{$itemi['mailban']}' /> Mail Ban Reason: <input type='text' name='mb_reason' value='{$itemi['mb_reason']}' /> Forum Ban: <input type='text' name='forumban' value='{$itemi['forumban']}' /> Forum Ban Reason: <input type='text' name='fb_reason' value='{$itemi['fb_reason']}' /> Hospital time: <input type='text' name='hospital' value='{$itemi['hospital']}' /> Hospital reason: <input type='text' name='hospreason' value='{$itemi['hospreason']}' /> Jail time: <input type='text' name='jail' value='{$itemi['jail']}' /> Jail reason: <input type='text' name='jail_reason' value='{$itemi['jail_reason']}' /> <h4>Stats</h4> Strength: <input type='text' name='strength' value='{$itemi['strength']}' /> Agility: <input type='text' name='agility' value='{$itemi['agility']}' /> Guard: <input type='text' name='guard' value='{$itemi['guard']}' /> Labour: <input type='text' name='labour' value='{$itemi['labour']}' /> IQ: <input type='text' name='IQ' value='{$itemi['IQ']}' /> <h4>NPC Info</h4> City: <input type='test' name='location' value='{$itemi['location']}' Primamy Item: <input type='text'name= 'equip_primary' value='{$itemi['equip_primary']}' Secondary Item <input type='text'name= 'equip_secondary' value='{$itemi['equip_secondary']}' Armor <input type='text'name= 'equip_armor' value='{$itemi['equip_armor']}' <input type='submit' value='Edit User' /></form>"; } function edit_user_sub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } $go=0; if(!isset($_POST['level'])) { $go=1; } if(!isset($_POST['money'])) { $go=1; } if(!isset($_POST['bankmoney'])) { $go=1; } if(!isset($_POST['crystals'])) { $go=1; } if(!isset($_POST['strength'])) { $go=1; } if(!isset($_POST['agility'])) { $go=1; } if(!isset($_POST['guard'])) { $go=1; } if(!isset($_POST['labour'])) { $go=1; } if(!isset($_POST['IQ'])) { $go=1; } if(!isset($_POST['username'])) { $go=1; } if(!isset($_POST['login_name'])) { $go=1; } if($go) { print "You did not fully fill out the form."; $_POST['user']=$_POST['userid']; edit_user_form(); } else { $_POST['level']=(int) $_POST['level']; $_POST['strength']=abs((int) $_POST['strength']); $_POST['agility']=abs((int) $_POST['agility']); $_POST['guard']=abs((int) $_POST['guard']); $_POST['labour']=abs((int) $_POST['labour']); $_POST['IQ']=abs((int) $_POST['IQ']); $_POST['money']=(int) $_POST['money']; $_POST['bankmoney']=(int) $_POST['bankmoney']; $_POST['cybermoney']=(int) $_POST['cybermoney']; $_POST['crystals']=(int) $_POST['crystals']; $_POST['mailban']=(int) $_POST['mailban']; $_POST['forumban']=(int) $_POST['forumban']; $_POST['location']=(int) $_POST['location']; $_POST['equip_primary']=(int) $_POST['equip_primary']; $_POST['equip_secondary']=(int) $_POST['equip_secondary']; $_POST['equip_armor']=(int) $_POST['equip_armor']; $maxwill=abs((int) $_POST['maxwill']); //check for username usage $u=$db->query("SELECT * FROM users WHERE username='{$_POST['username']}' and userid != {$_POST['userid']}"); if($db->num_rows($u) != 0) { print "That username is in use, choose another."; print " [url='staff_npc.php?action=edituser']> Back[/url]"; $h->endpage(); exit; } $oq=$db->query("SELECT * FROM users WHERE userid={$_POST['userid']}"); $rm=$db->fetch_row($oq); $nerve=3+$_POST['level']*2; $hp=50+$_POST['level']*50; $db->query("UPDATE users SET username='{$_POST['username']}', level={$_POST['level']}, money={$_POST['money']}, crystals={$_POST['crystals']}, energy=100, brave=$nerve, maxbrave=$nerve, maxenergy=100, hp=$hp, maxhp=$hp, hospital={$_POST['hospital']}, jail={$_POST['jail']}, duties='{$_POST['duties']}', staffnotes='{$_POST['staffnotes']}', mailban={$_POST['mailban']}, mb_reason='{$_POST['mb_reason']}', forumban={$_POST['forumban']}, fb_reason='{$_POST['fb_reason']}', hospreason='{$_POST['hospreason']}', jail_reason='{$_POST['jail_reason']}', login_name='{$_POST['login_name']}', location'= {$_POST['location']}, equip_primary'= {$_POST['equip_primary']},equip_secondary'= {$_POST['equip_secondary']}, equip_armor'= {$_POST['equip_armor']}, WHERE userid={$_POST['userid']}"); $db->query("UPDATE userstats SET strength={$_POST['strength']}, agility={$_POST['agility']}, guard={$_POST['guard']}, labour={$_POST['labour']}, IQ={$_POST['IQ']} WHERE userid={$_POST['userid']}"); stafflog_add("Edited user {$_POST['username']} [{$_POST['userid']}]"); print "User edited...."; } } function deluser() { global $ir,$c,$h,$userid,$db; if($ir['user_level'] != 2) { die("403"); } $undeletable = array('1','2','6','8','30' ); // add more IDs here, such as NPCs switch ($_GET['step']) { default: echo "<h3>Deleteing User</h3> Here you can delete a user. <form action='staff_npc.php?action=deluser&step=2' method='post'> User: ".user_dropdown($c,'user')." <input type='submit' value='Delete User' /></form> OR enter a user ID to Delete: <form action='staff_npc.php?action=deluser&step=2' method='post'> User: <input type='text' name='user' value='0' /> <input type='submit' value='Delete User' /></form>"; break; case 2: $target = $_POST['user']; if (!is_numeric($target)) exit; if (in_array($target,$undeletable)) { die('You cannot delete this person.'); } $d=$db->query("SELECT username FROM users WHERE userid='$target'"); $itemi=$db->fetch_row($d); print "<h3>Confirm</h3> Delete user ".$itemi["username"]."? <form action='staff_npc.php?action=deluser&step=3' method='post'> <input type='hidden' name='userid' value='$target' /> <input type='submit' name='yesorno' value='Yes' /> <input type='submit' name='yesorno' value='No' onclick=\"window.location='staff_npc.php?action=deluser';\" /></form>"; break; case 3: $target = $_POST['userid']; if (!is_numeric($target)) exit; if (in_array($target,$undeletable)) { die('You cannot delete this person.'); } if($_POST['yesorno']=='No') { die("User not deleted. [url='staff_npc.php?action=deluser']>Back to main Delete Users page.[/url]"); } if ($_POST['yesorno'] != ("No" || "Yes")) die('Eh'); $d=$db->query("SELECT username FROM users WHERE userid='$target'"); $itemi=$db->fetch_row($d); $db->query("DELETE FROM users WHERE userid='$target'"); $db->query("DELETE FROM userstats WHERE userid='$target'"); $db->query("DELETE FROM inventory WHERE inv_userid='$target'"); $db->query("DELETE FROM fedjail WHERE fed_userid='$target'"); echo "User {$itemi['username']} Deleted. [url='staff_npc.php?action=deluser']>Back to main Delete Users page.[/url]"; stafflog_add("Deleted User {$itemi['username']} [{$_POST['userid']}]"); break; } } function inv_user_begin() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } print "<h3>Viewing User Inventory</h3> You may browse this user's inventory. <form action='staff_npc.php?action=invuser' method='post'> User: ".user_dropdown($c,'user')." <input type='submit' value='View Inventory' /></form>"; } function inv_user_view() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $d=$db->query("SELECT username FROM users WHERE userid='{$_POST['user']}'"); $un=$db->fetch_single($d); $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={$_POST['user']}"); if ($db->num_rows($inv) == 0) { print "[b]This person has no items![/b]"; } else { print "[b]Their items are listed below.[/b] <table width=100%><tr style='background-color:gray;'><th>Item</th><th>Sell Value</th><th>Total Sell Value</th><th>Links</th></tr>"; while($i=$db->fetch_row($inv)) { print "<tr><td>{$i['itmname']}"; 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>[[url='staff_npc.php?action=deleinv&ID={$i[']Delete[/url]]"; print "</td></tr>"; } print "</table>"; } stafflog_add("Viewed user {$un} [{$_POST['user']}] inventory"); } function inv_delete() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $db->query("DELETE FROM inventory WHERE inv_id={$_GET['ID']}"); print "Item deleted from inventory."; stafflog_add("Deleted inventory ID {$_GET['ID']}"); } $h->endpage(); ?>
-
i need help with a npc page im making im stuck on the editing bit and i only have the dropdown box for allusers any idea how to change it so it only shows the NPC's in a dropdown box heres the users dropdown box ".user_dropdown($c,'user')."
-
Re: [Mccodes][V2] SMF Registration Intergration!!!!! what does this do?
-
Re: [V2]New Explore no im not. lets say you have this explore on your game and you wanna add a new link to lets say a carnival but you only want it so its on when your in jail and none you dont have to keep putting if($ir['jail']) you just put the link in 2 places sure its more work and a longer code but its alot simpler and its clearly set out
-
Re: Events Recode screenshots are always nice tho
-
mccode-v2 100% Working Copy Enhanced Schooling
Danny696 replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] 100% Working Copy Enhanced Schooling i have it on my game and when i add a new course it don't show up -
i have got a ajax chat room from this website https://blueimp.net/ajax/ but it doesnt say how to install it any help?
-
Re: marquee with admin function looks nice
-
Re: marquee with admin function what does this do?
-
Re: Events Recode does anybody have a screen shot of it?
-
Re: [mccode v2] Job Recode anyone got a screeny
-
Re: FIRST THOUGH! Danny696 :-P
-
Re: Equiped Items i would use this if you could make it to fit the other inv that soem people have with primary secondary Helmet Armor Boots Special Item and Ring i would love it if you could do if for this because ive been on alot of game where they have this inventory
-
Re: [V2]New Explore would it be this <?php /////////////////////////////////////////////////// // pPase keep this notice ## ## McCodes version = 2 // // Coder of Explore bar = Danny696 ## ## you MAY edit it freely // // it will not show to the game members ## ##All we ask is that you keep this Notice intact // ################################################### include "globals.php"; $tresder=(int) rand(100,999); if($ir['jail']) { print("Some Features Are Not Shown As Your In Jail"); } if($ir['hospital']) { print("Some Fetures Are Not Shown As Your In Hopsital" )} if($ir['jail']) { print "[b]You begin exploring {$r['cityname']}, you look for some usefull things.[/b] <table width=75%><tr height=100><td valign=top> <u>Town Market</u> [url='shops.php']Shops[/url] [url='itemmarket.php']Item Market[/url] "; print" <u>Work Places</u> [url='job.php']Work[/url] [url='education.php']Prision School[/url] "; print" <u>Dark Side</u> [url='gangcentral.php']Gangs[/url] [url='gangwars.php']Gang Wars[/url] [url='fedjail.php']Federal Jail[/url] "; print "<td valign=top> <u>Statistics Dept</u> [url='userlist.php']All Users[/url] [url='vdonators.php']The Best Players[/url] [url='stafflist.php']{$set['game_name']} Staff[/url] [url='halloffame.php']Ledgends of {$set['game_name']}[/url] [url='stats.php']Game Stats[/url] [url='usersonline.php']Users Online[/url]</td>"; print "<td valign=top> <u>Catalogs</u> [url='itempedia.php']Item Catalog[/url] [url='jobpedia.php']Job Catalog[/url] [url='shoppedia.php']Shop Listings[/url] "; print "<td valign=top> <u>Mysterious</u> [url='polling.php']Cast Your Vote Today[/url] [url='notepad.php']Personal Notepad[/url]"; if($ir['donatordays'] >= 1) { print " <td valign=top> <u>Donators Only</u> [url='ddreward.php']Daily Donator Reward[/url] [url='crystalgym.php']Crystal Gym[/url] [url='dshop.php']Donator Shop[/url] "; print "</td></tr></table> This is your referal link: http://{$domain}/register.php?REF=$userid Every signup from this link earns you ten valuable crystals!"; $h->endpage(); } else if($ir['hospital']) { print "[b]You begin exploring {$r['cityname']}, you look for some usefull things.[/b] <table width=75%><tr height=100><td valign=top> <u>Town Market</u> [url='shops.php']Hospital Shops[/url] "; print" <u>Work Places</u> [url='job.php']Hospital Jobs[/url] [url='education.php']Hospital School[/url] "; print" <u>Dark Side</u> [url='gangwars.php']Gang Wars[/url] [url='fedjail.php']Federal Jail[/url] "; print "<td valign=top> <u>Statistics Dept</u> [url='userlist.php']All Users[/url] [url='vdonators.php']The Best Players[/url] [url='stafflist.php']{$set['game_name']} Staff[/url] [url='halloffame.php']Ledgends of {$set['game_name']}[/url] [url='stats.php']Game Stats[/url] [url='usersonline.php']Users Online[/url]</td>"; print "<td valign=top> <u>Catalogs</u> [url='itempedia.php']Item Catalog[/url] [url='jobpedia.php']Job Catalog[/url] [url='shoppedia.php']Shop Listings[/url] "; print "<td valign=top> <u>Mysterious</u> [url='polling.php']Cast Your Vote Today[/url] [url='notepad.php']Personal Notepad[/url]"; print "</td></tr></table> This is your referal link: http://{$domain}/register.php?REF=$userid Every signup from this link earns you ten valuable crystals!"; $h->endpage(); } else { print "[b]You begin exploring {$r['cityname']}, you look for some usefull things.[/b] <table width=75%><tr height=100><td valign=top> <u>Town Market</u> [url='shops.php']Shops[/url] [url='itemmarket.php']Item Market[/url] [url='auctions.php']Auction Market[/url] [url='cmarket.php']Crystal Market[/url]</td> <u>For The Players [b]With[b] Lots Of Money</u> [url='airport.php']Airport[/url] [url='estate.php']Housing[/url] [url='bank.php']City Bank[/url] [url='investmentbank.php']Investment Bank[/url] "; print" <u>Fun And Games</u> [url='carnival.php']Carnival[/url] [url='slotsmachine.php?tresde=$tresder']Slots Machine[/url] [url='roulette.php?tresde=$tresder']Roulette[/url] [url='lucky.php']Lucky Boxes[/url] [url='crystal5050.php']Crystal Chance[/url] [url='money5050.php']Money Chance[/url] [url='horsing.php']Horse Racing[/url] "; print" <u>Work Places</u> [url='job.php']Work[/url] [url='education.php']School[/url] "; print" <u>Dark Side</u> [url='gangcentral.php']Gangs[/url] [url='gangwars.php']Gang Wars[/url] [url='fedjail.php']Federal Jail[/url] "; print "<td valign=top> <u>Statistics Dept</u> [url='userlist.php']All Users[/url] [url='vdonators.php']The Best Players[/url] [url='stafflist.php']{$set['game_name']} Staff[/url] [url='halloffame.php']Ledgends of {$set['game_name']}[/url] [url='stats.php']Game Stats[/url] [url='usersonline.php']Users Online[/url]</td>"; print "<td valign=top> <u>Catalogs</u> [url='itempedia.php']Item Catalog[/url] [url='jobpedia.php']Job Catalog[/url] [url='shoppedia.php']Shop Listings[/url] "; print "<td valign=top> <u>Mysterious</u> [url='polling.php']Cast Your Vote Today[/url] [url='ctemple.php']Crystal Temple[/url] [url='mine.php']Mine Shaft[/url] [url='street.php']Search The Streets[/url] [url='battletent.php']Battle Tent[/url] [url='notepad.php']Personal Notepad[/url]"; if($ir['donatordays'] >= 1) { print " <td valign=top> <u>Donators Only</u> [url='ddreward.php']Daily Donator Reward[/url] [url='crystalgym.php']Crystal Gym[/url] [url='dshop.php']Donator Shop[/url] "; } print "</td></tr></table> This is your referal link: http://{$domain}/register.php?REF=$userid Every signup from this link earns you ten valuable crystals!"; $h->endpage(); } ?>
-
Re: [V2]New Explore i have noting to test it on as i dont have mccodes i was an admin and was asked to re-design the ecplore page so i did and then the game went offline so i had no way of testing
-
ive made this new explore so that if your in jail or hospital you can visit the explore page but not all fetures come up and some of the name e.g shop goes to jail shop you can freely change it and its untested so im not sure if it works but please keep the notice on there. and remember to back up your work untested replace explore.php with: <?php /////////////////////////////////////////////////// // pPase keep this notice ## ## McCodes version = 2 // // Coder of Explore bar = Danny696 ## ## you MAY edit it freely // // it will not show to the game members ## ##All we ask is that you keep this Notice intact // ################################################### include "globals.php"; $tresder=(int) rand(100,999); if($ir['jail']) print("Some Fetures Are Not Shown As Your In Jail") if($ir['hospital']) print("Some Fetures Are Not Shown As Your In Hopsital") if($ir['jail']) print "[b]You begin exploring {$r['cityname']}, you look for some usefull things.[/b] <table width=75%><tr height=100><td valign=top> <u>Town Market</u> [url='shops.php']Shops[/url] [url='itemmarket.php']Item Market[/url] "; print" <u>Work Places</u> [url='job.php']Work[/url] [url='education.php']Prision School[/url] "; print" <u>Dark Side</u> [url='gangcentral.php']Gangs[/url] [url='gangwars.php']Gang Wars[/url] [url='fedjail.php']Federal Jail[/url] "; print "<td valign=top> <u>Statistics Dept</u> [url='userlist.php']All Users[/url] [url='vdonators.php']The Best Players[/url] [url='stafflist.php']{$set['game_name']} Staff[/url] [url='halloffame.php']Ledgends of {$set['game_name']}[/url] [url='stats.php']Game Stats[/url] [url='usersonline.php']Users Online[/url]</td>"; print "<td valign=top> <u>Catalogs</u> [url='itempedia.php']Item Catalog[/url] [url='jobpedia.php']Job Catalog[/url] [url='shoppedia.php']Shop Listings[/url] "; print "<td valign=top> <u>Mysterious</u> [url='polling.php']Cast Your Vote Today[/url] [url='notepad.php']Personal Notepad[/url]"; if($ir['donatordays'] >= 1) { print " <td valign=top> <u>Donators Only</u> [url='ddreward.php']Daily Donator Reward[/url] [url='crystalgym.php']Crystal Gym[/url] [url='dshop.php']Donator Shop[/url] "; print "</td></tr></table> This is your referal link: http://{$domain}/register.php?REF=$userid Every signup from this link earns you ten valuable crystals!"; $h->endpage(); else if($ir['hospital']) print "[b]You begin exploring {$r['cityname']}, you look for some usefull things.[/b] <table width=75%><tr height=100><td valign=top> <u>Town Market</u> [url='shops.php']Hospital Shops[/url] "; print" <u>Work Places</u> [url='job.php']Hospital Jobs[/url] [url='education.php']Hospital School[/url] "; print" <u>Dark Side</u> [url='gangwars.php']Gang Wars[/url] [url='fedjail.php']Federal Jail[/url] "; print "<td valign=top> <u>Statistics Dept</u> [url='userlist.php']All Users[/url] [url='vdonators.php']The Best Players[/url] [url='stafflist.php']{$set['game_name']} Staff[/url] [url='halloffame.php']Ledgends of {$set['game_name']}[/url] [url='stats.php']Game Stats[/url] [url='usersonline.php']Users Online[/url]</td>"; print "<td valign=top> <u>Catalogs</u> [url='itempedia.php']Item Catalog[/url] [url='jobpedia.php']Job Catalog[/url] [url='shoppedia.php']Shop Listings[/url] "; print "<td valign=top> <u>Mysterious</u> [url='polling.php']Cast Your Vote Today[/url] [url='notepad.php']Personal Notepad[/url]"; print "</td></tr></table> This is your referal link: http://{$domain}/register.php?REF=$userid Every signup from this link earns you ten valuable crystals!"; $h->endpage(); else print "[b]You begin exploring {$r['cityname']}, you look for some usefull things.[/b] <table width=75%><tr height=100><td valign=top> <u>Town Market</u> [url='shops.php']Shops[/url] [url='itemmarket.php']Item Market[/url] [url='auctions.php']Auction Market[/url] [url='cmarket.php']Crystal Market[/url]</td> <u>For The Players [b]With[b] Lots Of Money</u> [url='airport.php']Airport[/url] [url='estate.php']Housing[/url] [url='bank.php']City Bank[/url] [url='investmentbank.php']Investment Bank[/url] "; print" <u>Fun And Games</u> [url='carnival.php']Carnival[/url] [url='slotsmachine.php?tresde=$tresder']Slots Machine[/url] [url='roulette.php?tresde=$tresder']Roulette[/url] [url='lucky.php']Lucky Boxes[/url] [url='crystal5050.php']Crystal Chance[/url] [url='money5050.php']Money Chance[/url] [url='horsing.php']Horse Racing[/url] "; print" <u>Work Places</u> [url='job.php']Work[/url] [url='education.php']School[/url] "; print" <u>Dark Side</u> [url='gangcentral.php']Gangs[/url] [url='gangwars.php']Gang Wars[/url] [url='fedjail.php']Federal Jail[/url] "; print "<td valign=top> <u>Statistics Dept</u> [url='userlist.php']All Users[/url] [url='vdonators.php']The Best Players[/url] [url='stafflist.php']{$set['game_name']} Staff[/url] [url='halloffame.php']Ledgends of {$set['game_name']}[/url] [url='stats.php']Game Stats[/url] [url='usersonline.php']Users Online[/url]</td>"; print "<td valign=top> <u>Catalogs</u> [url='itempedia.php']Item Catalog[/url] [url='jobpedia.php']Job Catalog[/url] [url='shoppedia.php']Shop Listings[/url] "; print "<td valign=top> <u>Mysterious</u> [url='polling.php']Cast Your Vote Today[/url] [url='ctemple.php']Crystal Temple[/url] [url='mine.php']Mine Shaft[/url] [url='street.php']Search The Streets[/url] [url='battletent.php']Battle Tent[/url] [url='notepad.php']Personal Notepad[/url]"; if($ir['donatordays'] >= 1) { print " <td valign=top> <u>Donators Only</u> [url='ddreward.php']Daily Donator Reward[/url] [url='crystalgym.php']Crystal Gym[/url] [url='dshop.php']Donator Shop[/url] "; print "</td></tr></table> This is your referal link: http://{$domain}/register.php?REF=$userid Every signup from this link earns you ten valuable crystals!"; $h->endpage(); ?>
-
Re: [V2] New Small Accuracy Mod [V2] easy fix for this use the first formula which is $acc=($ir['totalhits'])/($ir['totalmisses'])*100; but take of the *100 bit so its: $acc=($ir['totalhits'])/($ir['totalmisses']);
-
Re: help with crystal temple any1 willing to help
-
[mccode] Diamond gems, with a Diamondtemple.php for v2.0
Danny696 replied to MDK666's topic in Free Modifications
Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0 but yours arnt epic fails yours are great -
Re: [mccode v2] Job Recode nice one +1
-
[mccode] Diamond gems, with a Diamondtemple.php for v2.0
Danny696 replied to MDK666's topic in Free Modifications
Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0 i wanted him to know what an epic fail that was -
Re: help with crystal temple the code is ment to be : <?php include_once (DIRNAME(__FILE__) . '/globals.php'); ### Start Configuration ### $BraveRefill = '10'; $PowerRefill = '10'; $Buy10steps = '10'; $Sell10steps = '10'; $Money = '1000'; ### End Configuration ### function Error($Message) { global $h; echo sprintf("<span style='color: #FF0000;'>Error! %s</span>", stripslashes($Message)); exit($h->endpage()); } $_GET['spend'] = isset($_GET['spend']) && ctype_alpha($_GET['spend']) ? trim($_GET['spend']) : FALSE; if (!in_array($_GET['spend'], array('', 'BraveR', 'PowerR', 'Buy10s', 'Sell10s', 'Money'))) { Error('Invalid Command!'); } if (!$_GET['spend']) { echo '<span style="text-decoration: underline; font-size: 14px; font-weight: 600">Welcome To The Crystal Temple!</span> '; echo sprintf("You have [b]%s[/b] crystals. ", number_format($ir['crystals'])); echo 'What would you like to spend your crystals on? '; echo sprintf(" [url='ctemple.php?spend=BraveR'] BraveRefill - %s Crystals[/url] ", number_format($BraveRefill)); echo sprintf("[url='ctemple.php?spend=PowerR']Power Refill - %s Crystals[/url] ", number_format($PowerRefill)); echo sprintf("[url='ctemple.php?spend=Buy10s']Buy 10 Steps - %s Crystals[/url] ", number_format($Buy10steps)); echo sprintf("[url='ctemple.php?spend=Sell10s']Sell 10 Steps - %s Crystals[/url] ", number_format($Sell10steps)); echo sprintf("[url='ctemple.php?spend=Money']Money - $%s Per Crystal [/url] ", number_format($Money)); } else { if ($_GET['spend'] == 'BraveR') { if ($ir['crystals'] < $BraveRefill) { Error('You Don\'t Have Enough Crystals!'); } else if ($ir['brave'] == $ir['maxbrave']) { Error('You Already Have Full Brave.'); } else { $db->query(sprintf("UPDATE users SET brave=maxbrave, crystals=crystals-%d WHERE userid=%d", $BraveRefill, $userid)); echo sprintf("You Have Paid %d Crystals To Refill Your Brave Bar.", number_format($BraveRefill)); } } else if ($_GET['spend'] == 'PowerR') { if ($ir['crystals'] < $PowerRefill) { Error('You Don\'t Have Enough Crystals!'); } else if ($ir['will'] == $ir['maxwill']) { Error('You Already Have Full Power.'); } else { $db->query(sprintf("UPDATE users SET will=maxwill, crystals=crystals-%d WHERE userid=%d", $PowerRefill, $userid)); echo sprintf("You Have Paid %d Crystals To Refill Your Power Bar.", number_format($PowerRefill)); } } else if ($_GET['spend'] == 'Buy10s') { if ($ir['crystals'] < $Buy10steps) { Error('You Don\'t Have Enough Crystals!'); } } else { $db->query(sprintf("UPDATE users SET turns=turns+10, crystals=crystals-%d WHERE userid=%d", $Buy10steps, $userid)); echo sprintf("You Have Paid %d crystals to get 10 steps at scavanging.", number_format($Buy10steps)); } } else if ($_GET['spend'] == 'Sell10s') { if ($ir['crystals'] < $Sell10steps) { Error('You Don\'t Have Enough Crystals!'); } } else { $db->query(sprintf("UPDATE users SET turns=turns-10, crystals=crystals+%d WHERE userid=%d", $Sell10steps, $userid)); echo sprintf("You Have Sold 10 Steps For %d Crystals .", number_format($Sell10steps)); } } else if($_GET['spend'] == 'money') { print "Type in the amount of crystals you want to swap for money. You have [b]{$ir['crystals']}[/b] crystals. One crystal = \$". number_format($Money).".<form action='ctemple.php?spend=Money2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough crystals or did not fill out the form. [url='ctemple.php?spend=Money']Back[/url]"; } else { $gain=$_POST['crystals']* $Money; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']},money=money+$gain WHERE userid=$userid"); print "You traded {$_POST['crystals']} crystals for \$".number_format($gain)."."; $h->endpage(); ?> please someone help me