Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,667
  • Joined

  • Last visited

  • Days Won

    75

Everything posted by Uridium

  1. Replace your $db->query with this one $db->query("INSERT INTO gangs VALUES('','$name','$desc','','',0,0,100,$userid,$userid,5,0,0,'')"); or just copy and paste this   <?php include "globals.php"; if($ir['money'] < 500000){die("You don't have enough money. You need \$500,000."); } if($ir['gang']){die ("You're already in a gang!"); } if($_POST['submit']){$name=htmlspecialchars($_POST['name']); $desc=htmlspecialchars($_POST['desc']); $db->query("INSERT INTO gangs VALUES('','$name','$desc','','',0,0,100,$userid,$userid,5,0,0,'')"); $i=$db->insert_id(); $db->query("UPDATE users SET gang=$i,money=money-500000 where userid=$userid"); print "Gang created!"; }else { print "<h3> Create A Gang </h3><form action='creategang.php' method='post'><input type='hidden' name='submit' value='1' />Name:<input type='text' name='name' /> Description: <textarea name='desc' cols='40' rows='7'></textarea> <input type='submit' value='Create Gang for \$500,000' /></form>"; } $h->endpage(); ?>
  2. Well stated ;)
  3. i get quite a lot of Inbox messages asking where is a mod ive made so heres a list + links to mods ive created for CE/MWG. SORRY GUYS AND GALS THESE LINKS DONT WORK YET WILL UPDATE AND CHANGE THIS MESSAGE WHEN COMPLETED 1 = Maintenance Mode Mod (upgraded with more options) 2 = Education Mod with Clicks + Extras 3 = Move Images from one folder to another 4 = Game Owner Replenish Options 5 = Meta Tag Generator 6 = Christmas Advent Calendar 7 = Google Image Finder Ingame 8 = User Planner 9 = NPC Ingame Editor 10 = Hacking Attempts Logged 11 = Track Users IP 12 = Mobile Text Messaging [same as Mailbox] But Using Mobile Numbers 13 = Set Sell Price to House After its been Purchased 14 = File Creator + Ingame File Editor 15 = Abduct someone from Hospital 16 = Compare Items and Houses 17 = Send users Secret Messages 18 = Advanced Theme Creator 19 = Customise How Your Game Operates 20 = Updated Media Script add any Media to your site. 21 = Freeze + Reactivate a Users Bank Account 22 = Mailbox Quota = Set amount of emails sent per day 23 = Userlist and other Lists decend NEW 24 = Accept or Freeze Multi User Accounts 25 = Add Attack Timer to Attacks Im still Sifting through search pages so there will probably be more than there is here NOTE: These ADDITIONS are Free to use and Upgrade for your own use and MUST NOT be sold in any way either single or packaged. You have the right to Modify any of these ADDITIONS for your MCCODES game without prior notice to myself as long as any Copyright heading that ive placed on a ADDITION stays intact. JOINT WORK FOOTNOTE: Any ADDITIONS that have been deemed as a Joint effort between myself and other Writers. The right to Modify maybe flawed Until you have Consent from all joint parties that you intend to Alter/Add/Amend and source therein..
  4. The idea of the login page being as it is, is everytime someone views it something changes, as you see at the moment the Images change from cats, broomsticks, wands, witch and wizard hats so i really want to keep that concept. The music wont be staying on the site its just purely to keep me sane whilst looking at the damn page for so many hours aday...
  5. too be honest i havent got any further on this mod than what i first posted so expect a long wait im afraid.
  6. Registrant also owns crimevalley.com so i guess hes not really that clever just do a lookup for his email address [email protected]
  7. Redone entire layout so heopfully it should be ok now.
  8. Dmn thats a lot of errors ?
  9. this damn layout is peeing me off ive never known anything like it. Earlier i sent back to ftp a brand new CSS version totally rewriting the old one and every damn page i went to it showed the older version even though it wasnt there. I had to CTRL + F5 the damn screen each time to reload the new css...
  10. Good point i try to help and explain as much about my mods as possible to help the end user get the most from how it works and how to add to it.. in some cases if the script ive done is complex its better to just give the basics..
  11. Had the same problem as JDS on my testsite so made a few alterations.. Pointe = crystals fixed deadlink. changed last inventory chance to rip and ripa instead of ri and ria.. Works fine.. named file = searchdowntown.php   <?php include "globals.php"; ?> <style type="text/css"> p.together { line-height: .5em; text-align: left; } </style> <?php $crystalsf=0; $moneyf=0; $itemsf=0; $ritemf=0; $sritemf=0; print "<h3>Search Downtown</h3> <hr> "; $_GET['action'] = mysql_real_escape_string($_GET['action']); $search=$ir['searches']; if($_POST['search']>$search) { print("You do not have that many searches left. [url='searchdowntown.php'][i]Continue ...[/i][/url] "); return; } if ($_GET['action'] != 'search') { $search=$ir['searches']; print "You can search downtown 100 times a day. You have {$search} Searches left for today. You can find crystals, Money, Items or even Gain EXP. "; print " <form method=post action=searchdowntown.php?action=search><input type=hidden name=action value=search><input type='text' name='search' value='{$ir['searches']}'> <input type=submit value='Search'></form> "; } else { $search=abs((int) $_POST['search']); for($i=0;$i<$search;$i++) if ($ir['searches'] < 1) { print("You have searched all you can for today. Come back at newday. [url='explore.php'][i]back to city[/i][/url] "); return; } else { $g=$i+1; $chance = rand(1,10); ## $chance = random numbr between 1 and 15 -- diferrent posiblities for search $chancecrystals= rand (1,25); ## Chance to find crystals : tweak this to change the rate that you find crystals $chancemoney = rand (1,10); $chanceitem = rand (1,25); $chanceritem = rand (1,50); $chancesritem = rand (1,75); $query1=sprintf("UPDATE users SET searches=searches-1 where userid=$userid"); $db->query($query1); print"<p class='together'>[b] $g : [/b]"; if ($chance == 1) { print "Nothing here."; } ## CHANCE FOR crystals if ($chance == 2) { if ($chancecrystals < 23) { print "Nothing here."; } if ($chancecrystals == 23) { $gain = rand(1,15); print "You found [b]$gain[/b] crystals."; $query2=sprintf("UPDATE users SET crystals=crystals+$gain where userid=$userid"); $db->query($query2); $crystalsf=$crystalsf+$gain; } if ($chancecrystals == 24) { $gain = rand(1,10); print "You found [b]$gain[/b] crystals."; $query3=sprintf("UPDATE users SET crystals=crystals+$gain where userid=$userid"); $db->query($query3); $crystalsf=$crystalsf+$gain; } if ($chancecrystals == 25) { $gain = rand(1,5); print "You found [b]$gain[/b] crystals."; $query4=sprintf("UPDATE users SET crystals=crystals+$gain where userid=$userid"); $db->query($query4); $crystalsf=$crystalsf+$gain; } } ## CHANCE FOR MONEY if ($chance == 3) { if ($chancemoney < 7) { print "Nothing here."; } if ($chancemoney == 7) { $gain = rand(50,100)*(floor($ir['level']/2)+1); print "You found [b] \$$gain[/b]."; $query5=sprintf("update users set money=money+$gain where userid=$userid"); $db->query($query5); $moneyf=$moneyf+$gain; } if ($chancemoney == 8) { $gain = rand(75,150)*(floor($ir['level']/2)+1); print "You found [b] \$$gain[/b]."; $query6=sprintf("update users set money=money+$gain where userid=$userid"); $db->query($query6); $moneyf=$moneyf+$gain; } if ($chancemoney == 9) { $gain = rand(50,100)*(floor($ir['level']*2)); print "You found [b] \$$gain[/b]."; $query7=sprintf("update users set money=money+$gain where userid=$userid"); $db->query($query7); $moneyf=$moneyf+$gain; } if ($chancemoney == 10) { $gain = rand(150,300)*(floor($ir['level']/2)+1); print "You found [b] \$$gain[/b]."; $query8=sprintf("update users set money=money+$gain where userid=$userid"); $db->query($query8); $moneyf=$moneyf+$gain; } } if ($chance == 4) { print "Nothing here. "; } ########################### ## CHANCE FOR COMMON ITEM # ########################### if ($chance == 5) { if ($chanceitem == 22) { ## RANDOM NUMBER FOR COMMON ITEM srand ((double) microtime() * 10000000); // $ri = array("50","52","53","54","8","30");**EXAMPLE** $ci = array("1","2","3"); ## Add You common Items ID to this array $cia = array_rand($ci,1); $common = mysql_query("SELECT * FROM `items` WHERE `itmid`='".$ci[$cia]."' LIMIT 1"); $comi = mysql_fetch_array($common); $query9=sprintf("INSERT INTO inventory VALUES('',$ci[$cia],$userid,1)",$c); $db->query($query9); $itemsf = $itemsf +1; print " You found a/an {$comi['itmname']} !"; } else { echo "Nothing here."; } } if ($chance == 6) { print "Nothing here. "; } if ($chance == 7) { $gain = rand(50,100)*(floor($ir['level']*2)); print "You found [b] \$$gain[/b]."; $query10=sprintf("update users set money=money+$gain where userid=$userid"); $db->query($query10); $moneyf=$moneyf+$gain; } if ($chance == 8) { $gain = rand(50,100)*(floor($ir['level']/2)+1); print "You found [b] \$$gain[/b]."; $query11=sprintf("update users set money=money+$gain where userid=$userid"); $db->query($query11); $moneyf=$moneyf+$gain; } ########################## ## CHANCE FOR RARE ITEM ## ########################## if ($chance == 9) { if ($chanceritem == 25) { ## RANDOM NUMBER FOR RARE ITEM srand ((double) microtime() * 10000000); $ri = array("1","2","3"); ## Add Your Rare Items ID to this array $ria = array_rand($ri,1); $common = mysql_query("SELECT * FROM `items` WHERE `itmid`='".$ri[$ria]."' LIMIT 1"); $ri = mysql_fetch_array($common); $query12=sprintf("INSERT INTO inventory VALUES('',$ri[$ria],$userid,1)",$c); $db->query($query12); $ritemf = $ritemf + 1; print " You found a/an {$ri['itmname']} !"; } else { echo "Nothing here."; } } ################################ ## CHANCE FOR SUPER RARE ITEM ## ################################ if ($chance == 10) { if ($chancesritem == 25) { ## RANDOM NUMBER FOR SUPER RARE ITEM srand ((double) microtime() * 10000000); $rip = array("1","2","3"); ## Replace numbers with your Super Rare Items ID to this array $ripa = array_rand($ri,1); $common = mysql_query("SELECT * FROM `items` WHERE `itmid`='".$rip[$ripa]."' LIMIT 1"); $rip = mysql_fetch_array($common); $query13=sprintf("INSERT INTO inventory VALUES('',$rip[$ripa],$userid,1)",$c); $db->query($query13); $sritemf = $sritemf + 1; print " You found a/an {$rip['itmname']} !"; } else { echo "Nothing here."; } } } $moneyf=number_format($moneyf); print " <hr></p> You found a total of [b] $crystalsf [/b]crystals. You found a total of [b] \$$moneyf. [/b] You found a total of [b] $itemsf [/b] Items. "; if ($ritemf > 0){ print "[b] You found a total of[i] $ritemf [/i]Rare Items.[/b] "; } if ($sritemf > 0){ print "[b] You found a total of[i] $sritemf [/i] Super Rare Items.[/b] "; } print "<hr>"; if($ir['searches']==0) { print("You have searched all you can for today. Come back at newday. [url='explore.php'][i]back to city[/i][/url] "); return; } else { print " <form method=post action=searchdowntown.php?action=search><input type=hidden name=action value=search><input type='text' name='search' value=' {$ir['searches'] }'> <input type=submit value='Search'></form>"; } } $h->endpage(); ?>
  12. So it seems the WELCOME TO WIZWYCH block is the problem as ive noted the THANKS GOTO is always the correct size.... Should now hopefully be fixed...
  13. Id have to say MCCODES is like Lego you can keep building on it and improving it. I havent found a limit yet to which i can safely say "Ah well i can do no more" and i dont mean to make MCCODES sound big headed, But as an engine its very easy to use and Addons mods are very easy to implement. The lack of security will always be an issue but as people have proven this can be cured. Time patience and effort will see an owner have an exceptional game on their hands, Those that are just hoping to install setup and make public however wont get as many rewards.
  14. Just so the person who takes on this realises the scale there are 35 search areas each needing a 100 x100 Thumbnail image and a Different Image for the inside area at 600 x 600, There are 534 items in total each need an image or some can be replicated
  15. I have that problem as well sometimes when i hover mouse over sreen must be the image logo size or the css causing it
  16. I did want the background to have an image of a witch and a wziard face to face on each side of the screen with a lighting bolt between them
  17. I can't understand it i think its due to peoples Different Monitor size not just the resolution as for me it looks fine. If anyone sees it differently can you show me a pic please.. stating your Monitor size and res your using on it.
  18.   Sorry your not the type of person im looking for if your prepaired to make me wait at this stage. Id dread to think how long id be waiting once your employed... So i'll make your mind up for you :)
  19. http://www.wizwych.com
  20. As some people here know ive been busy building a game site... Based on Witches and Wizards its been a long toll but pleased to say the site will be ready for applications in about 1 - 2 weeks... I'll try answer some usual asked Questions.. Q = What makes your game stand out from the rest A = It doesnt as everyones game is Unique to them, However i hope this game is unique to players. Q = What makes it Unique then ? A = The game is based on 2 Characters and works well so characters can only interact on certain parts of the game, A prime example is that a Wizard cant have Items that a Witch may have. The witches Currency is different from that of the Wizard. Q = Does it have Searching Areas ? A = Yes the Areas follow a story so level 1 is the beginning and progresses as the user unlocks upper levels. The levels can be overtaken by other AI characters in the game and just to spice things up they can steal your levels or even make levels harder to search by removing Items you were used to finding and repllacing those items or outcomes with random outcomes.... Q = What are the weapons like ? A = There are no weapons at all in the game as its based on spells and conjuring potions for both characters. WizWych Anymore questions gizza shout...
  21. I didnt ask for a wizard just the cloak if your going to add more work for yourself your not going to get work done to deadlines.
  22. George send me a 200 x 200 any format sample image for the sake of this sample the theme for you to create would be a wizards cloak...
  23. Due to the near completion of my current project. I am seeking 1 or 2 Graphic artists for original concepts, artwork, Ideas if your a google images stealer then dont bother wasting my time. Your work should meet requirements of the projects art and MUST be original. Must Adhere to strict deadlines where possible... Payments for artwork depends on size and complexity. If your Interested in this opportunity send me 1 sample of your work no greater than 200 x 200. Not bothered if its water market but keep watermark transparency to a minimum... Send to my inbox on here with details of what made you create the image and what the image stands for to you,,,
  24. try changing <center>Property:</center> {$p['hNAME']} <center></center>"; to <center>Property:</center> {$ir['hNAME']} <center></center>";
  25. Have you setup your IPN redirect from Paypal as well. You will need to login to your paypal account HOW TO SET UP IPN FROM PAYPAL. 1 = From your account click on PROFILE 2 = On the next screen choose Instant Payment Notification Preferences 3 = On the next screen click CHOOSE IPN SETTINGS 4 =On next screen enter http://www.YOURWEBSITE.com/ipn_donator.php where it says Notification URL and click the button that says Receive IPN messages (Enabled) Then click SAVE. And your done.
×
×
  • Create New...