Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,667
  • Joined

  • Last visited

  • Days Won

    75

Everything posted by Uridium

  1. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... Hmm strange it worked fine for me try adding them manually one by one see if that cures it..
  2. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... Me personally id do it so there would never be any text events in a script and it was all editable from the admin panel lol thats me thinking outside the box yet again lol
  3. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... Is anyone using this mod as i was planning on expanding it but if its not of a great purpose too anyone i can concentrate on something else..
  4. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... The same principal applies for any other parts you want to change just create a new TABLE NAME and follow the above steps
  5. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... SQLS   ALTER TABLE `settings` ADD `game_currency` VARCHAR ( 255 ) not null default 'Crystals', ALTER TABLE `settings` ADD `game_value` VARCHAR ( 255 ) not null default '$', ALTER TABLE `settings` ADD `game_energy` VARCHAR ( 255 ) not null default 'Energy', ALTER TABLE `settings` ADD `game_will` VARCHAR ( 255 ) not null default 'Will', ALTER TABLE `settings` ADD `game_brave` VARCHAR ( 255 ) not null default 'Brave', ALTER TABLE `settings` ADD `game_exp` VARCHAR ( 255 ) not null default 'Exp', ALTER TABLE `settings` ADD `game_health` VARCHAR ( 255 ) not null default 'Health';   Now open up staff.php find Paypal Address: <input type='text' name='paypal' value='{$set['paypal']}' />   and underneath add these   Game Currency: <input type='text' name='game_currency' value='{$set['game_currency']}' /> Game Currency Symbol: <input type='text' name='game_value' value='{$set['game_value']}' /> Change ENERGY to.: <input type='text' name='game_energy' value='{$set['game_energy']}' /> Change WILL to.: <input type='text' name='game_will' value='{$set['game_will']}' /> Change BRAVE to.: <input type='text' name='game_brave' value='{$set['game_brave']}' /> Change EXP to.: <input type='text' name='game_exp' value='{$set['game_exp']}' /> Change HEALTH to.: <input type='text' name='game_health' value='{$set['game_health']}' />   on the ssame file on line 131-136 overwrite with this one   print "</select> {$set['game_energy']} Refill Price {$set['game_currency']}: <input type='text' name='ct_refillprice' value='{$set['ct_refillprice']}' /> IQ per {$set['game_currency']}: <input type='text' name='ct_iqpercrys' value='{$set['ct_iqpercrys']}' /> Money per {$set['game_currency']}: <input type='text' name='ct_moneypercrys' value='{$set['ct_moneypercrys']}' /> {$set['game_will']} Potion Item: ".item_dropdown($c, "willp_item", $set['willp_item'])." <input type='submit' value='Update Settings' /></form>";   now open up global_func.php this edit kindly done by POG1 Over write   <?php function money_formatter($muny,$symb='?') { return $symb.number_format($muny); }   with this one   <?php function money_formatter($value) { global $set; return $set['game_value'].' '. number_format($value); }   all you need to do now is change all text mentions of crystals to {$set['game_currency']} DONT alter the ones from any SQLS just the ones after PRINT or ECHO and for the Bars just change as you did with the Crystals ammending the $set name for each.
  6. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... in about 5 - 10 mins
  7. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... Yes once youve made the ammendments to each script then what ever item you put example BLOOD POINTS instead of WILL that will become BLOOD POINTS on all scripts that used to read as WILL
  8. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... I will post the working script once ive got the SQLS sorted...
  9. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... few screen shots From Install From Admin Panel From Users View test site link Reg and i will give you staff staus to test out the features... http://www.testsite.murder-city.com Can I just mention a big thanks to POG1 for his help with the removal of $ to let users choose their own currency symbol
  10. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... Thats correct but once youve done my inserts to the scripts for that you will never need to alter the files again
  11. I was bored stupid so set about the installer.php on mcc v2 i was fed up of seeing crystals energy, brave, willl, $ signs and wanted to make a version where Admins can alter any of the things they like And ive cracked it Admin can alter anything they want via the admin panel change the name of the bars to suit them, the currency even renaming links all without altering any files ( FRESH INSTALL ONLY ) I'll put up a working demo site for you to view and use. And thanks to Crazy-T for the hosting :)
  12. Re: money_formatter on MCCODES V2 Cheers POG that worked 1st attempt :) Thank you +1
  13. im working on a way so staff can alter currency via the staff panel rather than files problem is i cant get this line to do what i want it to do.. function money_formatter($muny,$symb='$') i want to remove the $ and make it so it selects a pre-defined outcome... function money_formatter($muny,$symb='{$set['game_currency']}') i get parse errors with this method however so what woud be the correct way to do it. Parse error: syntax error, unexpected T_STRING, expecting ')' in C:\xampp\htdocs\global_func.php on line 2
  14. Re: [NEED Help][MCCODES V2] Item Pic Mod   ? Ive just given you 2 options.
  15. Re: [NEED Help][MCCODES V2] Item Pic Mod if you want learn mcc use this bit...... on line 24 add <th>Image</th> before the <th>Item</th> Then on line 32 change colspan to 6 not 5 The reason for 6 is because your adding a one new row so if you add another it would become 7 and so on ---------------------------------------------------------------------------------------------------   if you cant be bothered then copy and paste this one.   <?php include "globals.php"; $_GET['shop'] = abs((int) $_GET['shop']); if(!$_GET['shop']) { print "You begin looking through town and you see a few shops. "; $q=$db->query("SELECT * FROM shops WHERE shopLOCATION={$ir['location']}"); print "<table width=85% cellspacing=1 class='table'><tr style='background: gray;'><th>Shop</th><th>Description</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td>[url='shops.php?shop={$r[']{$r['shopNAME']}[/url]</td><td>{$r['shopDESCRIPTION']}</td></tr>"; } print "</table>"; } else { $sd=$db->query("SELECT * FROM shops WHERE shopID={$_GET['shop']}"); if($db->num_rows($sd)) { $shopdata=$db->fetch_row($sd); if($shopdata['shopLOCATION'] == $ir['location']) { print "Browsing items at [b]{$shopdata['shopNAME']}...[/b] <table cellspacing=1 class='table'><tr style='background: gray;'><th>Image</th><th>Item</th><th>Description</th><th>Price</th><th>Sell Price</th><th>Buy</th></tr>"; $qtwo=$db->query("SELECT si.*,i.*,it.* FROM shopitems si LEFT JOIN items i ON si.sitemITEMID=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE si.sitemSHOP={$_GET['shop']} ORDER BY i.itmtype ASC, i.itmbuyprice ASC, i.itmname ASC"); $lt=""; while($r=$db->fetch_row($qtwo)) { if($lt!=$r['itmtypename']) { $lt=$r['itmtypename']; print "\n<tr style='background: gray;'><th colspan=5>{$lt}</th></tr>"; } print "\n<tr><td>{$r['itmname']}</td><td>[img=itmpics/{$r[]</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; } print "</table>"; } else { print "You are trying to access a shop in another city!"; } } else { print "You are trying to access an invalid shop!"; } } $h->endpage(); ?>   this will set the image next to the ITEM
  16. Re: [v2]Diamond market [v2] Just bare in mind though Casey adding more items like GEMS would mean altering more than 1 script.. example there must be about 15 scripts within MCC that are related to crystals so to alter one would mean to alter all :)
  17. Re: [v2]Diamond market [v2] Not a problem i noticed on your that atleast yours points to the right tables whereas MDK's was still pointing to CR.. +1 though
  18. Re: [Mccodes V2] Streets I typed streets in the search and found quite a few full running files. im sure i posted a working version with an image and users can fight NPC's
  19. Re: [v2]Diamond market [v2] [REMOVED] so the Lemmings dont follow :)
  20. Re: [V2]My own v2 Explore page [V2] if its any consolation silent at least you reached 26 posts on one topic lol
  21. Re: [V2]My own v2 Explore page [V2]   your not winning aany brownie points here silent.. take heed you wont win this one older postees are more respected :)
  22. Re: [V2]My own v2 Explore page [V2] Regardless of what hes done let him learn from this issue and drop the complaining
  23. Re: [V2]Register page with 1 account per ip [V2]   Welcome to the world of MCCodes ;)
  24. Re: [MOD V2] Send Users Secret Messages....   dont forget to add a link to your mainmenu.php pointing to secretmess.php so your users can decode the message that you send them :)
  25. Re: [MOD V2] Send Users Secret Messages.... There probably isnt any point to it. but its here and its available for anyone to use and make something from it :)
×
×
  • Create New...