Jump to content
MakeWebGames

deano1986

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by deano1986

  1. Hey all first of all i would like to say a big thank you for getting this site back up and running.... Is there anyone out there who has tried of even got a facebook type chat implemented into mccodes v2
  2. ello buddy cant seem to get this working
  3. i need help hahaha if the offer is still open..
  4. any takers on this please???
  5. thanx for the reply again but as you have probably gathered im not really a grpg coder never had the pleasure of working with it.. But going with what you have said if there is anybody out there willing to make the the .php files containing the what i need ie.. edituser.php, maillog.php, pointxfer.php im willing to pay for this to be done but of course any free help will be much appreciated ..
  6. the reason i said mccodes is because i have been using that for a while and think it would be good to have the same kind of staff panel or similar and thanx for the reply... But now i come to think of it i will have to add new .php files such as edituser.php and other things ..
  7. well i want to be able to view mails monitor cash and points transfer edit users create new crimes add new don packages things like that
  8. hey all im very new and excited to GRPG modding never bothered with it only with mccodes but i have noticed the staff panel is nothing like mccodes staff panel ... so im looking for someone to help me out or point me in the right direction to get one that basically is the same or near or nuf the same as mccodes with edit user and things like that in it kind regards and thanx in advanced...
  9. deano1986

    hey all

    hi all i have very limited experience in coding but trying hard to come to grips with it what im in need of is css im currently using mccodes v2 standard one and need a new one all help would be appreciated for the person/s to point me in the right direction
  10. Hi all been a while since i been on here but was getting back into the swing of coding well trying hahah!! anyways was looking for a little help I was playing a game the other day and was made a moderator for the game and noticed they had a mod that allows admin and mods to change anything ie stats cash crystals profile sig quotes anything from the profile page can this be done on mccodes v2 or not... all help is much appreciated
  11. Tested works exactly how i want it to thank you very much man +100000000000 for your time and patience
  12. GREAT thank you so much going to put it on and check it out give me a sec man...
  13. thanx man thats why i want it bang on exactly how i want it so the bad things dont happen also wanting it as a donator gym aswell not just a basic gym plus gives the intent to donate for the privaledge hahah
  14. Insults dont go very far with me so dont try and insult me over some forum half witt.... But I have played many games that have exp gains whilst training in the gym. And thought I woudl give it a go see how it went... As most people with mccodes have point,crystal,bullet gym i wanted to have something a little different ..
  15. donator page i have Yea thanx got that up and running lol But its still basic looking really thanx alot need something that looks alot better than the basic mccodes v2 version
  16. Well its to gain exp whilst training that is the whole point 8|
  17. yea it works great for what you have done but it doesnt affect the actual users exp for them to gain game lvls it gain exp for a totaly different thing and there is no way of converting it to user exp
  18. right ok got it on and working but how do i convert the gym lvl to the actual player lvl? I was kinda hopeing for it to alter the actuall exp to gain lvls
  19. ok man thanx i think i will just put the origonal gym back up for themean time nynas gym is great :D
  20. gym exp See the problem im having its different..
  21. gym exp the gym edit will be dificult as im using nyna's gym and is totaly custom...     <?php $macropage = "gym.php"; include "globals.php"; global $db, $h, $ir, $userid; if ($ir['hospital']) { echo " <font color=black>You cannot access the gym whilst in hospital</font></p>"; $h->endpage(); exit; } $prefs = isset($_SESSION['gymprefs']) ? $_SESSION['gymprefs'] : array('what' => "all", 'expend' => "100%"); $what = $prefs['what']; $expend = $prefs['expend']; $message = false; $sql = sprintf("SELECT us.strength, us.agility, us.guard, us.labour, u.energy, u.will, u.jail FROM users u LEFT JOIN userstats us ON (u.userid = us.userid) WHERE (u.userid = %u) AND (u.user_level < 3)", $userid); $row = $db->fetch_row($db->query($sql)); $formID = preg_replace("`^([0-9A-F]{8})([0-9A-F]{4})([0-9A-F]{4})([0-9A-F]{4})([0-9A-F]{12})$`ms", "{\\1-\\2-\\3-\\4-\\5}", strtoupper(md5(serialize(array(session_id(), "Gym", null))))); if (isset($_POST['formID']) && is_string($_POST['formID']) && ($_POST['formID'] === $formID)) { $what = isset($_POST['what']) && is_string($_POST['what']) && preg_match("`^((all)|(strength)|(agility)|(guard)|(labour))$`ims", $_POST['what']) ? strtolower($_POST['what']) : $what; $expend = isset($_POST['expend']) && is_string($_POST['expend']) && preg_match("`^((100%)|(75%)|(50%)|(25%)|(value))$`ims", $_POST['expend']) ? strtolower($_POST['expend']) : $expend; $value = isset($_POST['value']) && is_string($_POST['value']) && preg_match("`^\d+$`ims", $_POST['value']) ? @intval($_POST['value']) : 0; $sql = sprintf("SELECT energy, will FROM users WHERE (userid = %u)", $userid); $rs = $db->query($sql); $info = $db->fetch_row($rs); $energy = $row['energy']; $will = $row['will']; $exp = $row['exp']; switch ($expend) { case "100%": $value = $row['energy']; break; case "75%": $value = $row['energy'] * 0.75; break; case "50%": $value = $row['energy'] * 0.50; break; case "25%": $value = $row['energy'] * 0.25; break; default: break; } $value = floor($value); if ($value > $row['energy']) $message = "<span style='color:#C00;'><font color=black>You don't have enough energy</font></span>"; else { $prefs = array('what' => $what, 'expend' => $expend); $gain = 0; $will = $row['will']; for ($i = 0; $i < $value; $i++) { $gain += mt_rand(1, 3) / mt_rand(500, 900) * mt_rand(500, 900) * (($will + 20) / 150); $will = max(0, $will - mt_rand(1, 3)); } if ($row['jail']) $gain *= 0.5; $row['will'] = floor($will); $row['energy'] -= $value; switch ($what) { case "all": $message = sprintf("<span style='color:#070;'><font color=black>You gain %s in each stat</font></span>", number_format($gain * 0.25, 2)); $row['strength'] += $gain * 0.25; $row['agility'] += $gain * 0.25; $row['guard'] += $gain * 0.25; $row['labour'] += $gain * 0.25; break; case "strength": $message = sprintf("<span style='color:#070;'><font color=black>You gain %s in strength</font></span>", number_format($gain, 2)); $row['strength'] += $gain; break; case "agility": $message = sprintf("<span style='color:#070;'><font color=black>You gain %s in agility</font></span>", number_format($gain, 2)); $row['agility'] += $gain; break; case "guard": $message = sprintf("<span style='color:#070;'><font color=black>You gain %s in guard</font></span>", number_format($gain, 2)); $row['guard'] += $gain; break; case "labour": $message = sprintf("<span style='color:#070;'><font color=black>You gain %s in labour</font></span>", number_format($gain, 2)); $row['labour'] += $gain; break; } $sql1 = sprintf("UPDATE userstats SET strength = %.6f, agility = %.6f, guard = %.6f, labour = %.6f WHERE (userid = %u)", $row['strength'], $row['agility'], $row['guard'], $row['labour'], $userid); $sql2 = sprintf("UPDATE users SET will = %u, energy = %d WHERE (userid = %u)", $row['will'], $row['energy'], $userid); $db->query($sql1); $db->query($sql2); } $_SESSION['gymprefs'] = $prefs; } $row['ranks'] = array ( 'strength' => $db->fetch_single($db->query(sprintf("SELECT COUNT(userid) FROM userstats WHERE (strength > %.6f)", $row['strength']))) + 1, 'agility' => $db->fetch_single($db->query(sprintf("SELECT COUNT(userid) FROM userstats WHERE (agility > %.6f)", $row['agility']))) + 1, 'guard' => $db->fetch_single($db->query(sprintf("SELECT COUNT(userid) FROM userstats WHERE (guard > %.6f)", $row['guard']))) + 1, 'labour' => $db->fetch_single($db->query(sprintf("SELECT COUNT(userid) FROM userstats WHERE (labour > %.6f)", $row['labour']))) + 1, 'total' => $db->fetch_single($db->query(sprintf("SELECT COUNT(userid) FROM userstats WHERE (strength + agility + guard + labour > %.6f)", $row['strength'] + $row['agility'] + $row['guard'] + $row['labour']))) + 1, ); echo "<style type='text/css'>"; echo "#gym { }"; echo "#gym h3, #gym p { }"; echo "#gym table { width:90%;border-collapse:collapse; }"; echo "#gym th { border:solid 1px #333;background:#F6F6F6 url(th.png);padding:3px;color:#333; }"; echo "#gym td { border:solid 1px #CCC;padding:3px;color:#CCC; }"; echo "#gym { }"; echo "</style>"; echo "<div id='gym'>"; echo sprintf("<h3><font color=black>%sGym</font></h3>", $ir['jail'] ? "Jail " : ""); if ($message) echo sprintf(" %s</p>", $message); echo "<form name='train' id='train' action='gym.php' method='post' style='padding:0;margin:0;'>"; echo sprintf("<input type='hidden' name='formID' value='%s' />", $formID); echo "<table cellpadding='0' cellspacing='0'>"; echo "<tr>"; echo "<th class='sub' style='width:50%;'><font color=black>Train</font></th>"; echo "<th class='sub' style='width:50%;'><font color=black>Expend</font></th>"; echo "</tr>"; echo "<tr>"; echo "<td style='line-height:200%;'>"; echo sprintf("<input type='radio' name='what' id='what0' value='all' %sstyle='vertical-align:middle;' /><label for='what0' style='cursor:pointer;'><font color=black>All (25%% energy in each) [Rank #%s]</label></font> ", $what === "all" ? "checked='checked' " : "", number_format($row['ranks']['total'])); echo sprintf("<input type='radio' name='what' id='what1' value='strength' %sstyle='vertical-align:middle;' /><label for='what1' style='cursor:pointer;'><font color=black>Strength (%s) [Rank #%s]</label></font> ", $what === "strength" ? "checked='checked' " : "", number_format($row['strength']), number_format($row['ranks']['strength'])); echo sprintf("<input type='radio' name='what' id='what2' value='agility' %sstyle='vertical-align:middle;' /><label for='what2' style='cursor:pointer;'><font color=black>Agility (%s) [Rank #%s]</label></font> ", $what === "agility" ? "checked='checked' " : "", number_format($row['agility']), number_format($row['ranks']['agility'])); echo sprintf("<input type='radio' name='what' id='what3' value='guard' %sstyle='vertical-align:middle;' /><label for='what3' style='cursor:pointer;'><font color=black>Guard (%s) [Rank #%s]</label></font> ", $what === "guard" ? "checked='checked' " : "", number_format($row['guard']), number_format($row['ranks']['guard'])); echo sprintf("<input type='radio' name='what' id='what4' value='labour' %sstyle='vertical-align:middle;' /><label for='what4' style='cursor:pointer;'><font color=black>Labour (%s) [Rank #%s]</label></font> ", $what === "labour" ? "checked='checked' " : "", number_format($row['labour']), number_format($row['ranks']['labour'])); echo "</td>"; echo "<td style='line-height:200%;'>"; echo sprintf("<input type='radio' name='expend' id='expend0' value='100%%' %sstyle='vertical-align:middle;' /><label for='expend0' style='cursor:pointer;'><font color=black>100%% Energy</label></font> ", $expend === "100%" ? "checked='checked' " : ""); echo sprintf("<input type='radio' name='expend' id='expend1' value='75%%' %sstyle='vertical-align:middle;' /><label for='expend1' style='cursor:pointer;'><font color=black>75%% Energy</label></font> ", $expend === "75%" ? "checked='checked' " : ""); echo sprintf("<input type='radio' name='expend' id='expend2' value='50%%' %sstyle='vertical-align:middle;' /><label for='expend2' style='cursor:pointer;'><font color=black>50%% Energy</label></font> ", $expend === "50%" ? "checked='checked' " : ""); echo sprintf("<input type='radio' name='expend' id='expend3' value='25%%' %sstyle='vertical-align:middle;' /><label for='expend3' style='cursor:pointer;'><font color=black>25%% Energy</label></font> ", $expend === "25%" ? "checked='checked' " : ""); echo sprintf("<input type='radio' name='expend' id='expend4' value='value' %sstyle='vertical-align:middle;' onclick='document.train.value.focus();' /><label for='expend4' style='cursor:pointer;'><input type='text' id='value' name='value' value='{$row['energy']}' size='8' onfocus='this.select();' /> Energy</label> ", $expend === "value" ? "checked='checked' " : "");//(C)2008,Nyna echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2' style='text-align:center;padding:6px;'>"; echo "<input type='submit' name='submit' value='Train' />"; echo "</td>"; echo "</tr>"; echo "</table>"; echo "</form>"; echo "</div>"; $h->endpage(); ?>
  22. Hey all me again thank you very much for all your help guys but im looking for another mod if you can help.. I need a mod to make donation packs from staff panel searched high and low but still can not find one any help will be apriceated....
  23. yea sniko is coding me it for me to try i will let you guys know how it goes
  24.     Its what im basing my game on to be honest i want all my members to gain lvls whilst training
  25. Hey all Love all the mods you guys have helped me with thank you all in advanced....But im looking for something a little different.. I want a mod that will let you gain exp asyou train example you can lvl up from training.. Can this be done or has it been done if so please link me thanx again...
×
×
  • Create New...