Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,667
  • Joined

  • Last visited

  • Days Won

    75

Everything posted by Uridium

  1. Try http://www.pcpin.com/ its easy configurable and shouldnt take too much to intergrate with mcc and its Free.. Dont bother with Flashchat as its laggy as hell if too many are in the room at one i found that 10 people caused mega lagg.
  2. I have only given a Guideline for the above DONT use the attack parts only the PART that needs adding which is this to attack.php $filename="youhit.txt";$words=file($filename);shuffle($words);$word=$words[0]; // THIS IS FOR YOU HIT THEM $filename="theyhit.txt";$words2=file($filename);shuffle($words2);$word2=$words2[0]; // THIS IS FOR THEY HIT YOU $filename="youfail.txt";$words3=file($filename);shuffle($words3);$word3=$words3[0]; // THIS IS FOR YOU MISSED THEM $filename="theyfail.txt";$words4=file($filename);shuffle($words4);$word4=$words4[0]; // THIS IS FOR THEY MISSED YOU And then use the Oucome messages where ever you want them Oh and upload all the TXT files to your server
  3. In the original V2 script when a user atacks or is being attacked its always a default message that appears example is below.. DONT USE THIS AS ITS FROM THE ORIGINAL V2 For you htting them print "<font color=red>{$_GET['nextstep']}. Using your {$r1['itmname']} you hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font> \n"; $_SESSION['attackdmg']+=$mydamage; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. Using {$myabbr} {$r1['itmname']} {$ir['username']} hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font> \n"; } else { print "<font color=red>{$_GET['nextstep']}. You tried to hit {$odata['username']} but missed ({$odata['hp']})</font> \n"; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. {$ir['username']} tried to hit {$odata['username']} but missed ({$odata['hp']})</font> \n"; }   And for them hitting you....   print "<font color=blue>{$ns}. Using $oabbr $wep {$odata['username']} hit you doing $dam damage ({$youdata['hp']})</font> \n"; $_SESSION['attacklog'].="<font color=blue>{$ns}. Using $oabbr $wep {$odata['username']} hit {$ir['username']} doing $dam damage ({$youdata['hp']})</font> \n"; } else { $ns=$_GET['nextstep']+1; print "<font color=red>{$ns}. {$odata['username']} tried to hit you but missed ({$youdata['hp']})</font> \n"; $_SESSION['attacklog'].="<font color=blue>{$ns}. {$odata['username']} tried to hit {$ir['username']} but missed ({$youdata['hp']})</font> \n"; }   So as you can see the wording is always the same unless you change it manualy in the script and even then youd need to do it every week so suers dont get bored... However this little mod can change all that you can write as many outcomes as you want and when the user is attacking they will see different outcomes after every hit.. so open your attack.php and add these under the include"globals.php";   $filename="youhit.txt";$words=file($filename);shuffle($words);$word=$words[0]; // THIS IS FOR YOU HIT THEM $filename="theyhit.txt";$words2=file($filename);shuffle($words2);$word2=$words2[0]; // THIS IS FOR THEY HIT YOU $filename="youfail.txt";$words3=file($filename);shuffle($words3);$word3=$words3[0]; // THIS IS FOR YOU MISSED THEM $filename="theyfail.txt";$words4=file($filename);shuffle($words4);$word4=$words4[0]; // THIS IS FOR THEY MISSED YOU   Now create 4 txt files with these names youhit.txt theyhit.txt youfail.txt theyfail.txt all you need to do now is add some wording to the files and where the YOU HIT is just use $word For YOU HIT and $word2 FOR THEY HIT and $word3 FOR YOU FAIL and $word4 for THEY FAIL.... You can do the exact same for the Event add just create another file and do as above :) EXAMPLE BELOW incase i confused anyone You Hitting them   print "<font color=red>{$_GET['nextstep']}. Using your {$r1['itmname']} you hit {$odata['username']} doing $mydamage damage ({$odata['hp']}) $word</font> \n"; $_SESSION['attackdmg']+=$mydamage; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. Using {$myabbr} {$r1['itmname']} {$ir['username']} hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font> \n"; } else { print "<font color=red>{$_GET['nextstep']}. You tried to hit {$odata['username']} but missed ({$odata['hp']})</font> \n"; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. {$ir['username']} tried to hit {$odata['username']} but missed ({$odata['hp']})</font> \n"; }   And for them hitting you....   print "<font color=blue>{$ns}. Using $oabbr $wep {$odata['username']} hit you doing $dam damage ({$youdata['hp']})</font> \n"; $_SESSION['attacklog'].="<font color=blue>{$ns}. Using $oabbr $wep {$odata['username']} hit {$ir['username']} doing $dam damage ({$youdata['hp']})</font> \n"; } else { $ns=$_GET['nextstep']+1; print "<font color=red>{$ns}. {$odata['username']} tried to hit you but missed ({$youdata['hp']})</font> \n"; $_SESSION['attacklog'].="<font color=blue>{$ns}. {$odata['username']} tried to hit {$ir['username']} but missed ({$youdata['hp']})</font> \n"; }
  4. Yep i can sell my mods for free cos ive said it and they always say whats words of mouth is binding so everyone pay me for FREE and i'll make mods for FREE ;)
  5. Not very often i post in here i just thought id have a change of scenery ;)
  6. send me a link to your site please
  7. Ive always found that the staff_items.php should Know wether an item is primary or secondary which would save time when equipping from the inventory
  8. Thanks for the Update Mcfarlin much Appreciated :) +10
  9. Quick update whilst im still messing with the gangs GANG CRIMES now have a random time so not all Gang times will be the same EXAMPLE 24 some crimes will take less than 24 hours and some may even take the full 24 hours to complete but will never go below 5 hours for a crime to start Open yourgang.php and look for the function gang_staff_orgcrimes and iverwrite with this one   function gang_staff_orgcrimes() { global $db,$ir,$c,$userid,$gangdata; $_POST['crime'] = abs((int) $_POST['crime']); if($_POST['crime']) { if($gangdata['gangCRIME'] != 0) { print "Your gang is already doing a crime!"; } else { $randtime= rand(5,24); $db->query("UPDATE gangs SET gangCRIME={$_POST['crime']},gangCHOURS=$randtime WHERE gangID={$ir['gang']}"); print "You have started to plan this crime. It will take $randtime hours."; } } else { print "<table class='table'><tr><th>Organised Crimes</th></tr><tr><td> <form action='yourgang.php?action=staff&act2=crimes' method='post'>Choose a crime that your gang should commit. <select name='crime' type='dropdown'>"; $cnt=$db->query("SELECT username FROM users WHERE gang={$gangdata['gangID']}"); $membs=$db->num_rows($cnt); $q=$db->query("SELECT * FROM orgcrimes WHERE ocUSERS <= $membs"); while($r=$db->fetch_row($q)) { print "<option value='{$r['ocID']}'>{$r['ocNAME']} ({$r['ocUSERS']} members needed)</option>"; } print "</select> <center><input type='submit' value='Commit' /></form></td></tr></table>"; } }   if you have made edits to your own Function be sure to add them back in $randtime amounts can be changed to suit your game
  10. The following 3 updates will allow a better Visual of Failed and Successful Events for Gang Crimes + Users will be sent an event of failed or successful Crimes.. and also a big thankyou to Magictallguy for his Very kind Addition so you can now see Which users are in which Warbase The image below is a view from the gang panel for Crime events SCRIPT for the above..... open cron_hour.php and over write from <?PHP to the end } anything after the final } should be added from your own script... IF youve made amendmets <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; require_once('global_func.php'); $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } $db->query("UPDATE gangs SET gangCHOURS=gangCHOURS-1 WHERE gangCRIME>0"); $db->query("UPDATE users SET turns=15"); $q=$db->query("SELECT g.*,oc.* FROM gangs g LEFT JOIN orgcrimes oc ON g.gangCRIME=oc.ocID WHERE g.gangCRIME > 0 AND g.gangCHOURS <= 0"); while($r=$db->fetch_row($q)) { $suc=rand(0,1); if($suc) { $log=$r['ocSTARTTEXT'].$r['ocSUCCTEXT']; $muny=(int) (rand($r['ocMINMONEY'],$r['ocMAXMONEY'])); $log=str_replace(array("{muny}","'"),array($muny,"''"),$log); $db->query("UPDATE gangs SET gangMONEY=gangMONEY+$muny,gangCRIME=0 WHERE gangID={$r['gangID']}"); $db->query("INSERT INTO oclogs VALUES ('',{$r['ocID']},{$r['gangID']}, '$log', 'success', $muny, '{$r['ocNAME']}', unix_timestamp())"); $i=$db->insert_id(); $db->query("INSERT INTO gangcrimesucevents VALUES('',{$r['gangID']},unix_timestamp(),\"<font color='green'>Your Gangs Organised Crime Was Successful $log Your Gang was rewarded With £$muny</font>\");"); $qm=$db->query("SELECT * FROM users WHERE gang={$r['gangID']}") or die(mysql_error()); while($rm=$db->fetch_row($qm)) { $db->query("INSERT INTO events VALUES('',{$rm['userid']},unix_timestamp(),0,\"<font color='green'>Your Gang Successfully Completed A Crime [url='yourgang.php?action=crimevents'][b]click here[/b][/url] to view the details..</font>\");"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$rm['userid']}"); } } else { $log=$r['ocSTARTTEXT'].$r['ocFAILTEXT']; $muny=0; $log=str_replace(array("{muny}","'"),array($muny,"''"),$log) or die(mysql_error()); $db->query("UPDATE gangs SET gangCRIME=0 WHERE gangID={$r['gangID']}") or die(mysql_error()); $db->query("INSERT INTO oclogs VALUES ('',{$r['ocID']},{$r['gangID']}, '$log', 'failure', $muny, '{$r['ocNAME']}', unix_timestamp())") or die(mysql_error()); $i=$db->insert_id(); $db->query("INSERT INTO gangcrimefailevents VALUES('',{$r['gangID']},unix_timestamp(),\"<font color='red'>Your Gangs Organised Crime Was a Failure $log Your Gang didnt Achieve any Cash Payment</font>\");"); $qm=$db->query("SELECT * FROM users WHERE gang={$r['gangID']}") or die(mysql_error()); while($rm=$db->fetch_row($qm)) { $db->query("INSERT INTO events VALUES('',{$rm['userid']},unix_timestamp(),0,\"<font color='red'>Your Gang Failed A Crime [url='yourgang.php?action=crimevents'][b]click here[/b][/url] to view the details..</font>\");"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$rm['userid']}"); } } } Now add these SQLS,,, [mysql]CREATE TABLE IF NOT EXISTS `gangcrimefailevents` ( `gevID` int(11) NOT NULL auto_increment, `gevGANG` int(11) NOT NULL default '0', `gevTIME` int(11) NOT NULL default '0', `gevTEXT` text NOT NULL, PRIMARY KEY (`gevID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; [/mysql] and [mysql]CREATE TABLE IF NOT EXISTS `gangcrimesucevents` ( `gevID` int(11) NOT NULL auto_increment, `gevGANG` int(11) NOT NULL default '0', `gevTIME` int(11) NOT NULL default '0', `gevTEXT` text NOT NULL, PRIMARY KEY (`gevID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; [/mysql] now open yourgang.php and add this case case "crimevents": cr_events(); break; And further down where the gang_index fundtion is add this to the links.. <td>[url='yourgang.php?action=crimevents']Crime Events[/url]</td><td>"; now create a new FUNCTION before the staff section function cr_events() { global $db,$ir,$c,$userid,$gangdata; print "<table cellspacing=1 class='table' width=50%><tr><td style='background-color:#CCCCCC;' width=70%>[url='yourgang.php?action=summary']>Summary[/url]</td><td style='background-color:#CCCCCC;' width =50%>[url='yourgang.php?action=donate']Donate<[/url]</td></tr><tr><td style='background-color:#CCCCCC;'>[url='yourgang.php?action=members']>Members[/url]</td><td style='background-color:#CCCCCC;' width =50%>[url='yourgang.php?action=crimes']Crimes<[/url]</td></tr><tr><td style='background-color:#CCCCCC;'>[url='yourgang.php?action=forums']>Forums[/url]</td><td style='background-color:#CCCCCC;' width =50%>[url='yourgang.php?action=leave']Leave<[/url]</td></tr> <tr><td style='background-color:#CCCCCC;'>[url='yourgang.php?action=atklogs']>Attack Logs[/url]</td><td style='background-color:#CCCCCC;'>[url='yourgang.php?action=crimevents']Crime Logs<[/url]</td><td style='background-color:#CCCCCC;'></td>"; if($gangdata['gangPRESIDENT'] == $userid || $gangdata['gangVICEPRES'] == $userid ) { print "<tr><td style='background-color:#CCCCCC;'>[url='yourgang.php?action=staff&act2=idx']>Staff Room[/url]</td><td style='background-color:#CCCCCC;' width =50%>[url='yourgang.php?action=staff&act2=crimes']Organise a crime<[/url] "; } else { print ""; } print "</td></tr></table> "; print " <table cellspacing=1 class='table' width=75%><tr style='background:gray;'><td align=center class='h'>Gang Crime Failed Events</td></tr> <tr></td></tr></table> "; global $db,$ir,$c,$userid,$gangdata; $q=$db->query("SELECT * FROM gangcrimefailevents WHERE gevGANG={$ir['gang']} ORDER BY gevTIME DESC LIMIT 10"); print "<table width=75% cellspacing=1 class='table'><tr style='background:gray;'><th>Time</th><th>Event</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td>".date('F j Y, g:i:s a',$r['gevTIME'])."</td><td>{$r['gevTEXT']}</td></tr>"; } print "</table> "; $q=$db->query("SELECT * FROM gangcrimesucevents WHERE gevGANG={$ir['gang']} ORDER BY gevTIME DESC LIMIT 10"); print " <table cellspacing=1 class='table' width=75%><tr style='background:gray;'><td align=center class='h'>Gang Crime Success Events</td></tr> <tr></td></tr></table> "; //$q=$db->query("SELECT * FROM gangcrimesucevents WHERE gevGANG={$ir['gang']} ORDER BY gevTIME DESC LIMIT 10"); print "<table width=75% cellspacing=1 class='table'><tr style='background:gray;'><th>Time</th><th>Event</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td>".date('F j Y, g:i:s a',$r['gevTIME'])."</td><td>{$r['gevTEXT']}</td></tr>"; } print "</table>"; } And thats it for that part.... The Below image is the NEWER layout of your WARS.. This will make it easier to locate and attack people in your warbase. if a user is in hospital or Jail then the ATTACK will change to Unavailable for that player..... For this part to work heres the script.... Create a new CASE case "wargroups": gang_warmemberlist(); break; And before the case change the URL for the Your gang is currently in so the URL is <a href='yourgang.php?action=wargroups'> Now add this function AFTER where the gang_warview function ends function gang_warmemberlist() { global $db,$ir,$c,$userid,$gangdata; echo "<h3>Gang War Members</h3>"; print "<table cellspacing='1' class='table'>"; echo "<tr>"; echo "<th>Gang</th>"; echo "<th>User</th>"; echo "<th>Level</th>"; echo "<th>Days In Gang</th>"; echo "<th>ACTION</th>"; echo "</tr>"; $select = sprintf( "SELECT gw.warTIME, g.gangID, g.gangNAME, u.userid, u.username, u.hospital, u.jail, u.level, u.daysingang " . "FROM gangwars gw " . "LEFT JOIN gangs g ON ((gw.warDECLARER = g.gangID) OR (gw.warDECLARED = g.gangID)) " . "LEFT JOIN users u ON (g.gangID = u.gang) " . "WHERE ((gw.warDECLARER = %1\$u) OR (gw.warDECLARED = %1\$u)) AND (g.gangID != %1\$u) " . "ORDER BY g.gangID ASC", $gangdata['gangID']); $query = $db->query($select); while($r = $db->fetch_row($query)) { echo "<tr>"; echo sprintf("<td>%s</td>", stripslashes(htmlspecialchars($r['gangNAME']))); echo sprintf("<td>[url='viewuser.php?u=%1\$u']%2\$s[/url] [%1\$u]</td>", $r['userid'], stripslashes(htmlspecialchars($r ['username']))); echo sprintf("<td>%s</td>", number_format($r['level'])); echo sprintf("<td>%s</td>", number_format($r['daysingang'])); echo sprintf("<td>%s</td>", (!$r['jail'] && !$r['hospital']) ? sprintf("[url='attack.php?ID=%u']Attack[/url]", $r['userid']) : "<span style='color:#444;'>[size="1"]<font color='red'>Unavailable[/size]</font></a>"); echo "</tr>"; } echo "</table> [url='yourgang.php']> Back[/url]"; } And your done Once i get all my edits together i will Post the script for the EVENTS first and then the WARBASE addition....
  11. Damn proves how often i actually use the admin side for logs lol but anyway what i was referring to was things like Players Gym Training and other things that dont get logged that players usually do
  12. PLAYER LOGS....... Why do the player logs just stop at cash and crystal transfers ? what could be added so staff can have a birds eye view of every players activities within the game. GANGS.............. Need i say more ? why is the whole concept of the gangs useless. what could be done to improve gameplay for gangs INVENTORY... what can be added to inventory to make it more user freindly. I could be here all day typing things out that annoy me about MCC but the above will suffice for now :)
  13. I thought all scripts on here were free or is it cos i never visit the paid section oops sorry guys :)
  14. Thats is also true Alain but not all Hosts provide users with access to the php.ini file so this i suppose will be just as good
  15. Whats been improved ? CRON AND SCRIPT The cron when run and the time has expired will send members of your gang an outcome message saying either success or failure Ive also added a new feature so users of your gang can view the last 10 Failures Successes as a neat table.. To send a EVENT open cron_hour.php find not cron day as i posted earlier sorry about that event_add("Your Gang's Organised Crime Succeeded. Go here to view the details."); overwrite with   db->query("INSERT INTO events VALUES('',{$rm['userid']},unix_timestamp(),0,\"<font color='green'>Your Gang Successfully completed A Crime [url='oclog.php?ID=$i'][b]click here[/b][/url] to view the details..</font>\");");   do the same for the Failure event and change colour to red instead of green   db->query("INSERT INTO events VALUES('',{$rm['userid']},unix_timestamp(),0,\"<font color='red'>Your Gang Failed A Crime [url='oclog.php?ID=$i'][b]click here[/b][/url] to view the details..</font>\");");   UPCOMING MOD Started work on the organised crimes so suers from other gangs can be held hostage or 1 of your own gang mebers held hostage if the crime is a failure. If your gang wins a Gang Crime on an opposing Gang then you can set a Ransom limit for the owner of the opposite gang to pay before their member is released. HOWEVER if your gang and the opposing gang Fail to come to Descision Regarding the member after 24 hours The the Criminal federation steps in and makes the choice for which results in your gang Gaining NO ransom and the opposing side Losing respect for failing to free their comrad ALSO if the opposing gang tries to make a suitable gesture to free their comrad and your gang fails to see reason after 24 hours then Your gang will lose Respect + the Hostage set free and the opposing side keeps their ransom...
  16. I could make you a DHTML version for the buttons and drop downs
  17. calendar Send me the link to your site Via PM please Just so everyone is aware its vital that all the images for the grid doors be placed into the images/xmas/ folder EXCEPT for the main numbered image which must stay in your root folder... ROOT meaning public_html folder
  18. What errors are you getting from the adventgraph.php file ?
  19. heres a little trick to make your SUBMIT BUTTONS become more impresive instead of the standard Button... >>> STANDARD BUTTON for BANK DEPOSITS <input type="submit" value="Deposit"/> >>> IMPROVED BUTTON <input type="submit" value="Deposit All £ or $'.($ir['money']).'" style="font-family: Arial; font-size: 10pt; letter-spacing: 1; color: #333333; border: 1px solid #FFCC33; background-color: #AEAEAE"/> Will give your Buttons a nice coloured EFFECT the AEAEAE is the inner part the 333333 is the outerpart cover or use this CSS is your header button { display:block; text-align:center; background: #AEAEAE; margin: 3px 0px 0px 0px; padding: 3px 10px 3px 10px; font-family: Helvetica, Verdana, Arial; font-size: 12px; border: solid #000000 1px; } then on the submit add <td class="button"> to your pages with submit buttons
  20. Whats the error your getting and also whats it not doing that is should be doing..
  21. sorry my fault i must have deleted the file from 1st post class this file adventgraph.php   <?PHP include "globals.php"; echo <<<EOF <script type="text/javascript"> /*********************************************** * IFRAME Scroller script- © Dynamic Drive DHTML code library ([url]www.dynamicdrive.com[/url]) * This notice MUST stay intact for legal use * Visit Dynamic Drive at [url]http://www.dynamicdrive.com/[/url] for full source code ***********************************************/ //specify path to your external page: var iframesrc="adventimage.php" //You may change most attributes of iframe tag below, such as width and height: document.write('<iframe id="datamain" src="'+iframesrc+'" width="500px" height="500px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>') </script> EOF; ?>
  22. cheers pal if the base64 is a problem i'll re post back to original
  23. is anyone using this mod/plugin or is it due to the use of the base64 ive used to encode it.. if so i'll replace with orginal script if its that, thats causing anyone not to use it.
  24. Your error message report an error on line 74 which is echo "You hand over \{$_POST['deposit']}crystals to be deposited, Remeber i mentioned stray \$ cause the $ to appear as a word well \ by itself can uncomment out a line so just for this case remove the \ from this line
  25. Gucci without helping too much so you may fix this yourself... remember your script is working with crystals and not money so any relevance to the $ needs to be carefully looked at we use \$ so the script doesnt get confused with a function. So that would be a good place to start...
×
×
  • Create New...