
Samurai Legend
Members-
Posts
483 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
Events
Everything posted by Samurai Legend
-
Thanks everyone, [uSER=53425]Magictallguy[/uSER] method has worked. :)
-
For some reason, when my cron gives me this error. Which I do not know why it is not working. QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' `strikes` = `strikes` + IF(`job` > 0, 1, 0), `mailban` = `mai' at line 5 Query was UPDATE `users` SET `daysinclan` = `daysinclan` + IF(`clan` > 0, 1, 0), `daysold` = `daysold` + 1, `course_daily_clicks` = 0, `wof_spins` = 0, `work` = 0, `claimedloginbonus` = 0, `boxes` = IF(`donatordays` > 0, `boxes` + 25, `boxes` + 10) WHERE `boxes` < 25, `strikes` = `strikes` + IF(`job` > 0, 1, 0), `mailban` = `mailban` - IF(`mailban` > 0, 1, 0), `donatordays` = `donatordays` - IF(`donatordays` > 0, 1, 0), `cdays` = `cdays` - IF(`course` > 0, 1, 0), `steps` = IF(`donatordays` > 0, `steps` + 100, `steps` + 50) WHERE `steps` < 250, `married_days` = IF(`married`, `married_days` + 1, 0), `bankmoney` = `bankmoney` + IF(`bankmoney` > 0, `bankmoney` / 50, 0), `cybermoney` = `cybermoney` + IF(`cybermoney` > 0, `cybermoney` / 100 * 7, 0) $user_update_query = "UPDATE `users` SET `daysinclan` = `daysinclan` + IF(`clan` > 0, 1, 0), `daysold` = `daysold` + 1, `course_daily_clicks` = 0, `wof_spins` = 0, `work` = 0, `claimedloginbonus` = 0, `boxes` = IF(`donatordays` > 0, `boxes` + 25, `boxes` + 10) WHERE `boxes` < 25, `strikes` = `strikes` + IF(`job` > 0, 1, 0), `mailban` = `mailban` - IF(`mailban` > 0, 1, 0), `donatordays` = `donatordays` - IF(`donatordays` > 0, 1, 0), `cdays` = `cdays` - IF(`course` > 0, 1, 0), `steps` = IF(`donatordays` > 0, `steps` + 100, `steps` + 50) WHERE `steps` < 250, `married_days` = IF(`married`, `married_days` + 1, 0), `bankmoney` = `bankmoney` + IF(`bankmoney` > 0, `bankmoney` / 50, 0), `cybermoney` = `cybermoney` + IF(`cybermoney` > 0, `cybermoney` / 100 * 7, 0)"; $db->query($user_update_query);
-
Sorry for some reason this really confuses me. How do I know what percentage it is added onto the energy field for the users? I want to add 25% for donator and 10% for normal users. `energy` = IF(`donatordays` > 0, LEAST(`energy` + (`maxenergy` / 6), `maxenergy`), LEAST(`energy` + (`maxenergy` / 12.5), `maxenergy`))
-
The errors are now fixed. Thank you for reporting it @G7470 @Dominion
-
Hello everyone, as few of yous know. I have been working on SamuraiAssault for few months. I believe the game has potential due to last year where I made an incredible amount of money. However, being 16 I had situations were it has made the game really hard to maintain which resulted in the game loosing members. This time around when I release it, it will be better than last year due to finding my faults. I have gain knowledge from my mistakes. This will allow me to make SamuraiAssault a better game. I need people to help me out. I want to learn how to keep a good game, how I can bring in members to the game. I don't want it to die out like last time. I tried using Kyles Economy Manager however, I am finding it hard using it. So in the future I will be using it. If people can register and help me out with anything such as finding bugs, errors. Anything which will help me improve the game. I will be happy. Feedback and reviews will be good. User: Demo Pass: Demo http://samuraiassault.com/register.php
-
Hello, where there player advertisements are. I want a scroll bar to be there instead of the page just expanding. <?php require('globals.php'); echo "<h3><u>Newspaper</u></h3>"; if(!isset($_GET['action'])) $_GET['action'] = ''; switch($_GET['action']) { case 'add': addPage($db, $ir); break; case 'delete': deletePage($db, $ir); break; default: index($db, $ir, $sa); break; } function index($db, $ir, $sa) { $q = $db->query("SELECT `content` FROM `papercontent` LIMIT 1"); $content= $db->fetch_single($q, 0, 0); ?><hr width='95%'> <table width = '95%' cellspacing = '1' class='table'> <tr> <td><a href='job.php'>Your Job</a></td> <td><a href='gym.php'>Local Gym</a></td> <td><a href='halloffame.php'>Hall Of Fame</a></td> <td><a href='clancentral.php'>Clans</a></td> <td><a href='brothel.php'>Brothel</a></td> </tr> <tr> <td><a href='userlist.php'>Local Residents</a></td> <td><a href='stats.php'>City Stats</a></td> <td><a href='usersonline.php'>Users Online</a></td> <td><a href='clanwars.php'>Current Wars</a></td> <td><a href='estate.php'>Estate</a></td> </tr></table><hr width='95%'> <table width = '95%' cellspacing = '1' class='scroll'> <tr> <th colspan = '5'>Player Advertisements | <a href='newspaper.php?action=add'><b>Buy An Advertisement (¥10,000)</b></a><?php echo in_array($ir['user_level'], [2, 3]) ? " | <a href=newspaper.php?action=all><b>[DELETE ALL]</b></a>" : ''; ?></th></tr> <tr> <td colspan = '5'> <?php $anpdata = $db->query("SELECT * FROM `news_paper` ORDER BY `npTIME` DESC"); if(!$db->num_rows($anpdata)) echo "<hr/>Only ¥10,000!</b> - Create an advertisement for ¥10,000."; else while($npdata = $db->fetch_row($anpdata)) { $time = date('F j',$npdata['npTIME']); echo "<hr/><p align = 'left'><b>Ad By: <a href='viewuser.php?u={$npdata['npADDER']}'><font color = 'white'>" . $sa->username($npdata['npADDER']) . "</font> [{$npdata['npADDER']}]</a> | Added On: {$time}</b>"; echo in_array($ir['user_level'], [2, 3]) ? " | <a href=newspaper.php?action=npID&npID={$npdata['npID']}><b>[DELETE]</b></a>" : ''; echo "<br/><b><u>{$npdata['npTITLE']}</u></b></p> <p align = 'left'>{$npdata['npBODY']}</p>"; } ?><hr/></table><hr width = '95%'><table width = '95%' cellspacing = '1' class = 'table'><tr> <th>Game News</th></tr><tr><td><div style='text-align: left; padding-left: 5px;'><?php echo $content;?></div></td></tr></table><hr width='95%'><a href = 'index.php'>>Go Home</a><hr width='95%'><?php } I tried classing the table in css to add the scroll bar. However, it is not working. I also used div and p to class out the css however, it is still not working. .scrollit { overflow:scroll; height:100px; }
-
I am selling a copy of Samurai Assault for only $150 which is really cheap. I seriously need the money this is why it is going for cheap. However, you will be getting a different template from my game. Which can be seen below. I have made over £3,000 within three months. However, my education got in my way which made me inactive and a result of loosing members. I seriously need the $150. Please someone help me out here.
-
This is meant to return my domain name. However, it returns "localhost" I have not altered the code. So I don't know why this is happening. Can someone please help me out. function determine_game_urlbase() { $domain = $_SERVER['HTTP_HOST']; $turi = $_SERVER['REQUEST_URI']; $turiq = ''; for ($t = strlen($turi) - 1; $t >= 0; $t--) { if ($turi[$t] != '/') { $turiq = $turi[$t] . $turiq; } else { break; } } $turiq = '/' . $turiq; if ($turiq == '/') { $domain .= substr($turi, 0, -1); } else { $domain .= str_replace($turiq, '', $turi); } return $domain; }
-
[uSER=65530]Coly010[/uSER] - Yes deffo lol and thank you very much [uSER=68711]KyleMassacre[/uSER] - Haha, was being stupid and thank you very much for this modification! I now know how to work it out hahahah
-
[uSER=68711]KyleMassacre[/uSER] - I get an error A critical error has occurred, and page execution has stopped. Below are the details: PHP Recoverable Error: Object of class MoneyManager could not be converted to string (4096) Action taken: Line executed: /home/******/public_html/******/test.php:8 <?php require_once('globals.php'); require_once('class/class_economy_system.php'); $mm = new MoneyManager(1000); $cm = new CoinManager(10); echo $mm; ?> Don't know how to fix it or am I doing something wrong?
-
[uSER=68711]KyleMassacre[/uSER] CREATE TABLE IF NOT EXISTS `economy_settings` ( `type` VARCHAR (20) NOT NULL, `total_ingame_start` decimal(38,0) NOT NULL, `total_ingame` decimal(38,0) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; Primary Key: id doesn't exist
-
[uSER=68711]KyleMassacre[/uSER] - Thank you for the share! Will try to get this running on my gameI seriously love your idea. One more question. I still don't understand how I should make the module update the crimes payout etc
-
[uSER=68711]KyleMassacre[/uSER] - I love your idea! But how would you do something to decide on the crimes payouts, item price etc. When the game bank accounts will always change? I did something like this: I added a new field to the crimes table which is called crimePERC which is a percentage which will take out of the games bank money. So crime 1 will take 1% of the games bank money. Only the do crime page I replaced the money part with: $muny = $set['money_bank'] / $r['crimeMONEYPERC'] / 100; And added: $db->query( "UPDATE `settings` SET `conf_value` = `conf_value` - $muny WHERE `conf_id` = 23"); To update the games bank money. Is this alright or am I doing something wrong? Also what happens if the games bank money goes into minus?
-
Hello, I just wanted to know how I could make my game economy good when I release it. Any suggestions or ideas? I want my game to be hard but fun at the same to time. However, the economy I need to balance it out. How much each player has, how much this cost etc. I just need to know how to balance out the economy so the game doesn't get ruined.
-
I found a script on my computer, which belongs to someone here. But I do not know who. So I tried fixing it and I get an error, which I do not know the solution too. So I came to you guys for your help. Error - A non-critical error has occurred. Page execution will continue. Below are the details: PHP Notice: Undefined variable: br (8) Line executed: /home/nation/public_html/userimages.php:61 <?php require('globals.php'); echo "<h3><u>User Images</u></h3>"; if (!isset($_GET['action'])) { $_GET['action'] = ''; } switch ($_GET['action']) { case "view": view_image(); break; default: user_images(); break; } function user_images() { global $db, $ir, $notl; $_GET['delete'] = (isset($_GET['delete']) && is_numeric($_GET['delete'])) ? abs(intval($_GET['delete'])) : NULL; if($_GET['delete']) { $db->query("DELETE FROM `userimages` WHERE `imgID` = {$_GET['delete']} AND `imgUSER` = {$ir['userid']}"); confirmation("Image deleted from gallery."); } $_GET['set'] = (isset($_GET['set']) && is_numeric($_GET['set'])) ? abs(intval($_GET['set'])) : ''; if($_GET['set']) { $image = $db->query("SELECT `imgURL` FROM `userimages` WHERE `imgID` = {$_GET['set']}"); $img = $db->fetch_row($image); $db->query("UPDATE `users` SET `display_pic` = '{$img['imgURL']}' WHERE `userid` = {$ir['userid']}"); confirmation("New display picture set."); } $_GET['XID'] = (isset($_GET['XID']) && is_numeric($_GET['XID'])) ? abs(intval($_GET['XID'])) : ''; if(!isset($_GET['XID'])) { error("No userid submitted."); } else { $q = $db->query("SELECT * FROM `userimages` WHERE `imgUSER` = {$_GET['XID']}"); $x = $db->query("SELECT `userid` FROM `users` WHERE `userid` = {$_GET['XID']}"); if($db->num_rows($x) == 0 ) error("There is no such user."); } $y = $db->fetch_row($x); echo "<hr width = '95%'>" . $notl->username_nonformat($y['userid']) . "'s uploaded images.<hr width = '95%'>"; if(!$db->num_rows($q)) { echo "<table width = '95%' cellspacing = '1' class = 'table'><tr style='background:gray'> <td>This user has no uploaded images</td></tr> </table><hr width = '95%'>><a href='viewuser.php?u={$y['userid']}'>Go Back</a><hr width = '95%'>"; } else { echo "<table width = '95%' cellspacing = '1' class = 'table'><tr>"; while($r = $db->fetch_row($q)) { $br++; if($br == 3) { $div = "</tr><tr>"; $br = 0; } else { $div = ""; } $cnn++; echo "<td align = 'centre'><b>$cn. Profile image</b><br/><a href='userimages.php?action=view&ID={$r['imgID']}'><img src='{$r['imgURL']}' width='150' height='200'></a>"; if(isset($_GET['XID']) == $ir['userid']) { echo "<br />[<a href='userimages.php?XID={$r['imgUSER']}&delete={$r['imgID']}'>Delete</a>] <br />[<a href='userimages.php?XID={$r['imgUSER']}&set={$r['imgID']}'>Set Image</a>]"; } echo "<br /><br /></td>"; echo $div; } print "</tr></table><hr width = '95'><a href='viewuser.php?u={$y['userid']}'>>Go Back</a><hr width = '95'>"; } } function view_image() { global $db, $ir, $notl; $_GET['ID'] = (isset($_GET['ID']) && is_numeric($_GET['ID'])) ? abs(intval($_GET['ID'])) : ''; $q = $db->query("SELECT `imgURL`, `imgUSER` FROM `userimages` WHERE `imgID` = {$_GET['ID']}"); $r = $db->fetch_row($q); echo "<hr width = '75%'>" . $notl->username_nonformat($r['imgUSER']) . "'s Image - <hr width = '75%'><br /><img src = '{$r['imgURL']}' width = '250' height = '150'><br /><br /> <hr width = '75%'><a href='userimages.php?XID={$r['imgUSER']}'>>Go Back</a><hr width = '75%'>"; } $h->endpage(); ?>
-
Unfortunately, it's the same :( Thanks for trying bro
-
Hello, I am trying to fix up this modification however, I am failing and I do not know why. I nearly finished most of it. However, one things has bugged me. I do not have a bank account within the game. And the content for that does not show up. Nothing shows up apart from the title "Bank" Here is the re-code I have done so far: http://pastebin.com/9MVXWn65
-
Android/Apple Game For Sale With 100+million Downloads
Samurai Legend replied to Theo's topic in General
Someone shoot me! Lmao who would come to MWG to sell an APP which is making over a million a day. -
I move the code outside the while loop which gave me an errors so I used a function to grab the information to fix the error. It just gave a News Advert with a title of N/A and also the date as January 1st. The second point I didn't understand...Sorry still a teenage brain
-
This is how I want my layout to be - [ATTACH=CONFIG]2225[/ATTACH] This is what happens when there is no advertisements - [ATTACH=CONFIG]2226[/ATTACH] This is what happens when there is 2 or more advertisements - [ATTACH=CONFIG]2227[/ATTACH] Code - <?php require('globals.php'); echo "<h3><u>Newspaper</u></h3>"; if (!isset($_GET['action'])) { $_GET['action'] = ''; } switch($_GET['action']) { case 'add': add(); break; case 'delete': delete(); break; default: index(); break; } function index() { global $db, $ir, $notl; $q = $db->query("SELECT `content` FROM `papercontent` LIMIT 1"); $content= $db->fetch_single($q, 0, 0); echo "<hr width='95%'> <table width = '95%' cellspacing = '1' class='table'> <tr> <td><a href='job.php'>Your Job</a></td> <td><a href='gym.php'>Local Gym</a></td> <td><a href='halloffame.php'>Hall Of Fame</a></td> <td><a href='clancentral.php'>Clans</a></td> <td><a href='brothel.php'>Brothel</a></td> </tr> <tr> <td><a href='userlist.php'>Local Residents</a></td> <td><a href='stats.php'>City Stats</a></td> <td><a href='usersonline.php'>Users Online</a></td> <td><a href='clanwars.php'>Current Wars</a></td> <td><a href='estate.php'>Estate</a></td> </tr></table><hr width='95%'>"; echo "<table width = '95% cellspacing = '1' class='table'> <tr> <th colspan = '5'>Player Advertisements | <a href='newspaper.php?action=add'><b>Buy An Advertisement (¥10,000)</b></a>"; if($ir['user_level'] == 2 OR $ir['user_level'] == 3) { echo " | <a href=newspaper.php?action=all><b>[DELETE ALL]</b></a></tr>"; } else { echo "<tr>"; } echo "</tr> <tr> <td colspan = '5'>"; echo "<table width = '95%' cellspacing = '1' class = 'table'>"; echo "<marquee direction = 'up' onmouseover = 'this.stop()' onmouseout = 'this.start()' class = 'textbox' scrolldelay = '125' width = '100%'>"; $anpdata = $db->query("SELECT * FROM `news_paper` ORDER BY `npTIME` DESC"); while ($npdata = $db->fetch_row($anpdata)) { $time = date('F j',$npdata['npTIME']); echo "<div class='codetop'><b>Ad By: <a href='viewuser.php?u={$npdata['npADDER']}'><font color = 'white'>" . $notl->username($npdata['npADDER']) . "</font> [{$npdata['npADDER']}]</a> | Added On: {$time}</b>"; if($ir['user_level'] == 2 OR $ir['user_level'] == 3) { echo " | <a href=newspaper.php?action=npID&npID={$npdata['npID']}><b>[DELETE]</b></a></div>"; } else { echo "</div>"; } echo "<div class='codemain'><b>{$npdata['npTITLE']}</b> - {$npdata['npBODY']}</div></marquee></table>"; } echo "</marquee></table>"; echo "<hr width = '95%'><table width = '95% cellspacing = '1' class = 'table'> <td><h3><u>Game News</u></h3><div style='text-align: left; padding-left: 5px;'>$content</div></td></tr></table><hr width='95%'><a href = 'index.php'>>Go Home</a><hr width='95%'>"; } Can someone please help me out here! Been trying the past few days could not get anything sorted
-
[MENTION=68711]KyleMassacre[/MENTION] - may you send me the link please
-
Run these SQLs to phpMyAdmin - CREATE TABLE IF NOT EXISTS `referrals` ( `refID` int(11) NOT NULL AUTO_INCREMENT, `refREFER` int(11) NOT NULL DEFAULT '0', `refREFED` int(11) NOT NULL DEFAULT '0', `refTIME` int(11) NOT NULL DEFAULT '0', `refREFERIP` varchar(15) NOT NULL DEFAULT '127.0.0.1', `refREFEDIP` varchar(15) NOT NULL DEFAULT '127.0.0.1', `refBONUS` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`refID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `referrals_reward` ( `refBONUS` int(11) NOT NULL AUTO_INCREMENT, `refLEVEL` int(11) NOT NULL DEFAULT '0', `refCOINS` int(11) NOT NULL, `refMONEY` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`refBONUS`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ; INSERT INTO `referrals_reward` (`refBONUS`, `refLEVEL`, `refCOINS`, `refMONEY`) VALUES (0, 3, 250, 1000), (1, 10, 350, 5000), (2, 20, 450, 8000), (3, 35, 600, 12000), (4, 50, 800, 20000), (5, 70, 1000, 40000), (6, 90, 1300, 80000), (7, 120, 2000, 100000), (8, 150, 2500, 150000); Open up register.php and find the stock McCodes referral code and replace it with - $db->query( "INSERT INTO `referals` VALUES(NULL, {$_POST['ref']}, $i, " . time() . ", '{$e_rip}', '$IP', 0)"); Create a new file called referral.php and add the following code below - <?php require('globals.php'); echo " <h3><u>Referral Program</u></h3><br/> <ol> What is the referral program:<br />The referral program is a method of which members gain rewards for referring people to join {$set['game_name']}. <br /><br />How it works:<br />If you help build the community of players bigger and more loyal, you get rewarded!<br /> When you refer a friend to {$set['game_name']}, you'll be qualified for the Referral Program.<br /><br /> To refer people you need them to use either your referral link or have them enter your ID number at the register page.<br /><br /> Your link:<br />This is your referral link: http://{$domain}/register.php?REF={$userid}<br /><br /> Current obtained referrals:"; $query = $db->query("SELECT `refID`, `refTIME`, `refREFED` FROM `referrals` WHERE `refREFER` = {$ir['userid']}"); echo " <font color ='gold'>" . $db->num_rows($query) . "</font> </ol> <hr width='85%'> <table cellspacing='1' border='0' cellpadding='1' class='table' width='85%'> <tr> <th><b>Referred</b></th> <th><b>Time</b></th> <th><b>Level</b></th> </tr>"; $p = 0; while ($r = $db->fetch_row($query)) { $p++; $time = date('F j, Y g:i:s a', $r['refTIME']); $u = $db->query("SELECT `userid`, `level`, `username` FROM `users` WHERE `userid` = {$r['refREFED']}"); $user = $db->fetch_row($u); echo " <tr> <td>{$user['username']} [" . format($user['userid']) . "]</td> <td>{$time}</td> <td>" . format($user['level']) . "</td> </tr>"; } echo "</table><hr width ='85%'>"; echo "<br />My Reward:<br />The rewards system will credit you per member referred as follows: <br /><br /> Initial referral reward of <span style='color:green'>500 coins</span>.<br />"; $q = $db->query("SELECT * FROM `referrals_reward`"); while($reward = $db->fetch_row($q)) { echo "An additional reward of <span style='color:green'>{$reward['refCOINS']} coins</span> and <span style='color:green'>" . money_formatter($reward['refMONEY']) . "</span> when your referral reaches level {$reward['refLEVEL']}.<br />"; } echo "<br/>Rewards total so far:<br /> Money: <font color = 'gold'>Coming Soon</font><br/> Coins: <font color = 'gold'>Coming Soon</font><br/><br/> <h2><strong>Referral Help:</strong></h2> Listed below are just some methods to obtain referrals:<br /><br /> Post your referral link anywhere on the web. Post it on blogs, MySpace, Facebook, Twitter and any other site that allows you to add content.<br /> On Facebook type accounts, email people, post bulletins, write blogs, and post comments about {$set['game_name']} with your referral link.<br /> Youtube is also a good place to get referrals. Make a good video along with you referral link to your video and watch the referrals come in.<br /> Do you have Skype, MSN Messenger, Yahoo Messenger or any other instant messenger? Put you referral link in your name or profile.<br /> Key rule! If you have any account anywhere on the NET that permits advertising then add you referral link.<br /> Domain forwarding is also very effective. Low cost and ideal for anyone who has got an inactive domain name.<br /> CPC Adverting can be as cheap as 0.005 per click. If the rewards are worth the conversion then this maybe for you.<br /> When will I get credited?<br />Credits are made within the beginning of the hour. <hr width = '85%'><a href = 'explore.php'>>Explore</a><hr width = '85%'>"; $h->endpage(); ?> Add this into cron_hour.php - ///Referral cron $referral = $db->query("SELECT `refREFED`, `refREFER`, `refBONUS` FROM `referrals`"); while($ref = $db->fetch_row($referral)) { $user = $db->query("SELECT `userid`, `username`, `level` FROM `users` WHERE `userid` = {$ref['refREFED']}"); while($r = $db->fetch_row($user)) { $q = $db->query("SELECT * FROM `referrals_reward` WHERE `refBONUS` = {$ref['refBONUS']}"); $reward = $db->fetch_row($q); if($r['level'] > $reward['refLEVEL'] && $ref['refBONUS'] == $reward['refBONUS']) { $db->query("UPDATE `users` SET `coins`= `coins` + {$reward['refCOINS']}, `money`= `money` + {$reward['refMONEY']} WHERE `userid` = {$ref['refREFER']}"); $db->query("UPDATE `referrals` SET `refBONUS` = `refBONUS` + 1 WHERE `refREFER` = {$ref['refREFER']} AND `refREFED` = {$ref['refREFED']}"); event_add($ref['refREFER']," Your referral, <a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a>, has reach level {$reward['refLEVEL']}, you have been awarded {$reward['refCOINS']} coins and " . money_formatter($reward['refMONEY']) . "."); } } } [ATTACH=CONFIG]n280863[/ATTACH] [ATTACH=CONFIG]n280864[/ATTACH] Feedback will be good and thanks
-
Hello, I am a bit confused in what I did wrong in one of my scripts. So in the Gym I allow it to show how much EXP it gains. However, it shows a different amount from how much it actually gain. Generate gains - $gain +=rand(1,3) / rand(800,1000) * rand(800,1000) * (($row['will'] + 50) / 300); $row['exp_needed'] = (int) (($row['level'] + 1) * ($row['level'] + 1) * ($row['level'] + 1) * 2.2); $expgain = $gain; $expperc = ($expgain / $row['exp_needed'] * 100); Update users EXP - $db->query("UPDATE `users` SET `exp` = `exp` + ({$gain} / 10) WHERE `userid` = ". $_SESSION['userid'] .""); I don't see where I went wrong.
-
I have this modification, certain Item Types and Items can only be used with the multiple item use. [ATTACH=CONFIG]2197[/ATTACH] [ATTACH=CONFIG]2198[/ATTACH] I am willing to sell it for a price
-
If anyone wants to see the progress. Goto nationofthelost.net. Explore and Business Section is there. Any bugs? Anything wrong please post here