-
Posts
912 -
Joined
-
Last visited
-
Days Won
7
Content Type
Profiles
Forums
Events
Everything posted by Coly010
-
When i go to the Scripts Vault it only shows the top 5 downloads and then newest downloads. any idea how i could find the database with the game engines
-
i was trying to install mccodes lite for my friend and when it came to installing the crons i followed the install.txt file but it didnt work. how do you install them now? the cpanel cron bit was been changed. but there should be a way to do it shouldn't there?
-
if it does come out they should lower the prices of the other ones a bit.
-
glad to see people like it :D
-
people are selling that!? :huh: my God i'm ashamed at these people. :cursing: even i could have made that. :thumbup: could've changed layout to make it look better too. :L ;) :P but still not worth $5. 8| people paying to get the easy way out. X(
-
sorry! in my head i say 'S' instead of '$'. its basically a mythril mine but you can only access it at 5,5. wait! i should add something under this: function m_m() { global $ir, $db, $h; add if ($_GET['x'] != 10 && $_GET['y'] != 10) { echo "<font color='red'>[b]ERROR:[/b]You are not at this posistion.</font>"; } else { that'll make sure people wont cheat to get there. by the way. is it working?
-
Samll addon read and you'll find it. dont have toime to explain. thx djkanna <?php /* ------------------------------------ -- Country Mod -- -- Created by Coly010 -- -- Fixed by Maniak -- -- PLEASE KEEP THIS AS IT IS -- -- Addon added by Coly010 -- ------------------------------------ */ include_once (DIRNAME(__FILE__) .'/globals.php'); echo "<h3>The Countryside</h3> <p align='left'>Try your best to find random stuff. Remember you might lose things too. Your risk.</p> <p align='left'>[b]Remember... It costs 1 energy to move! and two to mine.[/b]</p>"; $_GET['page'] = isset($_GET['page']) && ctype_alpha($_GET['page']) ? trim($_GET['page']) : false; switch($_GET['page']) { case 'north': north(); break; case 'south': south(); break; case 'east': east(); break; case 'west': west(); break; case 'mythmine': m_m(); break; default: country_index(); break; } function country_index() { global $ir, $h; $i = $db->fetch_row($db->query("SELECT `x`,`y` FROM `users` WHERE `userid`=$userid")); echo "X Co-Ordinate: {$i['x']} || Y Co-Ordinate: {$i['y']}"; if ($_GET['x'] = 10 && $_GET['y'] = 10) { echo "Click Here To Enter[url='?page=mythmine']<font color='pruple'>The Mythril Mine</font>[/url]"; } else { $chance = rand(1,6); // Edit and add things as you please. $amnt=rand(0,50000); $gained=rand(5,10)*$ir['level']; if($ir['energy'] < 1) { echo "You don't have enough Energy.. Come back in 5!"; } else { echo "You stepped North ".$chance.""; $db->query("UPDATE `users` SET energy=energy-1 WHERE `userid`=".$_SESSION['userid'].""); } if($chance == 1) { echo "You found a Treasure Chest! You open it and find <font color='yellow'>$amnt</font>"; $db->query("UPDATE `users` SET money=money+".$amnt." WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 2) { echo "UNLUCKY! You were mugged and lost <font color='yellow'>$amnt</font>"; $db->query("UPDATE `users` SET money=money-{$amnt} WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 3) { echo "You were attacked by a cow and lost a lot of things!"; $db->query("UPDATE `users` SET `money`=money-".$ir['money'].", hp=hp-".$ir['hp'].", energy=energy-".$ir['energy']." WHERE userid=".$_SESSION['userid'].""); } elseif($chance == 4) { echo "Nothing here..."; } elseif($chance == 5) { echo "You found a bag whilst walking. The bag contained <font color='cyan'>$gained</font> crystals."; $db->query("UPDATE `users` SET crystals=crystals+".$gained." WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 6) { echo "You were attacked by a Sheep and lost <font color='cyan'>$gained</font> crystals."; $db->query("UPDATE `users` SET crystals=crystals-".$gained." WHERE `userid`=".$_SESSION['userid'].""); } echo "<table><tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=north']<input type='button' style='background-color: black; font: white;' value='North' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=east']<input type='button' style='background-color: black; font: white;' value='East' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=south']<input type='button' style='background-color: black; font: white;' value='South' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=west']<input type='button' style='background-color: black; font: white;' value='West' />[/url]</td><tr></table>"; if ($_GET['x'] = 0 && $_GET['y'] = 0) { echo " Click Here To Enter [url='explore.php']/*name of first town*/[/url]."; } $h->endpage(); } function north() { global $ir, $db, $h; $i = $db->fetch_row($db->query("SELECT `x`,`y` FROM `users` WHERE `userid`=$userid")); echo "X CoOrdinate: {$i['x']} || Y CoOrdinate: {$i['y']}"; $db->query("UPDATE `users` SET `y`=`y`-1 WHERE `userid`=".$_SESSION['userid'].""); if ($_GET['x'] = 10 && $_GET['y'] = 10) { echo "Click Here To Enter[url='?page=mythmine']<font color='pruple'>The Mythril Mine</font>[/url]"; } else { $chance = rand(1,6); // Edit and add things as you please. $amnt=rand(0,50000); $gained=rand(5,10)*$ir['level']; if($ir['energy'] < 1) { echo "You don't have enough Energy.. Come back in 5!"; } else { echo "You stepped North ".$chance.""; $db->query("UPDATE `users` SET energy=energy-1 WHERE `userid`=".$_SESSION['userid'].""); } if($chance == 1) { echo "You found a Treasure Chest! You open it and find <font color='yellow'>$amnt</font>"; $db->query("UPDATE `users` SET money=money+".$amnt." WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 2) { echo "UNLUCKY! You were mugged and lost <font color='yellow'>$amnt</font>"; $db->query("UPDATE `users` SET money=money-{$amnt} WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 3) { echo "You were attacked by a cow and lost a lot of things!"; $db->query("UPDATE `users` SET `money`=money-".$ir['money'].", hp=hp-".$ir['hp'].", energy=energy-".$ir['energy']." WHERE userid=".$_SESSION['userid'].""); } elseif($chance == 4) { echo "Nothing here..."; } elseif($chance == 5) { echo "You found a bag whilst walking. The bag contained <font color='cyan'>$gained</font> crystals."; $db->query("UPDATE `users` SET crystals=crystals+".$gained." WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 6) { echo "You were attacked by a Sheep and lost <font color='cyan'>$gained</font> crystals."; $db->query("UPDATE `users` SET crystals=crystals-".$gained." WHERE `userid`=".$_SESSION['userid'].""); } echo "<table><tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=north']<input type='button' style='background-color: black; font: white;' value='North' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=east']<input type='button' style='background-color: black; font: white;' value='East' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=south']<input type='button' style='background-color: black; font: white;' value='South' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=west']<input type='button' style='background-color: black; font: white;' value='West' />[/url]</td><tr></table>"; } } function east() { global $ir, $db, $h; $i = $db->fetch_row($db->query("SELECT `x`,`y` FROM `users` WHERE `userid`=$userid")); echo "X CoOrdinate: {$i['x']} || Y CoOrdinate: {$i['y']}"; $db->query("UPDATE `users` SET `x`=`x`+1 WHERE `userid`=".$_SESSION['userid'].""); if ($_GET['x'] = 10 && $_GET['y'] = 10) { echo "Click Here To Enter[url='?page=mythmine']<font color='pruple'>The Mythril Mine</font>[/url]"; } else { $chance = rand(1,6); // Edit and add things as you please. $amnt=rand(0,50000); $gained=rand(5,10)*$ir['level']; if($ir['energy'] < 1) { echo "You don't have enough Energy.. Come back in 5!"; } else { echo "You stepped East ".$chance.""; $db->query("UPDATE `users` SET energy=energy-1 WHERE `userid`=".$_SESSION['userid'].""); } if($chance == 1) { echo "You found a Treasure Chest! You open it and find <font color='yellow'>$amnt</font>"; $db->query("UPDATE `users` SET money=money+".$amnt." WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 2) { echo "UNLUCKY! You were mugged and lost <font color='yellow'>$amnt</font>"; $db->query("UPDATE `users` SET money=money-{$amnt} WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 3) { echo "You were attacked by a cow and lost a lot of things!"; $db->query("UPDATE `users` SET `money`=money-".$ir['money'].", hp=hp-".$ir['hp'].", energy=energy-".$ir['energy']." WHERE userid=".$_SESSION['userid'].""); } elseif($chance == 4) { echo "Nothing here..."; } elseif($chance == 5) { echo "You found a bag whilst walking. The bag contained <font color='cyan'>$gained</font> crystals."; $db->query("UPDATE `users` SET crystals=crystals+".$gained." WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 6) { echo "You were attacked by a Sheep and lost <font color='cyan'>$gained</font> crystals."; $db->query("UPDATE `users` SET crystals=crystals-".$gained." WHERE `userid`=".$_SESSION['userid'].""); } echo "<table><tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=north']<input type='button' style='background-color: black; font: white;' value='North' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=east']<input type='button' style='background-color: black; font: white;' value='East' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=south']<input type='button' style='background-color: black; font: white;' value='South' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=west']<input type='button' style='background-color: black; font: white;' value='West' />[/url]</td><tr></table>"; } } function south() { global $ir, $db, $h; $i = $db->fetch_row($db->query("SELECT `x`,`y` FROM `users` WHERE `userid`=$userid")); echo "X CoOrdinate: {$i['x']} || Y CoOrdinate: {$i['y']}"; $db->query("UPDATE `users` SET `y`=`y`+1 WHERE `userid`=".$_SESSION['userid'].""); if ($_GET['x'] = 10 && $_GET['y'] = 10) { echo "Click Here To Enter[url='?page=mythmine']<font color='pruple'>The Mythril Mine</font>[/url]"; } else { $chance = rand(1,6); // Edit and add things as you please. $amnt=rand(0,50000); $gained=rand(5,10)*$ir['level']; if($ir['energy'] < 1) { echo "You don't have enough Energy.. Come back in 5!"; } else { echo "You stepped South ".$chance.""; $db->query("UPDATE `users` SET energy=energy-1 WHERE `userid`=".$_SESSION['userid'].""); } if($chance == 1) { echo "You found a Treasure Chest! You open it and find <font color='yellow'>$amnt</font>"; $db->query("UPDATE `users` SET money=money+".$amnt." WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 2) { echo "UNLUCKY! You were mugged and lost <font color='yellow'>$amnt</font>"; $db->query("UPDATE `users` SET money=money-{$amnt} WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 3) { echo "You were attacked by a cow and lost a lot of things!"; $db->query("UPDATE `users` SET `money`=money-".$ir['money'].", hp=hp-".$ir['hp'].", energy=energy-".$ir['energy']." WHERE userid=".$_SESSION['userid'].""); } elseif($chance == 4) { echo "Nothing here..."; } elseif($chance == 5) { echo "You found a bag whilst walking. The bag contained <font color='cyan'>$gained</font> crystals."; $db->query("UPDATE `users` SET crystals=crystals+".$gained." WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 6) { echo "You were attacked by a Sheep and lost <font color='cyan'>$gained</font> crystals."; $db->query("UPDATE `users` SET crystals=crystals-".$gained." WHERE `userid`=".$_SESSION['userid'].""); } echo "<table><tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=north']<input type='button' style='background-color: black; font: white;' value='North' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=east']<input type='button' style='background-color: black; font: white;' value='East' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=south']<input type='button' style='background-color: black; font: white;' value='South' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=west']<input type='button' style='background-color: black; font: white;' value='West' />[/url]</td><tr></table>"; } } function west() { global $ir, $db, $h; $i = $db->fetch_row($db->query("SELECT `x`,`y` FROM `users` WHERE `userid`=$userid")); echo "X CoOrdinate: {$i['x']} || Y CoOrdinate: {$i['y']}"; $db->query("UPDATE `users` SET `x`=`x`-1 WHERE `userid`=".$_SESSION['userid'].""); if ($_GET['x'] = 10 && $_GET['y'] = 10) { echo "Click Here To Enter[url='?page=mythmine']<font color='pruple'>The Mythril Mine</font>[/url]"; } else { $chance = rand(1,6); // Edit and add things as you please. $amnt=rand(0,50000); $gained=rand(5,10)*$ir['level']; if($ir['energy'] < 1) { echo "You don't have enough Energy.. Come back in 5!"; } else { echo "You stepped West ".$chance.""; $db->query("UPDATE `users` SET energy=energy-1 WHERE `userid`=".$_SESSION['userid'].""); } if($chance == 1) { echo "You found a Treasure Chest! You open it and find <font color='yellow'>$amnt</font>"; $db->query("UPDATE `users` SET money=money+".$amnt." WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 2) { echo "UNLUCKY! You were mugged and lost <font color='yellow'>$amnt</font>"; $db->query("UPDATE `users` SET money=money-{$amnt} WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 3) { echo "You were attacked by a cow and lost a lot of things!"; $db->query("UPDATE `users` SET `money`=money-".$ir['money'].", hp=hp-".$ir['hp'].", energy=energy-".$ir['energy']." WHERE userid=".$_SESSION['userid'].""); } elseif($chance == 4) { echo "Nothing here..."; } elseif($chance == 5) { echo "You found a bag whilst walking. The bag contained <font color='cyan'>$gained</font> crystals."; $db->query("UPDATE `users` SET crystals=crystals+".$gained." WHERE `userid`=".$_SESSION['userid'].""); } elseif($chance == 6) { echo "You were attacked by a Sheep and lost <font color='cyan'>$gained</font> crystals."; $db->query("UPDATE `users` SET crystals=crystals-".$gained." WHERE `userid`=".$_SESSION['userid'].""); } echo "<table><tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=north']<input type='button' style='background-color: black; font: white;' value='North' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=east']<input type='button' style='background-color: black; font: white;' value='East' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=south']<input type='button' style='background-color: black; font: white;' value='South' />[/url]</td><tr> <tr><td valign='center' style='border-color:#C3C3C3'>[url='?page=west']<input type='button' style='background-color: black; font: white;' value='West' />[/url]</td><tr></table>"; } } function m_m() { global $ir, $db, $h; $chance = rand(1,6); $found=rand(0,5); if($ir['energy'] < 2) { echo "You don't have enough Energy.. Come back in 5!"; } else { echo "You attempted mine some Mythril ".$chance.""; $db->query("UPDATE `users` SET energy=energy-1 WHERE `userid`=".$_SESSION['userid'].""); } if($chance == 1) { echo "You found <font color='pruple'>$found Mythril</font>"; $db->query("UPDATE `users` SET mythril=mythril+".$found." WHERE `userid`=".$_SESSION['userid'].""); } echo "[url='?page=mythmine']Mine Again?[/url] or go [url='country.php']back[/url]"; } ?> ALTER TABLE users ADD mythril INT(11) NOT NULL DEFAILT 0; ALTER TABLE users ADD x INT(11) NOT NULL DEFAILT 0; ALTER TABLE users ADD y INT(11) NOT NULL DEFAILT 0; now open up explore and find include "globals.php"; under it add if ($_GET['x'] = 0 && $_GET['y'] = 0) { //rest of explore code here except $h->endpage() and ?> } else { echo "<font color='red'>[b]ERROR:[/b] You are not at this location. Go to the countryside and find your way back to 0,0!</font>"; Sh->endpage() ?> Untested. please try out. thanks.
-
some coding advice need here. can the following work? if($_GET['energy'] = 12) & if($_GET['money'] = 1000) { bla bla bla. please need to know this for an addon.
-
put an extra } at the end of the file before the $h->endpage()
-
ok i'm just typing this straight up here so if i make a mistake please point it out. so basically this mod is a country side that uses up one bit of energy for every step you take. on this countryside you can find random stuff. so here goes. country.php <?php include "globals.php"; print " <h3> The Countryside </h3> Try your best to find random stuff. remember you might lose things too... your risk. it costs 1 energy to move. "; switch($_GET['action']) { case 'north': north(); break; case 'south': south(); break; case 'east': east(); break; case 'west': west(); break; default: country_index(); break; } function country_index() { global $ir,$c,$userid; print "<table><td valign=center style='border-color:#C3C3C3'>[url='country.php?action=north']<input type='button' style='background-color: black; font: white;' value='North' />[/url]</td> <td valign=left style='border-color:#C3C3C3'>[url='country.php?action=west']<input type='button' style='background-color: black; font: white;' value='West' />[/url]</td> <td></td> <td valign=right style='border-color:#C3C3C3'>[url='country.php?action=east']<input type='button' style='background-color: black; font: white;' value='East' />[/url]</td> <td valign=center style='border-color:#C3C3C3'>[url='country.php?action=south']<input type='button' style='background-color: black; font: white;' value='East' />[/url]</td></table> "; } function north() { global $ir,$c,$userid; if($ir['energy'] > 1) { print " you have no energy to move! come back in five"; } else { $db->query("UPDATE users SET energy=energy-1 WHERE userid=$userid",$c); print "You stepped north"; /* ok now you can edit or add things onto this bit of the code */ $chance = rand(1,3); if ($chance == 1) { $amnt=rand(0,20000); if($ir['money'] != $amnt) { print "You found a treasure chest! You open it and find <font color='yellow'>$amnt</font> "; $db->query("UPDATE users SET money=money+ {$amnt } WHERE userid=$userid",$c); $ir['money']+=$amnt; } else { print "UNLUCKY! You were mugged by a gyp and lost <font color='yellow'>$amnt</font> "; $db->query("UPDATE users SET money=money- {$amnt} WHERE userid=$userid",$c); $ir['money']-=$amnt; } } if ($chance == 2) { print "Nothing here. "; } else { print "You were attacked by a cow and lost everything!"; $db->query("UPDATE users SET money=money-money WHERE userid=$userid",$c); $db->query("UPDATE users SET money=crystals-crystals WHERE userid=$userid",$c); $db->query("UPDATE users SET hp=hp-hp WHERE userid=$userid",$c); $db->query("UPDATE users SET energy=energy-energy WHERE userid=$userid",$c); if ($chance == 3) { $gained=rand(20,90)*$ir['level']; print "You found a bag of crystals on the side walk you open it up and find <font color='cyan'> $gained</font> crystals. "; $db->query("UPDATE users SET crystals=crystals+ {$gained} WHERE userid=$userid",$c); } else { print "A sheep attacked you and stole <font color='cyan'> $gained </font> crystals. "; $db->query("UPDATE users SET crystals=crystals- {$gained} WHERE userid=$userid",$c); } } function south () { global $ir,$c,$userid; if($ir['energy'] > 1) { print " you have no energy to move! come back in five"; } else { $db->query("UPDATE users SET energy=energy-1 WHERE userid=$userid",$c); print "You stepped south"; /* ok now you can edit or add things onto this bit of the code */ $chance = rand(1,3); if ($chance == 1) { $amnt=rand(0,20000); if($ir['money'] != $amnt) { print "You found a treasure chest! You open it and find <font color='yellow'>$amnt</font> "; $db->query("UPDATE users SET money=money+ {$amnt } WHERE userid=$userid",$c); $ir['money']+=$amnt; } else { print "UNLUCKY! You were mugged by a gyp and lost <font color='yellow'>$amnt</font> "; $db->query("UPDATE users SET money=money- {$amnt} WHERE userid=$userid",$c); $ir['money']-=$amnt; } } if ($chance == 2) { print "Nothing here. "; } else { print "You were attacked by a cow and lost everything!"; $db->query("UPDATE users SET money=money-money WHERE userid=$userid",$c); $db->query("UPDATE users SET money=crystals-crystals WHERE userid=$userid",$c); $db->query("UPDATE users SET hp=hp-hp WHERE userid=$userid",$c); $db->query("UPDATE users SET energy=energy-energy WHERE userid=$userid",$c); if ($chance == 3) { $gained=rand(20,90)*$ir['level']; print "You found a bag of crystals on the side walk you open it up and find <font color='cyan'> $gained</font> crystals. "; $db->query("UPDATE users SET crystals=crystals+ {$gained} WHERE userid=$userid",$c); } else { print "A sheep attacked you and stole <font color='cyan'> $gained </font> crystals. "; $db->query("UPDATE users SET crystals=crystals- {$gained} WHERE userid=$userid",$c); } } function east() { global $ir,$c,$userid; if($ir['energy'] > 1) { print " you have no energy to move! come back in five"; } else { $db->query("UPDATE users SET energy=energy-1 WHERE userid=$userid",$c); print "You stepped east"; /* ok now you can edit or add things onto this bit of the code */ $chance = rand(1,3); if ($chance == 1) { $amnt=rand(0,20000); if($ir['money'] != $amnt) { print "You found a treasure chest! You open it and find <font color='yellow'>$amnt</font> "; $db->query("UPDATE users SET money=money+ {$amnt } WHERE userid=$userid",$c); $ir['money']+=$amnt; } else { print "UNLUCKY! You were mugged by a gyp and lost <font color='yellow'>$amnt</font> "; $db->query("UPDATE users SET money=money- {$amnt} WHERE userid=$userid",$c); $ir['money']-=$amnt; } } if ($chance == 2) { print "Nothing here. "; } else { print "You were attacked by a cow and lost everything!"; $db->query("UPDATE users SET money=money-money WHERE userid=$userid",$c); $db->query("UPDATE users SET money=crystals-crystals WHERE userid=$userid",$c); $db->query("UPDATE users SET hp=hp-hp WHERE userid=$userid",$c); $db->query("UPDATE users SET energy=energy-energy WHERE userid=$userid",$c); if ($chance == 3) { $gained=rand(20,90)*$ir['level']; print "You found a bag of crystals on the side walk you open it up and find <font color='cyan'> $gained</font> crystals. "; $db->query("UPDATE users SET crystals=crystals+ {$gained} WHERE userid=$userid",$c); } else { print "A sheep attacked you and stole <font color='cyan'> $gained </font> crystals. "; $db->query("UPDATE users SET crystals=crystals- {$gained} WHERE userid=$userid",$c); } } function west() { global $ir,$c,$userid; if($ir['energy'] > 1) { print " you have no energy to move! come back in five"; } else { $db->query("UPDATE users SET energy=energy-1 WHERE userid=$userid",$c); print "You stepped west"; /* ok now you can edit or add things onto this bit of the code */ $chance = rand(1,3); if ($chance == 1) { $amnt=rand(0,20000); if($ir['money'] != $amnt) { print "You found a treasure chest! You open it and find <font color='yellow'>$amnt</font> "; $db->query("UPDATE users SET money=money+ {$amnt } WHERE userid=$userid",$c); $ir['money']+=$amnt; } else { print "UNLUCKY! You were mugged by a gyp and lost <font color='yellow'>$amnt</font> "; $db->query("UPDATE users SET money=money- {$amnt} WHERE userid=$userid",$c); $ir['money']-=$amnt; } } if ($chance == 2) { print "Nothing here. "; } else { print "You were attacked by a cow and lost everything!"; $db->query("UPDATE users SET money=money-money WHERE userid=$userid",$c); $db->query("UPDATE users SET crystals=crystals-crystals WHERE userid=$userid",$c); $db->query("UPDATE users SET hp=hp-hp WHERE userid=$userid",$c); $db->query("UPDATE users SET energy=energy-energy WHERE userid=$userid",$c); } if ($chance == 3) { $gained=rand(20,90)*$ir['level']; print "You found a bag of crystals on the side walk you open it up and find <font color='cyan'> $gained</font> crystals. "; $db->query("UPDATE users SET crystals=crystals+ {$gained} WHERE userid=$userid",$c); } else { print "A sheep attacked you and stole <font color='cyan'> $gained </font> crystals. "; $db->query("UPDATE users SET crystals=crystals- {$gained} WHERE userid=$userid",$c); } } $h->endpage() ?> please tell me what you think.
-
very nice.... well done
-
New login (may have a few bugs as untested)
Coly010 replied to Coly010's topic in Free Modifications
now for the images: http://crossfire.pcriot.com/test/images.zip psd for logo included -
ok this is my new login but it is untested so i do not know if it works or not. no screenie either sorry. you will also have to save the images i will post here and you will be able to download psd for the logo. here's the code. if you find anything wrong with it fix it and post it here for others. thanks Coly010 btw i designed this on microsoft word so i could get the layout then just put the html file a php one. <?php session_start() print <<<EOF ?> <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=windows-1252"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 11"> <meta name=Originator content="Microsoft Word 11"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--> <title>Your Game Name</title> <script language="JavaScript"> <!-- function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } // --> </script> <script language="JavaScript"> var usr; var pw; var sv; function getme() { usr = document.login.username; pw = document.login.password; sv = document.login.save; if (GetCookie('player') != null) { usr.value = GetCookie('username') pw.value = GetCookie('password') if (GetCookie('save') == 'true') { sv[0].checked = true; } } } function saveme() { if (usr.value.length != 0 && pw.value.length != 0) { if (sv[0].checked) { expdate = new Date(); expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000)); SetCookie('username', usr.value, expdate); SetCookie('password', pw.value, expdate); SetCookie('save', 'true', expdate); } if (sv[1].checked) { DeleteCookie('username'); DeleteCookie('password'); DeleteCookie('save'); } } else { alert('You must enter a username/password.'); return false; } } </script> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:RelyOnVML/> <o:AllowPNG/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <wpellingState>Clean</wpellingState> <w:GrammarState>Clean</w:GrammarState> <w:FormsDesign/> <wunctuationKerning/> <w:ValidateAgainstSchemas/> <waveIfXMLInvalid>false</waveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables/> <wnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <wontGrowAutofit/> </w:Compatibility> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:"Franklin Gothic Demi"; panose-1:2 11 7 3 2 1 2 2 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:647 0 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:595.3pt 841.9pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {pageection1;} --> </style> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="2050"/> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1"/> </o:shapelayout></xml><![endif]--> </head> </html> <?php EOF; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$ip)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } ?> <html> <body onload="getme();" lang=EN-GB style='tab-interval:36.0pt'> <div class=Section1> <p class=MsoNormal><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"> <v:stroke joinstyle="miter"/> <v:formulas> <v:f eqn="if lineDrawn pixelLineWidth 0"/> <v:f eqn="sum @0 1 0"/> <v:f eqn="sum 0 0 @1"/> <v:f eqn="prod @2 1 2"/> <v:f eqn="prod @3 21600 pixelWidth"/> <v:f eqn="prod @3 21600 pixelHeight"/> <v:f eqn="sum @0 0 1"/> <v:f eqn="prod @6 1 2"/> <v:f eqn="prod @7 21600 pixelWidth"/> <v:f eqn="sum @8 21600 0"/> <v:f eqn="prod @7 21600 pixelHeight"/> <v:f eqn="sum @10 21600 0"/> </v:formulas> <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/> <o:lock v:ext="edit" aspectratio="t"/> </v:shapetype><v:shape id="_x0000_s1032" type="#_x0000_t75" style='position:absolute; margin-left:0;margin-top:0;width:599.8pt;height:93.9pt;z-index:-6; mso-position-horizontal:left;mso-position-vertical:top; mso-position-vertical-relative:line' o:allowoverlap="f"> <v:imagedata src="images/logo.png" o:title="Header"/> <w:wrap type="square"/> </v:shape><span style='mso-spacerun:yes'> </span></p> <p class=MsoNormal><o:p></o:p></p> <p class=MsoNormal><o:p></o:p></p> <p class=MsoNormal><o:p></o:p></p> <p class=MsoNormal><o:p></o:p></p> <p class=MsoNormal><o:p></o:p></p> <p class=MsoNormal><o:p></o:p></p> <p class=MsoNormal><span style='mso-spacerun:yes'> </span></p> <a href='login.php'><p class=MsoNormal><v:shape id="_x0000_s1042" type="#_x0000_t75" style='position:absolute; margin-left:0;margin-top:0;width:165.3pt;height:75.15pt;z-index:-5; mso-position-horizontal:left;mso-position-horizontal-relative:text; mso-position-vertical:top;mso-position-vertical-relative:line' o:allowoverlap="f"> <v:imagedata src="images/home.png" o:title="home"/></a> <a href='register.php'> <w:wrap type="square"/> </v:shape><span style='mso-spacerun:yes'> </span><v:shape id="_x0000_i1036" type="#_x0000_t75" style='width:165pt;height:75pt'> <v:imagedata src="images/register.png" o:title="register"/></a> </v:shape><a href='story.php'><span style='mso-spacerun:yes'> </span><v:shape id="_x0000_i1037" type="#_x0000_t75" style='width:165pt;height:75pt'> <v:imagedata src="images/story.png" o:title="story"/></a> </v:shape></p> <p class=MsoNormal><o:p></o:p></p> <p class=MsoNormal><o:p></o:p></p> <p class=MsoNormal><v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe"> <v:stroke joinstyle="miter"/> <v:path gradientshapeok="t" o:connecttype="rect"/> </v:shapetype><v:shape id="_x0000_s1048" type="#_x0000_t202" style='position:absolute; margin-left:-159.05pt;margin-top:13.15pt;width:137.15pt;height:114.55pt; z-index:5;mso-position-horizontal:absolute;mso-position-vertical:absolute' filled="f" stroked="f"> <v:textbox> <![if !mso]> <table cellpadding=0 cellspacing=0 width="100%"> <tr> <td><![endif]> <div> <form action=authenticate.php method=post name=login onsubmit=\"return saveme();\"> <p class=MsoNormal><span style='font-size:12.0pt;font-family:"Franklin Gothic Demi"'>Username:<o:p></o:p></span></p> <p class=MsoNormal><span style='font-size:12.0pt;font-family:"Franklin Gothic Demi"'><input type="text" name="username" id="username" value="Username" /><o:p></o:p></span></p> <p class=MsoNormal><span style='font-size:12.0pt;font-family:"Franklin Gothic Demi"'>Password:<o:p></o:p></span></p> <p class=MsoNormal><span style='font-size:12.0pt;font-family:"Franklin Gothic Demi"'><input type="password" name="password" id="password" value="password" /><o:p></o:p></span></p> <p class=MsoNormal><span style='font-size:12.0pt;font-family:"Franklin Gothic Demi"'><input type="radio" value="ON" name="save">Yes <input type="radio" name="save" value="OFF" checked>No<o:p></o></span></p> <p class=MsoNormal><span style='font-size:12.0pt;font-family:"Franklin Gothic Demi"'><input type="submit" value="Login" /></form><o:p></o:p></span></p> </div> <![if !mso]></td> </tr> </table> <![endif]></v:textbox> </v:shape><v:shape id="_x0000_s1052" type="#_x0000_t202" style='position:absolute; margin-left:-513.4pt;margin-top:16.95pt;width:298.05pt;height:225.95pt; z-index:6;mso-position-horizontal:absolute;mso-position-vertical:absolute' filled="f" stroked="f"> <v:textbox> <![if !mso]> <table cellpadding=0 cellspacing=0 width="100%"> <tr> <td><![endif]> <div> <p class=MsoNormal><span style='font-family:"Franklin Gothic Demi"'>Game Description Can Go Here.<o:p></o:p></span></p> </div> <![if !mso]></td> </tr> </table> <![endif]></v:textbox> </v:shape><v:shape id="_x0000_s1044" type="#_x0000_t75" style='position:absolute; margin-left:0;margin-top:0;width:344.95pt;height:262.35pt;z-index:-3; mso-position-horizontal:left;mso-position-horizontal-relative:text; mso-position-vertical:top;mso-position-vertical-relative:line' o:allowoverlap="f"> <v:imagedata src="images/image005.png" o:title="description"/> <w:wrap type="square"/> </v:shape><v:shape id="_x0000_s1043" type="#_x0000_t75" style='position:absolute; margin-left:0;margin-top:0;width:161.55pt;height:142.75pt;z-index:-4; mso-position-horizontal:left;mso-position-horizontal-relative:text; mso-position-vertical:top;mso-position-vertical-relative:line' o:allowoverlap="f"> <v:imagedata src="images/image006.png" o:title="loginbk"/> <w:wrap type="square"/> </v:shape></p> </div> </body> </html> remember to point out any bugs if you see any.
-
after reading what you all said it'd be best if djkanna just removed the sqls and for me to guess them. i swear i havent took them.
-
wont anyone help me. i downloaded the php-horizions version of gangs but i need the sql for it to work properly.
-
does anyone have the sqls for gangs? i would appreciate it if you could post them here.
-
zip not working
-
could someone create a lite version of this as i have no idea how to recode this one because of the config part.
-
this sounds like a spectactular game engine and i would like to know how long it will be till its finished? i would use this straight away as well.
-
just read shole's post and have changed the file a bit as to keep it all in one file and have recoded for lite and v2 gamestation.php [v2] <?php include "globals.php"; switch($_GET['action']) { case 'blackjack': black_jack(); break; case 'pacman': pac_man(); break; case 'ewoks': ewoks(); break; case 'poker': poker(); break; default: gamestation_index(); break; } function gamestation_index() { global $ir,$c,$userid; print"<h2><center><font color=purple>[img=images/arcade.jpg] Game Station</font></center></h2> "; print"<font color=silver>[i]The images may not reflect the true image of the game. Play safe and please[/i][b]<u> No Running in the Arcade.</u>[/b]</font> "; print" <table width=100% border=3 bordercolor=silver class='table'><tr><th><font color=gold>Game Name</font></th><th><font color=gold>Image</th><th><font color=gold>Description</font></th>"; print"<tr><td>[url='gamestation.php?action=blackjack']Blackjack[/url]</td><td><a href='gamestation.php?action=blackjack'>[img=images/blackjack.jpg]</td><td>Blackjack card game Click on the name or the pic to play</td>"; print"<tr><td>[url='gamestation.php?action=pacman']Pacman[/url]</td><td><a href='pacman.php'>[img=images/pacman.jpg]</td><td>Pacman is back! Click on the name or the pic to play</td>"; print"<tr><td>[url='gamestation.php?action=ewoks']Ewoks[/url]</td><td><a href='ewoks.php'>[img=images/ewoks.jpg]</td><td>Blast the crap out the of cute little teddies from Star Wars. Click on the name or the pic to play</td>"; print"<tr><td>[url='gamestation.php?action=poker']Poker[/url]</td><td><a href='poker.php'>[img=images/poker.jpg]</td><td>Poker, a card game played by millions. Click on the name or the pic to play</td>"; print"</table>"; } function black_jack() { global $ir, $c,$userid; print "<h2><font color=purple>Blackjack</font></h2> "; print "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/20323.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/20323.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; } function pac_man() { global $ir,$c,$userid; print "<h2><font color=purple>Pac-Man</font</h2> "; print"<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='470' height='470'> <PARAM name=quality value=high> <PARAM name='SRC' value='http://www.zemnetmedia.com/games/pacman/pacmangame.swf'> <EMBED src='http://www.zemnetmedia.com/games/pacman/pacmangame.swf' width='470' height='470' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'> </EMBED></object> [b]These are the shortcut keys: <font color=red>M</font> - Turn music On/Off <font color=red>P</font> - Pause/ Unpause the game <font color=red>Q</font> - Quit the Game <font color=red>L</font> - Low quality on/ off"; } } function ewoks() { global $ir,$c,$userid; print "<h2><font color=purple>Ewoks</font></h2> "; print "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/20295.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/20295.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; } function poker() { global $ir,$c,$userid; print "<h2><font color=purple>Poker</font></h2> "; print "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/20493.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/20493.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; } $h->endpage ?> gamestation.php [lite] <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.*,h.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN houses h ON h.hWILL=u.maxwill WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); $header=$ir['head']; require "$header"; $h = new headers; $h->startheaders(); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); switch($_GET['action']) { case 'blackjack': black_jack(); break; case 'pacman': pac_man(); break; case 'ewoks': ewoks(); break; case 'poker': poker(); break; default: gamestation_index(); break; } function gamestation_index() { global $ir,$c,$userid; print"<h2><center><font color=purple>[img=images/arcade.jpg] Game Station</font></center></h2> "; print"<font color=silver>[i]The images may not reflect the true image of the game. Play safe and please[/i][b]<u> No Running in the Arcade.</u>[/b]</font> "; print" <table width=100% border=3 bordercolor=silver class='table'><tr><th><font color=gold>Game Name</font></th><th><font color=gold>Image</th><th><font color=gold>Description</font></th>"; print"<tr><td>[url='gamestation.php?action=blackjack']Blackjack[/url]</td><td><a href='gamestation.php?action=blackjack'>[img=images/blackjack.jpg]</td><td>Blackjack card game Click on the name or the pic to play</td>"; print"<tr><td>[url='gamestation.php?action=pacman']Pacman[/url]</td><td><a href='pacman.php'>[img=images/pacman.jpg]</td><td>Pacman is back! Click on the name or the pic to play</td>"; print"<tr><td>[url='gamestation.php?action=ewoks']Ewoks[/url]</td><td><a href='ewoks.php'>[img=images/ewoks.jpg]</td><td>Blast the crap out the of cute little teddies from Star Wars. Click on the name or the pic to play</td>"; print"<tr><td>[url='gamestation.php?action=poker']Poker[/url]</td><td><a href='poker.php'>[img=images/poker.jpg]</td><td>Poker, a card game played by millions. Click on the name or the pic to play</td>"; print"</table>"; } function black_jack() { global $ir, $c,$userid; print "<h2><font color=purple>Blackjack</font></h2> "; print "<object classid='clsid27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/20323.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/20323.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; } function pac_man() { global $ir,$c,$userid; print "<h2><font color=purple>Pac-Man</font</h2> "; print"<OBJECT classid='clsid27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='470' height='470'> <PARAM name=quality value=high> <PARAM name='SRC' value='http://www.zemnetmedia.com/games/pacman/pacmangame.swf'> <EMBED src='http://www.zemnetmedia.com/games/pacman/pacmangame.swf' width='470' height='470' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'> </EMBED></object> [b]These are the shortcut keys: <font color=red>M</font> - Turn music On/Off <font color=red>P</font> - Pause/ Unpause the game <font color=red>Q</font> - Quit the Game <font color=red>L</font> - Low quality on/ off"; } } function ewoks() { global $ir,$c,$userid; print "<h2><font color=purple>Ewoks</font></h2> "; print "<object classid='clsid27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/20295.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/20295.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; } function poker() { global $ir,$c,$userid; print "<h2><font color=purple>Poker</font></h2> "; print "<object classid='clsid27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/20493.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/20493.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; } $h->endpage ?> if i left anything out tell me please.
-
i dont know how to code javascript :( so if you can fix it repost it here for others
-
ah... what does?
-
Cool dayo!! if you do acheive this please pm it to me:D (the ajax code ;))
-
ok i'll redo it here mpop.php <?php $d2=mysql_query("SELECT COUNT(*) as cnt FROM mail WHERE mail_to={$ir['userid']} AND mail_read=0",$c) or die(mysql_error()); $r=mysql_fetch_array($d2); if($r['cnt'] != 0) { ?> <script type="text/javascript"> alert("[url='mailbox.php']You have Mail![/url]"); </script> <?php } ?>
-
ok so this is simply a popup saying you have mail. create file called: mpop.php <?php $d2=mysql_query("SELECT COUNT(*) as cnt FROM mail WHERE mail_to={$ir['userid']} AND mail_read=0",$c) or die(mysql_error()); $r=mysql_fetch_array($d2); if($r['cnt'] > 0) { print ' <form> <input type="button" onClick="mailbox.php" value="You Have Mail"> </form>'; } insert this file into the header file using include "mpop.php"; if i made a mistake tell me because this is my first atempt at a popup easily converted to v2 and can also be used for events