
elessar
Members-
Posts
28 -
Joined
-
Last visited
Never
elessar's Achievements
Newbie (1/14)
0
Reputation
-
Re: [$25] Treasure Map! Works great I will be releasing it to the game population tomorrow
-
Re: A little help? That worked! Thanks a bunch+1
-
Re: A little help? That will judge by the person trying to do the kicks daysingang
-
Im wondering how to block people from being kicked from a gang untill they have been in it 2 days. I was able to block them from leaving but cant quite get the kicking blocked
-
Re: [Free] Advanced(ish) Level Upgrade Mod. Even fixing this so it takes the exp away it still causes masive leveling with anyone who has a significant amount of exp. more than it should
-
Re: Texas Hold 'Em Mod Very nice! i attempted to code 5 card draw one time didnt succeed though
-
Re: [mccode] Supporter Packs if($ir[supporterdays]) needs to be if($ir['supporterdays'])
-
Re: Free Carnival If it said you missed then you were just unlucky worked perfectly for me and my members seemed to absolutly love it so i may have the carnival come to town one weekend a month
-
Re: [v1] NEW - Weapon Stocks & Transport I suck at typing so it usually takes me 5 minutes to type out <?php :-D
-
So i made a Carnival to give members something to do over the weekend and i thought i'd share it with you guys its really cheezy but still something to add and work with: first open phpmyadmin and run this query alter table users add `tickets` int(11) NOT NULL default '0'; then create carnival.php <?php /*----------------------------------------------------- carnival Free to use if you like -----------------------------------------------------*/ session_start(); require "global_func.php"; $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); 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(); if($ir['jail']>0 || $ir['hospital']>0) die("You can not move around right now."); if(!$_GET['buy']) { print "Welcome to the Carnival. You currently have {$ir['tickets']} tickets do you want to buy some?"; print "What would you like to do? [url='carnival.php?buy=ticket']Buy Tickets - $5000 for 5 tickets[/url] [url='carnigames.php?action=balloon'] Balloon Dart Game - 5 Tickets per dart.[/url] [url='carnigames.php?action=duck']Lucky Ducks - 5 Tickets per duck[/url] [url='carnigames.php?action=strongman']Strongman Game - 5 Tickets per swing[/url] [url='carnigames.php?action=dunk']Dunking Booth - 5 Tickets per throw[/url] "; } else { if($_GET['buy'] == 'ticket') { if($ir['money'] <5000) { print "You don't have enough money for tickets"; } else { mysql_query("UPDATE users SET money=money-5000,tickets=tickets+5 WHERE userid=$userid",$c); print "You have paid $5000 for 5 carnival tickets."; } } } ?> Then create carnigames.php <?php /*----------------------------------------------------- Free to use if you like -----------------------------------------------------*/ session_start(); require "global_func.php"; $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); 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(); if($ir['tickets']<1) die("You are out of tickets. [url='carnival.php']Go buy some[/url]"); if ($_GET['action'] == 'balloon') { $bal=rand(1,100); if ($bal>=10) { print "You missed! [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } else { print "You pop a balloon and win 5 Crystals! "; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); mysql_query("update users set crystals=crystals+5 where userid=$userid",$c); } } if ($_GET['action'] == 'duck') { $dck=rand(1,10); if ($dck==1) { print "You picked up the duck with the number 1 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($dck==2) { print "You picked up the duck with the number 2 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($dck==3) { print "You picked up the duck with the number 3 on the bottom! You won 3 Crystals! [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); mysql_query("update users set crystals=crystals+3 where userid=$userid",$c); } if ($dck==4) { print "You picked up the duck with the number 4 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($dck==5) { print "You picked up the duck with the number 5 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($dck==6) { print "You picked up the duck with the number 6 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($dck==7) { print "You picked up the duck with the number 7 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($dck==8) { print "You picked up the duck with the number 8 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($dck==9) { print "You picked up the duck with the number 9 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($dck==10) { print "You picked up the duck with the number 10 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } } if ($_GET['action'] == 'strongman') { $mrk=rand(1,10); if ($mrk==1) { print "You pick up the hammer and swing! The little marker barely moves...pityful [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($mrk==2) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...weakling [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($mrk==3) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...wimpy [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($mrk==4) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...give it up [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($mrk==5) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...only halfway how sad [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($mrk==6) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...getting there [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($mrk==7) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...almost [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($mrk==8) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...Good Girl [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($mrk==9) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...Good boy [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($mrk==10) { print "You pick up the hammer and swing! You hear the bell ring!!! You won 2 Demon Claws [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); mysql_query("update users set crystals=crystals+2 where userid=$userid",$c); } } if ($_GET['action'] == 'dunk') { print"staffmember is currently in the Dunking Booth "; $bal=rand(1,10); if ($bal==1) { print "You throw the ball and miss so staffmember taunts you [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($bal==2) { print "You throw the ball and miss so staffmember taunts you [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($bal==3) { print "You throw the ball and miss so staffmember taunts you [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($bal==4) { print "You throw the ball and miss so staffmember taunts you [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($bal==5) { print "You throw the ball and miss so staffmember taunts you [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($bal==6) { print "You throw the ball and miss so staffmember taunts you [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($bal==7) { print "You throw the ball and miss so staffmember taunts you [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($bal==8) { print "You throw the ball and miss so staffmember taunts you [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($bal==9) { print "You throw the ball and miss so staffmember taunts you [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); } if ($bal==10) { print "You throw the ball and hit the target and staffmember goes for a dip!!! You won 5 crystals [url='carnival.php']Back[/url]"; mysql_query("update users set tickets=tickets-5 where userid=$userid",$c); mysql_query("update users set crystals=crystals+5 where userid=$userid",$c); } } ?> You can edit the prizes and the cost of the tickets as you see fit and in the dunking booth you will need to change everywhere it says staffmember to the name of one of your staff members and you should be all set. :mrgreen:
-
Re: [mccode] Mods 4 Sale - UPDATED POST I highly recomend the missions mod it works great :mrgreen:
-
Re: [mccode] Mods 4 Sale I will be getting in touch this week
-
Re: Trouble with installation. I have found that on some servers the files will only work when set to 644 and folders to 755
-
Re: exp gains Yep that seemed to fix it odd that it didnt happen till the server swithc though thanks a bunch +1 for you :-D
-
I upgraded to a faster server yesterday. and after they transferred my files over the exp started going crazy i would go way up then way down in the negative and people were leveling every click. any ideas as to what might be causing this? :|