-
Posts
2,667 -
Joined
-
Last visited
-
Days Won
75
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
Re: What am i doing wrong ? Cheers Zero found the problem i thought that the before the </td> would help prevent overlay but all it did do was drop the entire table :) Thanks for your help :)
-
Im trying to make a table for the explore page one that uses table sections side by side with images my problem is it keeps dropping half way down the page. <?php include "globals.php"; $tresder=(int) rand(100,999); if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } print "[b]This is your referal link: http://{$domain}/register.php?REF=$userid <b/></font> Every signup from this link earns you two valuable crystals when they reach level 3! <p align='center'><font face='Broadway' color='#888888' size='7'>[i]<u>Slave Traders Town</u>[/i]</font></p> <p align='center'><font face='Arial' color='#999999' size='2'></font></p>"; ?> <head> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <style type="text/css"> body { margin:0; padding:0; } background-color: #0A0000; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:14px;color: white; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } A:link {font-family: helvetica, arial, geneva, sans-serif; font-size: 12; text-decoration: none; color: white} A:visited {font-family: helvetica, arial, geneva, sans-serif; font-size: 12; text-decoration: none; color: white} A:hover {font-family: helvetica, arial, geneva, sans-serif; font-size: 12; text-decoration: crosshair; color: red} smalltext {font-family: Arial; font-size: 12; color:white} table,tr,td { font-size:12pt; color: white; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: red; } </style> <table class="one" width="100%" align='top'></tr> <tr> <td style="background: url('round21.jpg');text-align:center;border:5px double #000000;"><font color=ffffff>Market Place </td></font> <td style="background: url('round21.jpg');text-align:center;border:5px double #000000;"><font color=ffffff></td></font> <td style="background: url('round21.jpg');text-align:center;border:5px double #000000;"><font color=ffffff>Money Makers </td></font> <td style="background: url('round21.jpg');text-align:center;border:5px double #000000;"><font color=ffffff></td></font> <td style="background: url('round21.jpg');text-align:center;border:5px double #000000;"><font color=ffffff>Dark Side </td></font> <td style="background: url('round21.jpg');text-align:center;border:5px double #000000;"><font color=ffffff></td></font> <td style="background: url('round21.jpg');text-align:center;border:5px double #000000;"><font color=ffffff>Statistics </td></font> <td style="background: url('round21.jpg');text-align:center;border:5px double #000000;"><font color=ffffff></td></font> <td style="background: url('round21.jpg');text-align:center;border:5px double #000000;"><font color=ffffff>Torture </td></font> </tr> <tr> <td style="background: url('round17a.jpg');text-align:center;border:5px double #000000;"><font color=ffffff>[url='shops.php']Shops [/url] [url='itemmarket.php']Item market [/url] <a href='cmarket.php'>Crystal Market </a> </td> </font> <td style="background: url('round17a.jpg');text-align:center;border:5px double #000000;"><font color=ffffff> </td> </font> <td style="background: url('round17a.jpg');text-align:center;border:5px double #000000;"><font color=ffffff>LINKS 3A </td> </font> <td style="background: url('round17a.jpg');text-align:center;border:5px double #000000;"><font color=ffffff> </td> </font> <td style="background: url('round17a.jpg');text-align:center;border:5px double #000000;"><font color=ffffff>LINKS 5A </td> </font> <td style="background: url('round17a.jpg');text-align:center;border:5px double #000000;"><font color=ffffff> </td> </font> <td style="background: url('round17a.jpg');text-align:center;border:5px double #000000;"><font color=ffffff>LINKS 3A </td> </font> <td style="background: url('round17a.jpg');text-align:center;border:5px double #000000;"><font color=ffffff> </td> </font> <td style="background: url('round17a.jpg');text-align:center;border:5px double #000000;"><font color=ffffff>LINKS 5A </td> </font> </tr> <tr> <td style="background: url('round20.jpg');text-align:center;border:5px double #000000;">-----</td> <td style="background: url('round20.jpg');text-align:center;border:5px double #000000;"></td> <td style="background: url('round20.jpg');text-align:center;border:5px double #000000;">-----</td> <td style="background: url('round20.jpg');text-align:center;border:5px double #000000;"></td> <td style="background: url('round20.jpg');text-align:center;border:5px double #000000;">-----</td> <td style="background: url('round20.jpg');text-align:center;border:5px double #000000;"></td> <td style="background: url('round20.jpg');text-align:center;border:5px double #000000;">-----</td> <td style="background: url('round20.jpg');text-align:center;border:5px double #000000;"></td> <td style="background: url('round20.jpg');text-align:center;border:5px double #000000;">-----</td> </tr></table> <? $h->endpage(); ?> Any help would be appreciated as its driving me nuts i want the menus to be at the top of the page. if possible. Image
-
Re: [mccode v2] Battletent Fix All the script that i wrote does is reset the Challenges to zero once you have defeated a bot you can defeat it again once the cron you have installed expires. As regards to your problems you would need to check your battletent.php script for that
-
Re: [update] Updated Mod for MainMenu Thats a good point regards the Explore page it could do with a tidy up.
-
Re: [mccode v1] Random Explore Mod Change if(!$ir['hospital'] && $ir['prison']=="0") to if(!$ir['hospital'] && $ir['prison'] > 0)
-
Always keep a backup copy of any files that are overwritten before you start Not much of a mod more like a cleaner menu Also shows Current Male and Female Members that are Online linked to viewuser call this file mainmenu.php <?php global $db,$c,$ir, $set; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $turns=$ir['search_turns']; $mc=$ir['new_mail']; $sql = $db->query('SELECT COUNT(userid) AS num FROM `users` WHERE laston >= UNIX_TIMESTAMP() - 900'); $var = $db->fetch_row($sql); $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ($ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $minexp=(int) ($ir['mine_exp']/$ir['mine_needed']*100); $power=(int) ($ir['power']/$ir['max_power']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $minex=100-$minexp; $pow=100-$power; $zm=money_formatter($ir['money']); $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>[url='viewuser.php?u={$ir[']<font color='red'>{$ir['username']}</font>[/url]</font>";$d="[img=donator.gif]"; } $gn=""; print"<table width='169' cellpadding='0' cellspacing='0'> <tr> <td width='169' height='39' background='round21.jpg'><center>[b]Attack Image[/b]</td></tr> <tr> <td width='169' background='round17a.jpg' valign='top'><center> [url='attackimageuploader.php'][img=attpics/{$ir[][/url] <tr> <td width='169' height='21' height='21' background='round20.jpg'><center></td></tr><tr><td> </td></tr> <tr>"; print "<table width='169' cellpadding='0' cellspacing='0'> <tr> <td width='169' height='39' background='round21.jpg'><center>Player Info</td></tr> <tr> <td width='169' background='round17a.jpg' valign='top'><center> [b]Name:[/b] $gn{$u} [{$ir['userid']}] $d [b]Money: $zm [b]Jail Rescues:[/b] {$ir['rescues']} [b]Level:[/b] {$ir['level']} [b]Crystals:[/b] {$ir['crystals']} [[url='logout.php']Emergency Logout[/url]]</td></tr> <tr> <td width='169' height='21' height='21' background='round20.jpg'><center></td></tr><tr><td> </td></tr> <tr> <td width='169' height='39' background='round21.jpg'><center>Player Vitals</td></tr> <tr> <td width='169' background='round17a.jpg' valign='top'><center> [b]Energy:[/b] {$enperc}% [url='crystaltemple.php?spend=refill']<font color='green'>[Refill]</font>[/url] <img src=bar_left.gif height=13><img src=fire.gif width=$enperc height=13><img src=barred.gif width=$enopp height=13><img src=bar_fil_end.gif height=13> [b]Will:[/b] {$wiperc}% <img src=bar_left.gif height=13><img src=fire.gif width=$wiperc height=13><img src=barred.gif width=$wiopp height=13><img src=bar_fil_end.gif height=13> [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=bar_left_purp.gif height=13><img src=fire.gif width=$brperc height=13><img src=barred.gif width=$bropp height=13><img src=bar_fil_end.gif height=13> [b]EXP:[/b] {$experc}% <img src=bar_left.gif height=13><img src=fire.gif width=$experc height=13><img src=barred.gif width=$exopp height=13><img src=bar_fil_end.gif height=13> [b]Health:[/b] {$hpperc}% <img src=bar_left.gif height=13><img src=fire.gif width=$hpperc height=13><img src=barred.gif width=$hpopp height=13><img src=bar_fil_end.gif height=13> [b]Mine Exp:[/b] {$minexp}% <img src=bar_left.gif height=13><img src=fire.gif width=$minexp height=13><img src=barred.gif width=$minex height=13><img src=bar_fil_end.gif height=13> [b]Power:[/b] {$ir['power']}/{$ir['max_power']} <img src=bar_left.gif height=13><img src=fire.gif width=$power height=13>[img=barred.gif]<img src=bar_fil_end.gif height=13> </td></tr> <tr> <td width='169' height='21' height='21' background='round20.jpg'><center></td></tr><tr><td> </td></tr>"; print " <tr> <td width='169' height='39' background='round21.jpg'><center>Navigation</td></tr> <tr> <td width='169' background='round17a.jpg' valign='top'><center> [url='index.php']Home/Chat[/url] [url='inventory.php']Inventory[/url] [url='criminal.php']Crimes of Passion[/url] "; if($ir['search_turns'] > 0) { print " [url='search_map.php']<font color='red'>Scavenge ($turns)[/url] "; } else { print " [url='search_map.php']Scavange[/url] "; } if($ec > 0) { print "[url='events.php']Events ($ec)[/url] "; } else { print "[url='events.php']Events (0)[/url] "; } if($mc > 0) { print "[url='mailbox.php']<font color='red'>Mailbox ($mc)[/url] "; } else { print "[url='mailbox.php']Mailbox (0)[/url] "; } if($ir['jail'] and !$ir['hospital']) { print "[url='jail.php']Jail ($jc)[/url] [url='gym.php']Jail Gym[/url] [url='hospital.php']Hospital ($hc)[/url] "; } else if (!$ir['hospital']) { print "[url='explore.php']Explore[/url] [url='gym2.php']Gym[/url] [url='criminal.php']Crimes[/url] [url='job.php']Your Job[/url] [url='education.php']Local School[/url] [url='garage.php']Your Slaves[/url] [url='torny.php']<font color='yellow'New!!!!</font>Tournaments[/url] [url='jail.php']Jail ($jc)[/url] [url='hospital.php']Hospital ($hc)[/url] "; } else { print "[url='jail.php']Jail ($jc)[/url] [url='hospital.php']Hospital ($hc)[/url] "; } print "[url='forums.php']Forums[/url] "; if($ir['new_announcements']) { print "[url='announcements.php']<font color='orange'>Announcements ({$ir['new_announcements']})[/url] "; } else { print "[url='announcements.php']Announcements (0)[/url] "; } print " [url='newspaper.php']Newspaper[/url] [url='search.php']Search[/url] [url='http://www.mobslife.net/chat/index.php']<font color='red'>ChatRoom[/url] [url='youtube.php']<font color='red'>YourTube[/url] <font color='yellow'>[NEW] "; if(!$ir['jail'] && $ir['gang']) { print "[url='yourgang.php']Your Gang[/url] "; } print "</td></tr> <tr> <td width='169' height='21' background='round20.jpg'><center></td></tr><tr><td> </td></tr>"; if($ir['user_level'] > 1) { print " <tr> <td width='169' height='39' background='round21.jpg'><center>Staff Only</td></tr> <tr> <td width='169' background='round17a.jpg' valign='top'><center> [url='staff.php']Staff Panel[/url] \n"; print " </td></tr><tr> <td width='169' height='21' background='round20.jpg'><center></td></tr><tr><td> </td></tr> "; } if($ir['donatordays']) { print "<tr> <td width='169' height='39' background='round21.jpg'><center>Donators Only</td></tr> <tr> <td width='169' background='round17a.jpg' valign='top'><center> [url='friendslist.php']Friends List[/url] [url='blacklist.php']Black List[/url]</td></tr> <tr> <td width='169' height='21' background='round20.jpg'><center></td></tr><tr><td> </td></tr>"; } print "<tr> <td width='169' height='39' background='round21.jpg'><center>User Control Panel</td></tr> <tr> <td width='169' background='round17a.jpg' valign='top'><center> [url='preferences.php']Preferences[/url] [url='preport.php']Player Report[/url] [url='helptutorial.php']Help Tutorial[/url] [url='gamerules.php']Game Rules[/url] [url='viewuser.php?u={$ir[']My Profile[/url] [url='usersonline.php']Users Online ({$var['num']})[/url] [url='logout.php']Logout[/url]</tr></td><tr> <td width='169' height='21' background='round20.jpg'><center></td></tr><tr><td> </td></tr> <tr> <td width='169' height='39' background='round21.jpg'><center>Server Time</td></tr> <tr> <td width='169' background='round17a.jpg' valign='top'><center> Time is now "; echo date ('F j, Y')." ".date('g:i:s a'); print"</td></tr><tr> <td width='169' height='21' background='round20.jpg'><center></td></tr><tr><td> </td></tr> "; $dip_m = mysql_query("SELECT userid,username FROM users WHERE gender='Male' AND laston>unix_timestamp()-30*30 ORDER BY laston DESC LIMIT 20"); $dip_f = mysql_query("SELECT userid,username FROM users WHERE gender='Female' AND laston>unix_timestamp()-30*30 ORDER BY laston DESC LIMIT 20"); //Display male & Female //Display males online echo "<table width='169' cellpadding='0' cellspacing='0'> <tr> <td width='169' height='39' background='round21.jpg'><center>[b]Males Online[/b]</td></tr> <tr> <td width='169' background='round17a.jpg' valign='top'><center>"; $c = 0; while($soc = mysql_fetch_assoc($dip_m)) { $c++; echo $c.'- [url="viewuser.php?u='.$soc['userid'].'"]'.$soc['username'].'[/url] '; } echo " <tr> <td width='169' height='21' height='21' background='round20.jpg'><center></td></tr><tr><td> </td></tr> <tr>"; //Split them both //Display females online echo "<table width='169' cellpadding='0' cellspacing='0'> <tr> <td width='169' height='39' background='round21.jpg'><center>[b]Females Online[/b]</td></tr> <tr> <td width='169' background='round17a.jpg' valign='top'><center>"; $c = 0; while($soc = mysql_fetch_assoc($dip_f)) { $c++; echo $c.'- [url="viewuser.php?u='.$soc['userid'].'"]'.$soc['username'].'[/url] '; echo " "; echo ""; } print "<tr> <td width='169' height='21' height='21' background='round20.jpg'><center></td></tr><tr><td> </td></tr> <tr> </table>"; ?> Now use the link below to get the images http://www.slave-traders.net/images.zip Preview NOTE Stat bars are not included in the zip..
-
[mccode v2] View User details from Admin Panel
Uridium replied to Uridium's topic in Free Modifications
Re: [mccode v2] View User details from Admin Panel place that into your smenu.php Place in the Users section for easy finding -
Re: [mccode v2] Battletent Fix if your just Attacking an NPC it should Credit you Automatically just keep an eye on your Money when you win,,
-
Re: [mccode v2] Battletent Fix This will reset all players and bots so you can Attack them again once beaten. This is a cron so you will need to set it for the time period you wat it to Run via your Cronjobs panel Has been tested and Works Fine.. Call this fille botcronattack.php <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $db->query("UPDATE challengesbeaten SET userid=0"); $db->query("UPDATE challengesbeaten SET npcid=0"); ?>
-
Re: [mccode v1] Chests Actually this game would be quite good if you had to find the keys yourself instead of having 100 to begin with,,, Those that have the streets or steps.php could find a key or keys in their searches and use them on the boxes. The idea od giving back a key however is a bit silly if its used its disposed of. That way you wouldnt need a cron at all also id make the gains from the box more satisfying like finding an item
-
Re: Cool Menu Maker Yep Quite true it will also make all Standard Menus visible all the time you would never know who was in hospital or jail or events or even if you have mail. I made a jpg version of this and found i had to make 5 images for the things that needed to show up work. example image 1 would have been HOME INVENTORY MAIL EVENTS image 2 YOUR IN JAIL INVENTORY MAIL EVENTS image 3 HOSPITAL INVENTORY MAIL EVENTS as you can see it would become cumbersome as you would also need when in hospital or jail to have it display that you have an event or mail or Both....
-
Re: [mccode] Stalemate for attacks if($_GET['nextstep'] > 50) denotes the times taken to attack in this case 50 would be 25 attack clicks on the attack button so if you wanted your members to click 50 times then alter the 50 to 100
-
Re: New Host needed Urgently I Took Radio_Actives advice a it was also suggested to me by a few other people and have set up and account with the hosting company. DRAGOON Thank you very much for your offer of free hosting and i appreciate it. but as i see it free hosting would have its draw backs one namely being that its not a binding contract and one that i would sooner have.. Bu i am very Greatful.. I AM WICKED I visited your site and you have some very good offers However i was unable to click on any purchase plans which kind of put me off...
-
Re: New Host needed Urgently Thanks Radio_Active :) I will check them out.. Im fed up of hosts saying they offer the world then when you part with your cash they either shut down or close down your account due to crons.
-
Look im sorry this is in the wrong place but i couldnt find a suitable place to put. Im in great need of a Host that supports all cron types and wont suspend accounts dut to it.. Can anyone help...
-
Re: [mccode v2] Add images when you attack Small update I noticed when Attacking that the wrong users health bar was depleating so heres the fix... find print "</table">; add below print" <table ALIGN=RIGHT 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 ALIGN=LEFT 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>"; } Again if your using your Profile images and not the attck images then alter accordingly .
-
Re: [mccode v2] Jail All in one change if($ir['energy'] < 10); to if($ir['energy'] < 10) basically just remove the ; also if its not need the mention of jailchat.php just add // before it
-
[mccode v2] Male & Female count also Males & Females that are Online
Uridium replied to Uridium's topic in Free Modifications
Re: [mccode v2] Male & Female count also Males & Females that are Online Both Killah and Zeros scripts worked for this.. However I used Killahs as he was first to post :) Cheers guys :) -
This has already been done i just chose to clean it up a little this mod will stalemate when the attack rate hits 50 counts.. Sends a Event Notification to the person you was trying to attack and one for yourself for future reference... OPEN UP attack.php FIND print "This player is unconscious. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } and underneath Add...... if($_GET['nextstep'] > 50) { print"<center><h1><font color='red'>STALEMATE!</h1> <h2>This fight is going knowhere you may as well go home!</h2> [url='index.php']> Back[/url]</center>"; $h->endpage(); event_add($odata['userid'],"[url='viewuser.php?u=$userid']{$youdata['username']}[/url] Tried to beat you but stalemated.",$c); event_add($youdata['userid']," You Tried to beat [url='viewuser.php?u=$userid']{$odata['username']}[/url] but stalemated.",$c); exit; } Reason for Edit forgot to put file name to be edited...
-
Re: [mccodes V.2]Energy Sweet Shop Not sure how you got bar23.php in yours as it isnt even mentioned on ISHZ script lol <?php /*----------------------------------------------------- -- Energysweetshop V.2 -- A product of Lost-Warzone -- [url]http://www.lost-warzone.net[/url] -- energysweetshop.php -- Free Mod -- not to be sold and please keep this part -----------------------------------------------------*/ include "globals.php"; print "<h2>Energy Sweet Store</h2> [i]Walking in to the Energy Sweet Shop you decide whether or not to buy a Energy Sweet <table width="70% border=1> <th height=8%>Energy Sweet</th><th height=8%>Cost</th> <tr> <td>Energy Sweet Shop</td> <td>$10 [url='sweetshop.php?spend=1']Buy Energy Sweet[/url]</td> </tr> </table> $money_take=10;//Enter how much money you would want to be taken if ($_GET['spend'] == '1') { if ($ir['money'] < 10) { print "You don't have enough money to buy the energy sweet Best leave now "; } else { if ($ir ['money'] >10) { print "You Bought A energy sweet And You Feel Some of your will coming to you after you ate it [url='explore.php']Back to Explore[/url] "; $db->("UPDATE users SET money="$money_take", energy=energy+5 WHERE userid=$userid",$c); } } } $h=>endpage(); ?>
-
Re: [mccodes V.2]Energy Sweet Shop Getting a decent text Editor is a good thing one that will highlight your script and reveal what may be errors.. Watch what happens when i post your bit of code here and then correct it notice the colour changes.. YOUR PART <? if ($_GET['spend'] == '1') { if ($ir['money'] < 10) { ?> MY PART <? if ($_GET['spend'] == '1') { if ($ir['money'] < 10) { ?> Even posting on here can give you and idea if the Script is right or wrong...
-
Re: [mccodes V.2]Energy Sweet Shop whats with all the Hash statements ? those being # include "globals.php"; much easier to include "globals.php"; Your just confusing things with so many Hash statements
-
Re: Installation.php is the file missing.. look in your class/ folder for the fiile class_db_mysql.php
-
Re: [mccode] Mcc Christmas Theme Yep my HOST did a runner so im afraid its no longer Available :(
-
Re: [mccode v2] Add images when you attack Littlemouse the code has been Posted if your referring to my Image above thats something you wll have to accomlish yourself im just merely showing you what can be donew ith it.