
blade727
Members-
Posts
24 -
Joined
-
Last visited
Never
blade727's Achievements
Newbie (1/14)
0
Reputation
-
mccode-v2 New and improved inventory code sources for free!
blade727 replied to MDK666's topic in Free Modifications
Re: [mccodes v2]New and improved inventory code sources for free! use this.. -
Need help with a custom airport thing - Keep it if you can fix!
blade727 replied to 2Pacalypse's topic in General Discussion
Re: Need help with a custom airport thing - Keep it if you can fix! i did change the something on the first script i posted and it did fixed some stuffs. this second script fixes the error you got.(tested) <?php include "globals.php"; switch($_GET['city']) { case 'portadown': portadown(); break; case 'london': london(); break; case 'washington': washington(); break; case 'paris': paris(); break; case 'berlin': berlin(); break; case 'vegas': vegas(); break; case 'kathmandu': kathmandu(); break; } print "<table class='table' width='65%' cellpadding='2'> <tr> <th>City</th><th>Level</th><th>Cost</th><th>Travel</th> </tr> <tr> <td>Portadown</td><td>1</td><td>\$1,000</td><td>[url='airport.php?city=portadown']Go[/url]</td> </tr> <tr> <td>London</td><td>5</td><td>\$3,000</td><td>[url='airport.php?city=london']Go[/url]</td> </tr> <tr> <td>Washington</td><td>10</td><td>\$5,000</td><td>[url='airport.php?city=washington']Go[/url]</td> </tr> <tr> <td>Paris</td><td>20</td><td>\$7,500</td><td>[url='airport.php?city=paris']Go[/url]</td> </tr> <tr> <td>Berlin</td><td>30</td><td>\$10,000</td><td>[url='airport.php?city=berlin']Go[/url]</td> </tr> <tr> <td>Las Vegas</td><td>40</td><td>\$12,500</td><td>[url='airport.php?city=vegas']Go[/url]</td> </tr> <tr> <td>Kathmandu</td><td>50</td><td>\$15,000</td><td>[url='airport.php?city=vegas']Go[/url]</td> </tr> "; function portadown() { global $db,$ir,$c,$userid,$h; if ($ir['level'] > 0 and $ir['money'] >999) { $db->query("UPDATE users SET money=money-1000,location=1 WHERE userid=$userid"); print "You paid \$1,000 to travel to Portadown"; } else if ($ir['level'] < 2) { print "You are not high enough level to go here!"; } else if ($ir['money'] < 1) { print "You don't have enough money to cover the ticket"; } } function london() { global $db,$ir,$c,$userid,$h; if ($ir['level'] > 4 and $r['money'] >2999) { $db->query("UPDATE users SET money=money-3000,location=2 WHERE userid=$userid"); print "You paid \$3,000 to travel to London"; } elseif (($ir['level']) < 6) { print "You are not high enough level to go here!"; } elseif ($r['money'] < 3000) { print "You don't have enough money to cover the ticket"; } } function washington() { global $db,$ir,$c,$userid,$h; if ($ir['level'] > 9 and $ir['money'] >4999) { $db->query("UPDATE users SET money=money-5000,location=3 WHERE userid=$userid"); print "You paid \$5,000 to travel to Washington"; } elseif ($ir['level'] < 11) { print "You are not high enough level to go here!"; } elseif ($ir['money'] < 5000) { print "You don't have enough money to cover the ticket"; } } function paris() { global $db,$ir,$c,$userid,$h; if ($ir['level'] > 19 and $ir['money'] >7499) { $db->query("UPDATE users SET money=money-7500,location=4 WHERE userid=$userid"); print "You paid \$7,500 to travel to Paris"; } elseif ($ir['level'] < 21) { print "You are not high enough level to go here!"; } elseif ($ir['money'] < 7500) { print "You don't have enough money to cover the ticket"; } } function berlin() { global $db,$ir,$c,$userid,$h; if ($ir['level'] > 29 and $ir['money'] >9999) { $db->query("UPDATE users SET money=money-10000,location=5 WHERE userid=$userid"); print "You paid \$10,000 to travel to Berlin"; } elseif ($ir['level'] < 31) { print "You are not high enough level to go here!"; } elseif ($ir['money'] < 10000) { print "You don't have enough money to cover the ticket"; } } function vegas() { global $db,$ir,$c,$userid,$h; if ($ir['level'] > 39 and $ir['money'] >12499) { $db->query("UPDATE users SET money=money-12500,location=6 WHERE userid=$userid"); print "You paid \$12,500 to travel to Las Vegas"; } elseif ($ir['level'] < 41) { print "You are not high enough level to go here!"; } elseif ($ir['money'] < 12500) { print "You don't have enough money to cover the ticket"; } } function kathmandu() { global $db,$ir,$c,$userid,$h; if ($ir['level'] > 49 and $ir['money'] >14999) { $db->query("UPDATE users SET money=money-15000,location=7 WHERE userid=$userid"); print "You paid \$12,500 to travel to Kathmandu This is a very cold place!"; } elseif ($ir['level'] < 51) { print "You are not high enough level to go here!"; } elseif ($ir['money'] < 15000) { print "You don't have enough money to cover the ticket"; } } $h->endpage(); ?> -
Need help with a custom airport thing - Keep it if you can fix!
blade727 replied to 2Pacalypse's topic in General Discussion
Re: Need help with a custom airport thing - Keep it if you can fix! <?php include "globals.php"; switch($_GET['city']) { case 'portadown': portadown(); break; case 'london': london(); break; case 'washington': washington(); break; case 'paris': paris(); break; case 'berlin': berlin(); break; case 'vegas': vegas(); break; case 'kathmandu': kathmandu(); break; } print " <table class='table' width='65%' cellpadding='2'> <tr> <th>City</th><th>Level</th><th>Cost</th><th>Travel</th> </tr> <tr> <td>Portadown</td><td>1</td><td>/$1,000</td><td>[url='airport.php?city=portadown']Go[/url]</td> </tr> <tr> <td>London</td><td>5</td><td>/$3,000</td><td>[url='airport.php?city=london']Go[/url]</td> </tr> <tr> <td>Washington</td><td>10</td><td>/$5,000</td><td>[url='airport.php?city=washington']Go[/url]</td> </tr> <tr> <td>Paris</td><td>20</td><td>/$7,500</td><td>[url='airport.php?city=paris']Go[/url]</td> </tr> <tr> <td>Berlin</td><td>30</td><td>/$10,000</td><td>[url='airport.php?city=berlin']Go[/url]</td> </tr> <tr> <td>Las Vegas</td><td>40</td><td>/$12,500</td><td>[url='airport.php?city=vegas']Go[/url]</td> </tr> <tr> <td>Kathmandu</td><td>50</td><td>/$15,000</td><td>[url='airport.php?city=vegas']Go[/url]</td> </tr> "; function portadown() { if ($ir['level'] > 0 and $ir['money'] >999) { $db->query("UPDATE users SET money=money-1000,location=1 WHERE userid=$userid"); print "You paid /$1,000 to travel to Portadown"; } elseif ($ir['level'] < 2) { print "You are not high enoguh level to go here!"; } elseif ($ir['money'] < 1000) { print "You don't have enough money to cover the ticket"; } } function london() { if ($ir['level'] > 4 and $r['money'] >2999) { $db->query("UPDATE users SET money=money-3000,location=2 WHERE userid=$userid"); print "You paid /$3,000 to travel to London"; } elseif (($ir['level']) < 6) { print "You are not high enough level to go here!"; } elseif ($r['money'] < 3000) { print "You don't have enough money to cover the ticket"; } } function washington() { if ($ir['level'] > 9 and $ir['money'] >4999) { $db->query("UPDATE users SET money=money-5000,location=3 WHERE userid=$userid"); print "You paid /$5,000 to travel to Washington"; } elseif ($ir['level'] < 11) { print "You are not high enoguh level to go here!"; } elseif ($ir['money'] < 5000) { print "You don't have enough money to cover the ticket"; } } function paris() { if ($ir['level'] > 19 and $ir['money'] >7499) { $db->query("UPDATE users SET money=money-7500,location=4 WHERE userid=$userid"); print "You paid /$7,500 to travel to Paris"; } elseif ($ir['level'] < 21) { print "You are not high enoguh level to go here!"; } elseif ($ir['money'] < 7500) { print "You don't have enough money to cover the ticket"; } } function berlin() { if ($ir['level'] > 29 and $ir['money'] >9999) { $db->query("UPDATE users SET money=money-10000,location=5 WHERE userid=$userid"); print "You paid /$10,000 to travel to Berlin"; } elseif ($ir['level'] < 31) { print "You are not high enough level to go here!"; } elseif ($ir['money'] < 10000) { print "You don't have enough money to cover the ticket"; } } function vegas() { if ($ir['level'] > 39 and $ir['money'] >12499) { $db->query("UPDATE users SET money=money-12500,location=6 WHERE userid=$userid"); print "You paid /$12,500 to travel to Las Vegas"; } elseif ($ir['level'] < 41) { print "You are not high enough level to go here!"; } elseif ($ir['money'] < 12500) { print "You don't have enough money to cover the ticket"; } } function kathmandu() { if ($ir['level'] > 49 and $ir['money'] >14999) { $db->query("UPDATE users SET money=money-15000,location=7 WHERE userid=$userid"); print "You paid /$12,500 to travel to Kathmandu This is a very cold place!"; } elseif ($ir['level'] < 51) { print "You are not high enough level to go here!"; } elseif ($ir['money'] < 15000) { print "You don't have enough money to cover the ticket"; } } $h->endpage(); ?> fixed.. or i think so.. not tested. -
mccode-v2 New and improved inventory code sources for free!
blade727 replied to MDK666's topic in Free Modifications
Re: [mccodes v2]New and improved inventory code sources for free! they dont..because the attack script dont use those other equips and i dont know how to modify it. -
mccode-v2 New and improved inventory code sources for free!
blade727 replied to MDK666's topic in Free Modifications
Re: [mccodes v2]New and improved inventory code sources for free! tested but the other items you equip except for weapons and armor dont add attack damage/defence. -
Re: [REVIEW]Battle Century - Please review!! godaddy canceled my domain without a reason and when mailed them they dont reply me.i decided to use a co.cc domain instead.
-
Re: [REVIEW]Battle Century - Please review!! thanks :)
-
Re: [REVIEW]Battle Century - Please review!! sorry for the double post but please review the game once more since i've had a big update,the url was changed and its different now. http://battlecentury.co.cc/game/login.php the demo account was removed.
-
Re: [v2] Car Mods Lol their aint even a car mod on that thread.
-
Re: [v2] Shops.php yes.just remove the city limit thingy so it can be used in all cities.
-
Re: [mccode v2] Ranks Mod!!!! pm me your msn i will help you for free :)
-
Re: Were does ppl host i got my hosing with www.thewebworld.org its fast and almost no downtimes.
-
[mccode v2] Themecreator 100% Completed Working Copy
blade727 replied to Uridium's topic in Free Modifications
Re: [mccode v2] Themecreator 100% Completed Working Copy this itself is great,+1 to illusions. thank you for making great mods :-) -
Re: [sHOWCASE]Battle Century bump
-
Re: [REVIEW]Battle Century - Please review!! thank you guys for the comment :) i'll try to improve the game.