Jump to content
MakeWebGames

Isomerizer

Members
  • Posts

    1,170
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Isomerizer

  1. A very small / simple random find mod, This mod will allow users to random find money around your game by clicking anywhere, They can find money once per day. The default chance of them finding money per click in 200/1, But this can be changed. Tested in my game works well, Crons / SQL stops people from finding more then once a day. Now that ive made afew small ones imma work on some cool large mods :) Open header.php and find:   [/b] "; (It will be near your voting thing) Under add:   $abc=rand(100,500); $bca=rand(1,100); $cba=rand(1,3); $aaa=rand(10,300); $bbb=rand(1,2); $randm=$abc+$bca*$cba+$aaa/$bbb; $rand=rand(1,200); $foundin=rand(1,3); if ($rand=="100" && $ir['find']=="0") { if ($foundin=="1") { event_add($userid, "While walking round the place you found a Box containing $$randm", $c); mysql_query("UPDATE users SET money=money+$randm WHERE userid=$userid", $c); mysql_query("UPDATE users SET find='1' WHERE userid=$userid", $c); exit; } if ($foundin=="2") { event_add($userid, "While walking round the place you found a Wallet containing $$randm", $c); mysql_query("UPDATE users SET money=money+$randm WHERE userid=$userid", $c); mysql_query("UPDATE users SET find='1' WHERE userid=$userid", $c); exit; } if ($foundin=="3") { event_add($userid, "While walking round the place you found a Show containing $$randm", $c); mysql_query("UPDATE users SET money=money+$randm WHERE userid=$userid", $c); mysql_query("UPDATE users SET find='1' WHERE userid=$userid", $c); exit; } }   Then open your cron file daysold.php and find   global $c;   Under add:   mysql_query("UPDATE users SET find='0'", $c);   Then run the SQL query:   ALTER TABLE `users` ADD `find` INT( 11 ) NOT NULL DEFAULT '0';   There, users can now find a random amoutn of cash once a day! Rands can be edited to suit how much money you want to be found
  2. Re: [Free] [v1] Quests (One Free Quest!)     Umm.., thats not right.   This is just kinda an example, them variables are not needed, unless you add more quests.
  3. Hi, this mod will add a quest feature and one free simple quest to your game, Additional more advanced quest's can be purchased, Want any? Contact me. Create a file called quests.php and add:   <?php /*----------------------------------------------------- -- A product of Isomerizer -- Copyright held 2007 by Isomerizer© -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $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(); $statusone=$ir['quest']; $statustwo=$ir['quest_2']; $statusthree=$ir['quest_3']; $quest=$_GET['quest']; if ($quest=="") { print "What quest you wanna start? "; print ""; print "Quest 1 "; print "Quest 2 "; print "Quest 3"; exit; } if ($quest=="1") { if ($statusone=="on" || $statustwo=="on" || $statusthree=="on") { print "You are already on a quest! "; print "Back"; exit; } if ($statusone=="done") { print "You have already done this quest! "; print "Back"; exit; } if ($statusone="noton") { print "You have started Quest 1! "; print "To complete this quest and be rewarded $500 you'll have to find the tribe leaders treasure! (Hint: Look for new links in Explore)"; mysql_query("UPDATE `users` SET `quest` = 'on' WHERE `userid` = $userid", $c); exit; } } if ($quest=="2") { if ($statusone=="on" || $statustwo=="on" || $statusthree=="on") { print "You are already on a quest! "; print "Back"; exit; } if ($statustwo=="done") { print "You have already done this quest! "; print "Back"; exit; } if ($statustwo="noton") { print "Quest will be added later"; //Add your quest code here mysql_query("UPDATE users SET quest_2=on WHERE userid=$userid"); } } if ($quest=="3") { if ($statusone=="on" || $statustwo=="on" || $statusthree=="on") { print "You are already on a quest! "; print "Back"; exit; } if ($statusthree=="done") { print "You have already done this quest! "; print "Back"; exit; } if ($statusthree="noton") { print "Quest will be added later"; //Add your quest code here mysql_query("UPDATE users SET quest_3=on WHERE userid=$userid"); } } $h->endpage(); ?>   Create another file called treasure.php with this code in it:   <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $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(); $statusone=$ir['quest']; if ($statusone!="on") { echo "Your not needed here!"; $h->endpage(); exit; } if ($statusone=="on") { $first=$_POST['first']; if ($first=="") { echo "Hello young one i am the witch doctor, And i will reward you with the tribes treasure if you answer this question correctly What is my first name? "; exit; } if ($first=="gilbert") { echo "Well done you have guessed my first name, Your quest is complete and you was rewarded $500"; mysql_query("UPDATE users SET money=money+500 WHERE userid=$userid", $c); mysql_query("UPDATE users SET quest='done' WHERE userid=$userid", $c); $h->endpage(); exit; } if ($first!="gilbert") { echo "Incorrect! Try Again"; $h->endpage(); exit; } } $h->endpage(); ?>   In explore.php add:   [url='quests.php']Quests[/url] "; if ($ir['quest']=="on") { print " Treasure"; }   Now thats done, time for SQL. Run this SQL query on your DB:   ALTER TABLE `users` ADD `quest` VARCHAR( 11 ) NOT NULL DEFAULT 'noton';   Thanks.
  4. Hi heres a small lil mod for you, a simple casino game. Users have a choice of picking 3 cups, They have 1 in 3 chance of getting it right and finding the ball and winning $50. Make a new file called "cups.php" with this code:   <?php /*----------------------------------------------------- -- A product of Isomerizer -- Copyright held 2007 by Isomerizer© -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $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(); $money=$ir['money']; $win=$money+50; $lose=$money-20; $action=mysql_real_escape_string($_GET['action']); if ($action=="") { print "You Approach 3 cups on a table, A wierd old guy says guess what cup has the ball under to win $50, it will cost $20."; print " Pick a Cup: "; print " Left Cup Center Cup Right Cup "; exit; } if ($action=="left") { if ($ir['money']<"20") { echo "Not enough money!"; $h->endpage(); exit; } $pickleft=rand(1,3); if ($pickleft=="2") { print "You picked left and found the ball under the cup! You won $50! Back"; mysql_query("UPDATE users SET money=$win WHERE userid=$userid", $c); exit; } else { MYSQL_QUERY("UPDATE users SET money=$lose WHERE userid=$userid", $c); print "You picked left but didnt find the ball under the cup! Better luck next time Back"; exit; } } if ($action="center") { if ($ir['money']<"20") { echo "Not enough money!"; $h->endpage(); exit; } $pickcenter=rand(1,3); if ($pickcenter=="1") { print "You picked Center and found the ball under the cup! You won $50! Back"; MYSQL_QUERY("UPDATE users SET money=$win WHERE userid=$userid", $c); exit; } else { print "You picked Center but didnt find the ball under the cup! Better luck next time Back"; MYSQL_QUERY("UPDATE users SET money=$lose WHERE userid=$userid", $c); exit; } } if ($action="right") if ($ir['money']<"20") { echo "Not enough money!"; $h->endpage(); exit; } $pickright=rand(1,3); { if ($pickright=="3") { print "You picked Right and found the ball under the cup! You won $50! Back"; MYSQL_QUERY("UPDATE users SET money=$win WHERE userid=$userid", $c); exit; } else { print "You picked Right but didnt find the ball under the cup! Better luck next time Back"; MYSQL_QUERY("UPDATE users SET money=$lose WHERE userid=$userid", $c); exit; } } $h->endpage(); ?>   Then open explore.php and find:   [url='roulette.php?tresde=$tresder']Roulette[/url]   After add:   [url='cups.php']Cups[/url]
  5. Re: [Free] [V1] Random Explore Mod   what he has there should work: $currentmoney=$ir['money']; $currentenergy=$ir['energy']; $rand=rand(1,10); $randd=rand(1,10); $moneyfound=$rand*$randd; $new=$currentmoney+$moneyfound; $energy=$currentenergy-1; see? Yep your right craig, it works fine... It wont replace your current money with the money you find.
  6. Hi i just made this simple rand script for a game im working on DBS v1, Should work with all DBS v1. It will cost users 8 energy to explore, finding a random amount of money $1-100. Rand's can be edited and energy can be changed. Works with mine. Ive seen similar mods like this, but this one is slightly different to the others and alot more simpler (noobie to php), So heres the code: This is my first mod, i hope it ok. :| Updates: -Errors fixed -More options Add this into a new page called explorecity.php   <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $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['hospital'] && $ir['prison']=="0") { if ($answer=="no" || $answer=="") { $answer=stripslashes($_POST['answer']); print " Do you wanna explore the deep city? [i](It will cost 8 energy)[/i] Yes No "; print " In the city you may find varios things, Beware...."; } if ($answer =="yes") { print " You Explore the deep city.... "; $currentmoney=$ir['money']; $currentenergy=$ir['energy']; $what=rand(1,14); $rand=rand(1,7); $randd=rand(1,7); $crand=rand(2,10); $moneyfound=$rand*$randd; $new=$currentmoney+$moneyfound; $energy=$currentenergy-1; $super=rand(1,1000); $smoney=$moneyfound*$rand+$super+$super+$super; $crystalz=$crand/2; if ($currentenergy<="0") { print "You do not have enough energy to explore"; exit; } if ($what=="1"||"6"||"7"||"8"||"9") { if ($super=="1") { print "You search the deep city finding $$smoney"; mysql_query("UPDATE users SET money=$smoney WHERE userid=$userid", $c); mysql_query("UPDATE users SET energy=$energy WHERE userid=$userid", $c); exit; } print "You search the deep city finding $$moneyfound.."; mysql_query("UPDATE users SET money=$new WHERE userid=$userid", $c); mysql_query("UPDATE users SET energy=$energy WHERE userid=$userid", $c); exit; } if ($what=="2"||"3"||"4"||"5") { print "You found $crystalz in a small hole!"; mysql_query("UPDATE users SET crystals=crystals+$crystalz WHERE userid=$userid", $c); mysql_query("UPDATE users SET energy=$energy WHERE userid=$userid", $c); exit; } if ($what=="10") { print "You fall into a hole"; event_add($userid, "Several hours later you were pulled out of the whole and sent to hospital", $c); mysql_query("UPDATE users SET hospital='30' WHERE userid=$userid", $c); mysql_query("UPDATE users SET HP='1' WHERE userid=$userid", $c); mysql_query("UPDATE users SET hospreadon='Fell into a hole' WHERE userid=$userid", $c); exit; } if ($what=="11") { print "You look round the city but find nothing"; mysql_query("UPDATE users SET energy=$energy WHERE userid=$userid", $c); exit; } if ($what=="12") { print "While walking around a witch doctor kindly agress to give you some power!"; mysql_query("UPDATE users SET energy=energy+(maxenergy/(12.5)) WHERE energymysql_query("UPDATE users SET energy=energy+(maxenergy/(6)) WHERE energy0 AND userid=$userid", $c); mysql_query("UPDATE users SET energy=maxenergy WHERE energy>maxenergy AND userid=$userid", $c); exit; } if ($what=="13") { print "Exploring this dark bart of this jungle suddenly gave you more bottle!"; mysql_query("UPDATE users SET energy=$energy WHERE userid=$userid", $c); mysql_query("UPDATE users SET brave=brave+((maxbrave/10)+0.5) WHERE bravemysql_query("UPDATE users SET brave=maxbrave WHERE brave>maxbrave AND userid=$userid", $c); exit; } if ($what=="14") { print "Exploring the city you find several pretty flowers, Making your will rise!"; mysql_query("UPDATE users SET will=will+10 WHERE willmysql_query("UPDATE users SET will=maxwill WHERE will>maxwill AND userid=$userid", $c); } } } else { print "You cannot explore while in hosp / prison"; exit; } $h->endpage(); ?>   In the file explore.php find [url='crystaltemple.php']Crystal Temple[/url]   Add after: [url='explorecity.php']Explore City[/url]
  7. Re: 4 year old smoker This video has been removed due to terms of use violation. :|
  8. Re: Jokes Well, You may think they are funny... But get ready to die of laughter. A Guy.... Walks into a bar.... And say...... .......Ouch!!! :lol: :lol: :lol: :lol: :lol:
  9. Re: 3 Word Game all went to...
  10. Re: Guess the next poster   I guess.... hmmmm..... Scarletto!
  11. Re: 3 Word Game smelt of egg
  12. Re: 3 Word Game like chicken noodles
  13. Re: ESPAÑOL hola, buenos dias me llamo isomerizer No comprendo spanish :? Can type very lil of it, can speak some tho :) Nan got apartment in spain, go out there now and then :-P
  14. Re: SPECIAL ATTACK legal ?
  15. Re: Counting (nr game) 1303 - this is the most exciting game... :roll:
  16. Re: 3 Word Game the orignal burgers
  17. Re: Free PR3 and PR4 Links Cool, Added my sites :)
  18. Re: 3 Word Game them to everyone
  19. Isomerizer

    Points

    You have 30 referred members equal to 300 points You have 357 points equal to $0.36 Anyone got more then that? :wink:
  20. Re: 3 Word Game were burger king
  21. Re: Why you code?   Same, im crap tbh, Learn a bit every now and then dont really try that hard, I allways forget bits too and find myself looking at google, But hey...who doesnt :wink: I code to try and teach myself new things, understand the code more. :)
  22. Isomerizer

    ???!

    Re: ???!   All i see are question marks, guess are computers dont support japanese text :|
  23. Re: Make Money from Your Site with these tips !   Well thats another rule i just broke damnit :p
  24. Re: what games do you play? Travian.co.uk :wink:
  25. Isomerizer

    Linux

    Re: Linux   Eh? Im confused, Noob At I.T :p. Its an application for windows? But my hardrive has nowt on, so how can i get that for windows? :? :? :?
×
×
  • Create New...