Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,657
  • Joined

  • Last visited

  • Days Won

    74

Everything posted by Uridium

  1. youd need to create 2 new items bith that can be combined so example ID 11 and ID 12 so ID 11 Creates ID 12 then ID 12 creates the final outcome ID 13 Just to NOTE ABOVE you dont need to create NEW ITEMS to make the combine feature woirk you could just Edit any exsisting items to make them combinable
  2. Thank you :)
  3. Legend try running the Hour cron Manaually to see what Errors it gives.. if its a Cron problem it will always show errors.. Also on the jobs i Noticed you have jobspecials and not jobs unless this is a different data section
  4. On tuesday the site was on and offline a total of 23 times whilst i was on MWG with the too many connections error took me 5 attempts to post the Combine mod And quess what whilst writing this ;) Fatal error: Connecting to MySQL server 'localhost' failed. You get more information about the problem in our knowledge base: http://www.woltlab.com/help/?code=1203 Information: error message: Connecting to MySQL server 'localhost' failed. error code: 1203 sql type: MySQLDatabase sql error: User makewebg_forums already has more than 'max_user_connections' active connections sql error number: 1203 sql version: file: /home/makewebg/public_html/wcf/lib/system/database/MySQLDatabase.class.php (31) php version: 5.2.14 wcf version: 1.1.2 (Tempest) date: Thu, 03 Mar 2011 13:01:13 +0000 request: /index.php?page=Index referer: http://makewebgames.io/index.php?form=Search&searchID=138052 Stacktrace: #0 /home/makewebg/public_html/wcf/lib/system/database/Database.class.php(78): MySQLDatabase->connect() #1 /home/makewebg/public_html/wcf/lib/system/WCF.class.php(296): Database->__construct(...) #2 /home/makewebg/public_html/wcf/lib/system/WCF.class.php(95): WCF->initDB() #3 /home/makewebg/public_html/global.php(18): WCF->__construct() #4 /home/makewebg/public_html/index.php(8): require_once('/home/makewebg/...') #5 {main}
  5. On tuesday the site was on and offline a total of 23 times whilst i was on MWG with the too many connections error took me 5 attempts to post the Combine mod
  6. Update this is the same but with additional amount of items needed to create a new one which was mentioned by newttster   <?php ////////////////////////////////////////////////////////////////////////////////////////// /* THIS MOD WILL ALLOW YOU TO COMBINE ITEMS AND WEAPONS TO CREATE OTHER ITEMS OR WEAPONS*/ ////////////////////// ILLUSIONS 2011 FOR MCCODES V2 ////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////// include "globals.php"; $_GET['ID'] = abs((int) $_GET['ID']); //Food if(!$_GET['ID']) { print "Invalid use of file"; } else { $i=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid"); if(mysql_num_rows($i) == 0) { print "Invalid item ID"; } $r=$db->fetch_row($i); if($r['itmid'] == 13) { print "You used your {$r['itmname']} to create a Master Potion"; item_add($userid, 2, 1); item_remove($userid, $r['inv_itemid'], 1); die(); $h->endpage(); } else { $p=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid"); $r=$db->fetch_row($p); if($r['itmid'] == 2) { print "You used your {$r['itmname']} to create a Wicked Potion"; item_add($userid, 13, 1); item_remove($userid, $r['inv_itemid'], 1); die(); $h->endpage(); } } // TOO KEEP ADDING COMBINES JUST KEEP ADDING THE BELOW CHANGING THE itmid too match Item Before Combining then change the item_add to the value of the item you want it to be combined too // dont forget to change this >> print "You used your {$r['itmname']} to create a Wicked Potion"; to be named for the item youve just created // // THE BELOW LINE HAS BEEN ADDED SO A USER NEEDS THE CORRECT NUMBER OF ITEMS TO MAKE A NEW ONE $p=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid"); $r=$db->fetch_row($p); if($r['itmid'] == 5 && $r['inv_qty'] < '50') { echo "you dont have 50 of this item to combine "; die(); } else { print "You used your {$r['itmname']} to create a New Axe"; item_add($userid, 1, 1); item_remove($userid, $r['inv_itemid'], 50); } } $h->endpage(); ?>
  7. For those that are Interested in how this script was made. I used the orig V2 itemuse.php took out what was not needed and replaced with the new code.. inventory.php i just renamed the use link to combine and staff.php just added 4 new lines and edited the sql to insert the new one... All in all this mod took about 30 mins to complete using waht was already in the scripts...
  8. Infact newttster your question before it is actually possible use the same principal as a bove BUT when deleting a item make it delete the amount you want then create a new combine for B and when thats combined it produces C :)
  9. Its a free mod do with it as you wish just leave the copright intact and your fine :)
  10. The probably is matey but this script doesnt support multiple items Had a nightmare just getting 1 item to work :)
  11. This script may come in handy for those who wish to add something like BROKEN AXE as an Item and when Combined Creates a New Axe in replace of the old one or a Rusty Jail Key into a Usable Jail Key
  12. Redone a bit of this so now you can combine both Items and Weapons to create something else. SQL [mysql]ALTER TABLE `items` ADD `combine` INT( 11 ) NOT NULL DEFAULT '0' AFTER `itmbuyable` ; [/mysql] Now open up inventory.php look for   if($i['effect1_on'] || $i['effect2_on'] || $i['effect3_on']) { print " <a href='itemuse.php?ID={$i['inv_id']}'>Use</a>"; }   and underneath add   if($i['combine'] > 0) { print " [a href='combine.php?ID={$i['inv_id']}'>Combine</a>"; }   now open up staff_items.php in the adding new item part look for   Item Sell Value: <input type='text' name='itmsellprice' />   Then Add underneath   Combine With Item ID: <input type='text' name='combine' />   in the INSERT query for adding an item add ,{$_POST['combine']} After the ,{$_POST['itemsellprice']} Now goto the edit Item find Item Type: ".itemtype_dropdown($c,'itmtype',$itemi['itmtype'])."   And underneath add   Combined With.: <input type='text' name='combine' value='{$itemi['combine']}' />   in the edit item part for the INSERT find ,$itmbuy, and next to it put '{$_POST['combine']}', now call this file combine.php   <?php ////////////////////////////////////////////////////////////////////////////////////////// /* THIS MOD WILL ALLOW YOU TO COMBINE ITEMS AND WEAPONS TO CREATE OTHER ITEMS OR WEAPONS*/ ////////////////////// ILLUSIONS 2011 FOR MCCODES V2 ////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////// include "globals.php"; $_GET['ID'] = abs((int) $_GET['ID']); //Food if(!$_GET['ID']) { print "Invalid use of file"; } else { $i=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid"); if(mysql_num_rows($i) == 0) { print "Invalid item ID"; } $r=$db->fetch_row($i); if($r['itmid'] == 13) { print "You used your {$r['itmname']} to create a Master Potion"; item_add($userid, 2, 1); item_remove($userid, $r['inv_itemid'], 1); $h->endpage(); } else { $p=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid"); $r=$db->fetch_row($p); if($r['itmid'] == 2) { print "You used your {$r['itmname']} to create a Wicked Potion"; item_add($userid, 13, 1); item_remove($userid, $r['inv_itemid'], 1); } } // TOO KEEP ADDING COMBINES JUST KEEP ADDING THE BELOW CHANGING THE itmid too match Item Before Combining then change the item_add to the value of the item you want it to be combined too // dont forget to change this >> print "You used your {$r['itmname']} to create a Wicked Potion"; to be named for the item youve just created // $p=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid"); $r=$db->fetch_row($p); if($r['itmid'] == 5) { print "You used your {$r['itmname']} to create a Sword"; item_add($userid, 1, 1); item_remove($userid, $r['inv_itemid'], 1); } } $h->endpage(); ?>   Now when your created or editing an Item in the combine part put the ID number of the item you want it to be combined with from the staff_items.php file
  13. Yes its been a while since i posted a decent mod but iv'e been busy on other things.. So decided to dust off the old MCC and think up a new Idea This Idea is quite simple make an Item Combinable to create another Item Im still writing the script which is going pretty well but what this does is For example if a user has a potion in their inventory that can be combined a new link appears to combine with another item, The combined item is then placed into the users Inventory to make the first potion more powerful. I'll post script once ive tested it... ***** THIS IS NOT A QUANTIFYING SCRIPT ****
  14. Im not going to mock your mod as its probably taken ages too make. But there are far cheaper ones and free ones out there that can do a lot more...
  15. From what im assuming you mean if a player equips a mighty sword then it adds 0.8 to his Guard from the userstats and when unequipped it goes back to its original Stat before item was equipped. The table layout for Items and stats would need a drastic change for this to work Looking at the usual MCC table for items this cant be done.
  16. Mystical if it shows in index page as a single image it will do on the page you want it to show not all placements are the same scripting so needs editing to make it work
  17. You havent listened to any of the Ideas people have given you on here and v2.0.3 is just another mcc version fit for the dump.. Nothing major has been done and even the Exploits are still there. Your making something that used to be decent look worse..
  18. Look at radioplayer.php you can turn scrolling on by setting the scrolling="no" to scrolling="yes"
  19. hehehe this post has set me chuckle box off lol Nicely done Danny lol
  20. Steve keep me informed after youve added the nw page and tell me if your still having issues..
  21. Is anyone who is using NOTEPAD++ Experiencing any weired behaviour I recently sent 2 files back to my server and localhost that i spent hours writing on NOTEPAD++ only to find the most annoying error going which was something on the lines of T_Uncapsed_White_space line 1 line 1 being <?PHP reading up on this error i thought i may have dropped the <?PHP to line 2 but nope it was deffo on line 1.. Whn i copied and pasted the entire script into Notepad instead of being layed out neatly it was full of these [ ] << Square blocks all over the place.. After chatting with My old pal Crimgame he worked out that NOTEPAD++ was at fault and the solution was to copy the entire code again on pastebin delete the file i had just made and paste back into a newly opened NOTEPAD++ file...
  22. This mod will allow a radio player to sit at bottom of your screen so you can listen and still use links without interupting the music... Call this file radioplayer.php   <?PHP // Illusions Radio player 2011 echo <<<EOT <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><script type="text/javascript">var columntype=""; var defaultsetting=""; function getCurrentSetting(){ if (document.body) return (document.body.cols)? document.body.cols : document.body.rows } function setframevalue(coltype, settingvalue){ if (coltype=="rows") document.body.rows=settingvalue; else if (coltype=="cols") document.body.cols=settingvalue } function resizeFrame(contractsetting){ if (getCurrentSetting()!=defaultsetting) setframevalue(columntype, defaultsetting); else setframevalue(columntype, contractsetting) } function init(){ if (!document.all && !document.getElementById) return; if (document.body!=null){ columntype=(document.body.cols)? "cols" : "rows"; defaultsetting=(document.body.cols)? document.body.cols : document.body.rows } else setTimeout("init()",100) } setTimeout("init()",100) </script> </head><frameset rows="96%,*" framespacing="0" frameborder="no" border="0"><frame name="top" src="index.php" scrolling="no" frameborder="0" noresize><frameset rows="-1,*" frameborder="0" border="0" framespacing="0"><frameset cols="-1,*" frameborder="0" border="0" framespacing="0"><frame name="logo" src="radio.php" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" border="0" framespacing="0"> <frameset rows="-1,*"><frame name="radio" src="radio.php" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" border="0" framespacing="0"><frame name="radio" src="radio.php"marginwidth="0" marginheight="0" scrolling="no" frameborder="0" border="0" framespacing="0"> </frameset> </frameset><frame name="main" src="radio.php" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" border="0" framespacing="0"></frameset> </frameset><noframes> <body> EOT; ?>   Now call this file radio.php   <?php echo <<<EOT <STYLE type="text/css"> iframe { position: absolute; top: -45px; } </STYLE> EOT; print"<center>"; print <<<EOF <body bgcolor="#000000"> <object id="MediaPlayer1" width=180 height=50 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft? Windows? Media Player components..." type="application/x-oleobject" align="middle"> <param name="FileName" value="http://listen.soundstreamradio.com:8000/"> <param name="AutoStart" value="False"> <param name="ShowStatusBar" value="True"> <param name="DefaultFrame" value="mainFrame"> <embed type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/" src="http://listen.soundstreamradio.com:8000/" align="middle" width=176 height=144 defaultframe="rightFrame" showstatusbar=true> </embed> </object> EOF; ?>   SCREENIE
  23. Yes its possible to keep the player playing whilst opening other pages I wrote a script for this for my Ambient sounds for games...
  24. This mod will let your users know that they cannot equip a primary or secondary weapon in a slot thats already equipped yep very small but could just make your game look a bit neater.. call this file equip_weapon.php <?php include "globals.php"; $_GET['ID'] = abs((int) $_GET['ID']); $id=$db->query("SELECT iv.*,it.* FROM inventory iv LEFT JOIN items it ON iv.inv_itemid=it.itmid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid LIMIT 1"); if($db->num_rows($id)==0) { print "Invalid item ID"; $h->endpage(); exit; } else { $r=$db->fetch_row($id); } if(!$r['weapon']) { print "This item cannot be equipped to this slot."; $h->endpage(); exit; } if($_GET['type']) { if(!in_array($_GET['type'], array("equip_primary", "equip_secondary"))) { print "This slot ID is not valid."; $h->endpage(); exit; } if ($_GET['type'] == "equip_primary" && $ir[equip_primary] > 0) { print "You currently have the <font size=4>[/b]{$r['itmname']}[/b]</font> item equipped for this primary slot [[url='inventory.php'] RETURN TO INVENTORY[/url]] OR [[url='unequip.php?type=equip_secondary'] Unequip your {$r['itmname']}[/url]]"; exit(); } else { if ($_GET['type'] == "equip_secondary" && $ir[equip_secondary] > 0) { print "You currently have the <font size=4>[/b]{$r['itmname']}[/b]</font> item equipped for this secondary slot [[url='inventory.php'] RETURN TO INVENTORY[/url]] OR [[url='unequip.php?type=equip_secondary'] Unequip your {$r['itmname']}[/url]]"; exit(); } } if($ir[$_GET['type']]) { item_add($userid, $ir[$_GET['type']], 1); } item_remove($userid, $r['itmid'], 1); $db->query("UPDATE users SET {$_GET['type']} = {$r['itmid']} WHERE userid={$userid}"); print "Item {$r['itmname']} equipped successfully. [[url='inventory.php'] RETURN TO INVENTORY[/url]]"; } else { print "<h3>Equip Weapon</h3><hr /> <form action='equip_weapon.php' method='get'> <input type='hidden' name='ID' value='{$_GET['ID']}' /> Please choose the slot to equip {$r['itmname']} to, if there is already a weapon in that slot, it will be removed back to your inventory. <input type='radio' name='type' value='equip_primary' checked='checked' /> Primary <input type='radio' name='type' value='equip_secondary' /> Secondary <input type='submit' value='Equip Weapon' /></form>"; } $h->endpage(); ?> SCREENIE
  25. Small Update in the image above thats says ( List of Available course ) ive redone it so it shows them amount of times a particular course has been taken..
×
×
  • Create New...