-
Posts
113 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Everything posted by rednspirited
-
I have azh code, it's similar to gl codes. The issue I have is with the travel map. Cities are lined up in a diagonal line. I have 23 cities, I might add more later. i would like to get them so they are randomly placed throughout the map. was wondering how i could go about that. Already figured out how to change the spacing placement so it would show all 23, but making it random, I am unsure. This is the section of code I am dealing with. $locationsCount = count($locations); foreach ($locations as $key => $location) { $hook = new Hook("alterModuleData"); $hookData = array( "module" => "travel", "user" => $this->user, "data" => $location ); $location = $hook->run($hookData, 1)["data"]; if (!isset($location['L_map']) || !file_exists($location['L_map'])) { $map = "themes/"._setting('theme')."/assets/img/pages/travel/map.png"; }else{ $map = $location['L_map']; } list($width, $height) = getimagesize($map); if ($location['L_leader'] > 0) { $gang = new Gang($location['L_leader']); $gangs = $gang->getGang(); $leader = $gangs['name']; }else{ $leader = "None"; } $data[] = array( "location" => $location["L_name"], "color" => $location['L_color'], "x" => ($width / $locationsCount) * ($location['L_id'] / $locationsCount) + (75 * ($key + 1)), "y" => ($height / ($locationsCount)) * ($location['L_id'] / $locationsCount) + (35 * ($key + 1)), "cost" => $location["L_cost"], "id" => $location["L_id"], "leader" => $leader, "cooldown" => $this->timeLeft($location["L_cooldown"]) ); } I changed the 75 to 40 and the 35 to 20 in these lines "x" => ($width / $locationsCount) * ($location['L_id'] / $locationsCount) + (75 * ($key + 1)), "y" => ($height / ($locationsCount)) * ($location['L_id'] / $locationsCount) + (35 * ($key + 1)),
-
MCCODES for 2025 comparing the 2 Contenders
rednspirited replied to Uridium's topic in General Discussion
i have used uridium's installer file above and still get stalled at that point -
MCCODES for 2025 comparing the 2 Contenders
rednspirited replied to Uridium's topic in General Discussion
i still get this and i have edited and used a couple different installer files but i get held up at this point -
Ok ty sorry to be pushy
-
Is @Daveon vacation? I can not access the cpannel so i can use the hosting services.
-
is there a charge to transfer a domain?
-
this is an even better version than the first one thank you
-
love this attack system works great and its more to what i was looking for. and thanks for being prompt in responding to my questions 🙂
-
idea for a mod to be a staff note page for each player. this way you can know if there has been a warning given to a player or staff permission for more than one account on same ip. makes it easier to know whos actions to check for cash machining. who has cause a problem in the past etc.. have a small amount i can put for it who knows maybe others would like it too.
-
hmmm hadnt noticed that one 🙂 ty
-
also need a way to add npcs to the game Another good thing would be a comments section on players page
-
well i will be getting the premium this week and i love the free version have some old mods and was wondering if they need updating or not? lots are yours but some are not im just waiting to see what doesn't come with premium.
-
thanks i was told that got it done. i didnt think to check those files
-
got the free version to start and get the ball rolling on some things as far as word changes but i can not find where Boss & Underboss are to change them to what i need can anyone help me?
-
ok will get it next pay day thanks 🙂
-
when will the premium version be for sale?
-
[Promotion][Ends May 1st] Buy 1 get 1 of Equal Value
rednspirited replied to Sim's topic in Gangster Legends
nice i like your mods hope you keep at it 🙂 -
is there someone who could make a mod so you get levels and ranks. like level 1-10 be a say noob then level 11-20 be a beginner, or what ever rank suits your game.
-
this sounds great to me i like that idea and you got thanksgiving in the us in november.
-
help on inserting something in the header mc codes v2
rednspirited replied to rednspirited's topic in Modification Support
Ty -
my header is no the basic header and i can not figure out where to add this $propq=$db->query("SELECT * FROM `proposals` WHERE `proposal_to` = '$ir[userid]'"); if(mysqli_num_rows($propq)) { echo "<center><font size=15 color=green><a href='viewproposals.php'>You currently have some new/pending proposals, click here to view them.</a></font></center><br />"; } into my header <?php /** * MCCodes Version 2.0.5b * Copyright (C) 2005-2012 Dabomstew * All rights reserved. * * Redistribution of this code in any form is prohibited, except in * the specific cases set out in the MCCodes Customer License. * * This code license may be used to run one (1) game. * A game is defined as the set of users and other game database data, * so you are permitted to create alternative clients for your game. * * If you did not obtain this code from MCCodes.com, you are in all likelihood * using it illegally. Please contact MCCodes to discuss licensing options * in this case. * * File: header.php * Signature: 52c201ce2e8c549ae70d2936473022f0 * Date: Fri, 20 Apr 12 08:50:30 +0000 */ class headers { function startheaders() { global $ir, $set; echo <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" text color="blue" /> <link href="css/game.css" type="text/css" rel="stylesheet" /> <title>{$set['game_name']}</title> </head> <body> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center"> EOF; } function userdata($ir, $lv, $fm, $cm, $dosessh = 1) { global $db, $c, $userid, $set; $IP = $db->escape($_SERVER['REMOTE_ADDR']); $db->query( "UPDATE `users` SET `laston` = {$_SERVER['REQUEST_TIME']}, `lastip` = '$IP' WHERE `userid` = $userid"); if (!$ir['email']) { global $domain; die( "<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if (!isset($_SESSION['attacking'])) { $_SESSION['attacking'] = 0; } if ($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { echo "You lost all your EXP for running from the fight."; $db->query( "UPDATE `users` SET `exp` = 0, `attacking` = 0 WHERE `userid` = $userid"); $_SESSION['attacking'] = 0; } $enperc = min((int) ($ir['energy'] / $ir['maxenergy'] * 100), 100); $wiperc = min((int) ($ir['will'] / $ir['maxwill'] * 100), 100); $experc = min((int) ($ir['exp'] / $ir['exp_needed'] * 100), 100); $brperc = min((int) ($ir['brave'] / $ir['maxbrave'] * 100), 100); $hpperc = min((int) ($ir['hp'] / $ir['maxhp'] * 100), 100); $enopp = 100 - $enperc; $wiopp = 100 - $wiperc; $exopp = 100 - $experc; $bropp = 100 - $brperc; $hpopp = 100 - $hpperc; $d = ""; $u = $ir['username']; if ($ir['donatordays']) { $u = "<span style='color: red;'>{$ir['username']}</span>"; $d = "<img src='donator.gif' alt='Donator: {$ir['donatordays']} Days Left' title='Donator: {$ir['donatordays']} Days Left' />"; } $gn = ""; global $staffpage; $bgcolor = '000000'; print <<<OUT <img src="title.jpg" alt="Mccodes Version 2" /><br /> <!-- Begin Main Content --> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" bgcolor="#$bgcolor" valign="top"> <!-- Side Panel --> <b>Name:</b> $gn{$u} [{$ir['userid']}] $d<br /> <b>Money:</b> {$fm}<br /> <b>Level:</b> {$ir['level']}<br /> <b>Crystals:</b> {$ir['crystals']}<br /> [<a href='logout.php'>Emergency Logout</a>] <hr /> <b>Energy:</b> {$enperc}%<br /> <img src='greenbar.png' width='$enperc' height='10' /><img src='redbar.png' width='$enopp' height='10' /><br /> <b>Will:</b> {$wiperc}%<br /> <img src='bluebar.png' width='$wiperc' height='10' /><img src='redbar.png' width='$wiopp' height='10' /><br /> <b>Brave:</b> {$ir['brave']}/{$ir['maxbrave']}<br /> <img src='yellowbar.png' width='$brperc' height='10' /><img src='redbar.png' width='$bropp' height='10' /><br /> <b>EXP:</b> {$experc}%<br /> <img src='navybar.png' width='$experc' height='10' /><img src='redbar.png' width='$exopp' height='10' /><br /> <b>Health:</b> {$hpperc}%<br /> <img src='greenbar.png' width='$hpperc' height='10' /><img src='redbar.png' width='$hpopp' height='10' /><br /><hr /> <!-- Links --> OUT; if ($ir['fedjail'] > 0) { $q = $db->query( "SELECT * FROM `fedjail` WHERE `fed_userid` = $userid"); $r = $db->fetch_row($q); die( "<span style='font-weight: bold; color:red;'> You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s).<br /> Reason: {$r['fed_reason']} </span></body></html>"); } if (file_exists('ipbans/' . $IP)) { die( "<span style='font-weight: bold; color:red;'> Your IP has been banned from {$set['game_name']}, there is no way around this. </span></body></html>"); } } function menuarea() { define('jdsf45tji', true, true); include 'mainmenu.php'; global $ir, $c; $bgcolor = '000000'; print '</td><td width="2" class="linegrad" bgcolor="#' . $bgcolor . '"> </td><td width="80%" bgcolor="#' . $bgcolor . '" valign="top"><br /><center>'; if ($ir['hospital']) { echo "<b>NB:</b> You are currently in hospital for {$ir['hospital']} minutes.<br />"; } if ($ir['jail']) { echo "<b>NB:</b> You are currently in jail for {$ir['jail']} minutes.<br />"; } echo "<a href='donate.php'><b>Donate to {$set['game_name']} now for game benefits!</b></a><br />"; } function smenuarea() { define('jdsf45tji', true, true); include 'smenu.php'; global $ir, $c; $bgcolor = '000000'; print '</td><td width="2" class="linegrad" bgcolor="#' . $bgcolor . '"> </td><td width="80%" bgcolor="#' . $bgcolor . '" valign="top"><center>'; } function endpage() { global $db, $ir; $query_extra = ''; if (isset($_GET['mysqldebug']) && $ir['user_level'] == 2) { $query_extra = '<br />' . implode('<br />', $db->queries); } print <<<OUT </center> </td> </tr> </table></td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> {$db->num_queries} queries{$query_extra}</body> </html> OUT; } } can anyone help please and thank in advance
-
🙂 a quick witty reply 🤣
-
🤣 nice word play
-
it was coding got it fixed by adding in a small bit of logic 🙂 the php version was what i checked first
-
Will try when I'm off work funny thing is it added items then just stopped doing it