Samurai Legend
Members-
Posts
483 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
Events
Everything posted by Samurai Legend
-
I'll pay $75 for - 30 Crimes 10 Education Courses 100 items (Weapons,Armour,Shields,Specials,Donator Packs etc.) Shops and Locations Robberies All go to fit in together and the theme Samurai. Need this asap.
-
Anyone interested in doing the job?
-
I get this :( A critical error has occurred, and page execution has stopped. Below are the details: 1064: 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 '')' at line 5 Action taken: Attempted to execute query: UPDATE `mugger_oth` SET `total_mugged` = `total_mugged` + 3467406, `total_mugs` = `total_mugs` + 1 WHERE `uid` = 1 AND DATE_FORMAT(`date_start`, '%Y-%m-%d %k') = DATE_FORMAT(NOW(), '%Y-%m-%d %k')')
-
A non-critical error has occurred. Page execution will continue. Below are the details: PHP Notice: Trying to get property of non-object (8) Line executed: /home/*********/public_html/attackwon.php:97 Line 97 - if( $objThisHour->num_rows ) { Help please!
-
Actually leave the houses out. I got it sorted. Everything else I need. Items, shops, locations, crimes, jobs, education courses, crafting, battle tent, quests and robberies.
-
Yes, name and description. But for the houses I just need 10 images.
-
Hello there, I am paying $60 for someone to add game contents for me. So I need items, shops, locations, crimes, jobs, education courses, crafting, battle tent, quests, robberies and at least 10 houses with images (Images have to be copyright free). All of the game content needs to link up with the theme *Samurai* Mail me if your experience with adding game contents.
-
Hello all, I am in need of someone to help me implant my Wheel of Fortune to php. I have coded everything else in JS. It works and it looks cool! However I need a new image as I didn't have permission to use someone else's image. I also need someone to make it credit whatever the prize is. And can only be used once a day. I am also wanting to sell this for $20. So who ever helps me out will get half of the donations.
-
I found another script, so I decided to fix it up, thanks to G7470 for helping me out. <?php require('globals.php'); $_GET['ID'] = (isset($_GET['ID']) && is_numeric($_GET['ID'])) ? abs(intval($_GET['ID'])) : ''; $_GET['PAID'] = (isset($_GET['PAID']) && is_numeric($_GET['PAID'])) ? abs(intval($_GET['PAID'])) : ''; if(!$ir['donatordays']) { error('Only donators can access this area.'); } $sql = $db->query("SELECT `level`, `username`, `equip_primary`, `equip_secondary`, `equip_armor`, `equip_shield`, `money`, `coins`, `rating`, `bankmoney`, `cybermoney`, `steps`, `user_level`, `crimexp` FROM `users` WHERE `userid` = '{$_GET['ID']}'"); $r = $db->fetch_row($sql); if($_GET['ID'] == $userid) { error('Why would you wanna spy on yourself?'); } if($_GET['ID'] && $_GET['PAID']) { $cost = $r['level'] * 100; if($_GET['PAID'] != $cost) { error('Quit trying to abuse bugs.'); } if($_GET['PAID'] > $ir['money']) { error('You do not have enough money to spy on '.$r['username'].'.'); } $rand = rand(1,15); if($rand == 1) { $db->query("UPDATE `users` SET `money` = `money` - '{$_GET['PAID']}' WHERE `userid` = '{$ir['userid']}'"); action("The ninja you have hired has been caught.<br/>Your name may have been mentioned."); event_add($_GET['ID'],"<a href='viewuser.php?u={$ir['userid']}'>{$ir['username']}</a> tried to hire a ninja on you but failed."); } else { $db->query("UPDATE `users` SET `money` = `money` - '{$_GET['PAID']}' WHERE `userid` = '{$ir['userid']}'"); if($r['user_level'] == 2) { action("The ninja never came back. It was rumoured he was attacked by {$r['username']} and pushed off a cliff."); exit($h->endpage()); } $sta = $db->query("SELECT `strength`, `agility`, `guard`, `labour`, `IQ` FROM `userstats` WHERE `userid` = '{$_GET['ID']}'"); $stats = $db->fetch_row($sta); $query = $db->query("SELECT `itmname`, `itmid` FROM `items` WHERE `itmid` IN (".$r['equip_primary'].", ".$r['equip_secondary'].", ".$r['equip_armor'].", ".$r['equip_shield'].")"); while($getresults = $db->fetch_row($query)) { switch ($getresults['itmid']) { case $r['equip_primary']: $priName = $getresults['itmname']; break; case $r['equip_secondary']: $secName = $getresults['itmname']; break; case $r['equip_shield']: $shName = $getresults['itmname']; break; default: $armName = $getresults['itmname']; break; } } if(!isset($priName)) { $priName = "None Equipped"; } if(!isset($secName)) { $secName = "None Equipped"; } if(!isset($armName)) { $armName = "None Equipped"; } if(!isset($shName)) { $shName = "None Equipped"; } if ($stats['strength'] > $ir['strength']) { $stren = "<font color='red'>Weaker</font>"; } elseif ($stats['strength'] == $ir['strength']) { $stren = "<font color='blue'>Equal</font>"; } else { $stren = "<font color='green'>Stronger</font>"; } if ($stats['agility'] > $ir['agility']) { $agility = "<font color='red'>Weaker</font>"; } elseif ($stats['agility'] == $ir['agility']) { $agility = "<font color='blue'>Equal</font>"; } else { $agility = "<font color='green'>Stronger</font>"; } if ($stats['guard'] > $ir['guard']) { $guard = "<font color='red'>Weaker</font>"; } elseif ($stats['guard'] == $ir['guard']) { $guard = "<font color='blue'>Equal</font>"; } else { $guard = "<font color='green'>Stronger</font>"; } if ($stats['labour'] > $ir['labour']) { $labour = "<font color='red'>Weaker</font>"; } else if ($stats['labour'] == $ir['labour']) { $labour = "<font color='blue'>Equal</font>"; } else { $labour = "<font color='green'>Stronger</font>"; } if ($stats['IQ'] > $ir['IQ']) { $IQ = "<font color='red'>Weaker</font>"; } else if ($stats['IQ'] == $ir['IQ']) { $IQ = "<font color='blue'>Equal</font>"; } else { $IQ = "<font color='green'>Stronger</font>"; } echo"<hr width='75%'>You have hired a ninja to get information on <b>{$r['username']}</b> at the cost of ". money_formatter($_GET['PAID']) ." <br />Here is the information retrieved:<hr width='75%'> <h3><u>Statistics</u></h3>"; echo "<hr/><table width = '90%' cellspacing = '1' class='table'><tr style='background:gray'> <tr><th>Primary</th> <th>Secondary</th> <th>Armor</th> <th>Shield</th> </tr> <tr><td>$priName</td><td>$secName</td><td>$armName</td><td>$shName</td></tr> </table>"; echo"<hr/> <table width='90%' cellspacing='1' class='table'> <tr style='background:gray'> <tr> <th>Stats</th><th>Your Stats</th><th>Stats</th><th>Their Stats</th><th>Result</th> </tr> <tr> <td>Strength:</td><td> {$ir['strength']}</td><td>Strength:</td><td>{$stats['strength']}</td><td><center><b>$stren</b></center></td> </tr> <tr> <td>Agility:</td><td>{$ir['agility']}</td><td>Agility:</td><td>{$stats['agility']}</td><td><center><b>$agility</b></center></td> </tr> <tr> <td>Guard:</td><td>{$ir['guard']}</td><td>Guard:</td><td> {$stats['guard']}</td><td><center><b>$guard</b></center></td> </tr> <tr> <td>Labour:</td><td>{$ir['labour']}</td><td>Labour:</td><td>{$stats['labour']}</td><td><center><b>$labour</b></center></td> </tr> <tr> <td>IQ:</td><td> {$ir['IQ']}</td><td>IQ:</td><td> {$stats['IQ']}</td><td><center><b>$IQ</b></center></td> </tr>"; echo" <table width='90%' cellspacing='1' class='table'> <tr style='background:gray'> <tr> <td><center><a href='attack.php?ID={$_GET['ID']}'><b>Attack?</b></a></center></td> </tr> </table><hr /> <table width='90%' cellspacing='1' class='table'> <tr style='background:gray'> <tr> <th>Currency</th><th>Amount<th>Misc</th> </tr> <tr> <td>Money:</td><td>".money_formatter($r['money'])."</td> <td>Rating: {$r['rating']}</td> </tr> <tr> <td>Coins:</td><td>{$r['coins']}</td> <td>Crime EXP: {$r['crimexp']}</td> </tr> <tr> <td>Street Steps:</td><td> {$r['steps']}</td> <td>Level: {$r['level']}</td> </tr> </table>"; echo" <hr /> <table width='90%' cellspacing='1' class='table'> <tr style='background:gray'> <tr> <th>Name</th><th>Description</th><th>Amount</th></tr>"; $z = $db->query("SELECT `inv_itemid`, `inv_qty` FROM `inventory` WHERE `inv_userid` = {$_GET['ID']} ORDER BY inv_itemid DESC"); if ($db->num_rows($z) == 0) { echo"<th colspan='3'>This person has no items!</th>"; } while($e=$db->fetch_row($z)) { $t = $db->query("SELECT `itmname`, `itmdesc` FROM `items` WHERE `itmid` = {$e['inv_itemid']}"); $itm=$db->fetch_row($t); echo " <tr> <td>{$itm['itmname']}</td> <td>{$itm['itmdesc']}</td> <td>" . money_formatter($e['inv_qty']) . "</td></tr>"; } echo "</table><hr/><br/><hr width='75%'>><a href='viewuser.php?u={$_GET['ID']}'>Go Back</a><hr width='75%'>"; } } else if($_GET['ID']) { $cost = $r['level'] * 100; echo "<hr/><b>You are hiring a ninja on {$r['username']}</b>It will cost you " . money_formatter($cost) . " for the ninja expenses.<br />But be warned spying is not always 100% successful. <form action='hireninja.php' method='get'> <input type='hidden' name='ID' value='{$_GET['ID']}' /> <input type='hidden' name='PAID' value='$cost' /> <hr/> <input type='submit' value='Hire Ninja'/></form><hr/>$goback<hr/>"; } else { error('System error!'); } $h->endpage();
-
It worked perfect! Thanks man I love you sooo much!
-
Thank you so much again! So if there was no one equiping anything on, so the variables be 0. How would I say none on it while($getresults = $db->fetch_row($query)) { switch (!$getresults['itmid']) { case $r['equip_primary']: $priName = $getresults['itmname']; break; case $r['equip_secondary']: $secName = $getresults['itmname']; break; default: $armName = $getresults['itmname']; break; } else { switch ($getresults['itmid']) { case $r['equip_primary']: $priName = None; break; case $r['equip_secondary']: $secName = None; break; default: $armName = None; break; } } This seems to be not working...
-
Thanks so much! How would I echo the statements? This is something new i just learnt! Thanks again so much, I just need to know how I am going to find out how to echo the statements :)
-
Thanks all for helping! However I am trying something new and soon to release to the community. I need to join all these queries as one. $ql = $db->query("SELECT `level`, `username`, `equip_primary`, `equip_secondary`, `equip_armor`, `equip_shield`, `money`, `coins`, `rating`, `bankmoney`, `cybermoney`, `steps`, `user_level`, `crimexp` FROM `users` WHERE `userid` = '{$_GET['ID']}'"); $r = $db->fetch_row($sql); $sta = sprintf('SELECT `strength`, `agility`, `guard`, `labour`, `IQ` FROM userstats WHERE userid = %u', $_GET['ID']); $sta = $db->query($sta); $stats=$db->fetch_row($sta); $we = sprintf('SELECT `itmname` FROM items WHERE itmid = %u', $r['equip_primary']); $we = $db->query($we); $pri=$db->fetch_row($we); $we1 = sprintf('SELECT `itmname` FROM items WHERE itmid = %u', $r['equip_secondary']); $we1 = $db->query($we1); $sey=$db->fetch_row($we1); $we2 = sprintf('SELECT `itmname` FROM items WHERE itmid = %u', $r['equip_armor']); $we2 = $db->query($we2); $arm=$db->fetch_row($we2);
-
Yes why not
-
Hello all, this here is my hire spy modification, however I am getting an error? <?php require('globals.php'); ///Configuration $item = 0; //Item ID required to be obtained before performing a hire ninja. $prohibited = array(1); //Add player IDs to this array who you want to be protected from hire ninja. $prohibited_npc = true; //Set this to true to block NPC's from being spied on. // End if ($ir['donatordays'] <= 0) { error('This is a donator only option.'); } $q1 = $db->query("SELECT * FROM `inventory` WHERE `inv_userid`= {$ir['userid']} and `inv_itemid` = $item"); if ($db->num_rows($q1) < 1) { error('You need to get in contact with a ninja.<br/>To get in contact with one, go buy a ninja card.'); } if ($ir['jail'] > 0 || $ir['hospital'] > 0) { error('You can not hire a ninja on someone when your in jail or hospital.'); } $_GET['ID'] = (isset($_GET['ID']) && is_numeric($_GET['ID'])) ? abs(intval($_GET['ID'])) : ''; $_POST['ID'] = (isset($_POST['ID']) && is_numeric($_POST['ID'])) ? abs(intval($_POST['ID'])) : ''; if ($_POST['ID']) { $q = $db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_POST['ID']}"); $r = $db->fetch_assoc($q); if (in_array($_POST['ID'], $prohibited)) { error('The ninja never came back!<br />It was rumoured he was attacked by ' . $r['username'] . ' and pushed off a cliff.'); } if (in_array($in, $prohibited)) { error('You cannot spy on this player.'); } if ($r['fedjail']) { error('You cannot spy on people in federal jail.'); } if ($in == $userid) { error('You cannot spy on yourself!'); } $payment = $r['level'] * 100; if ($ir['money'] < $payment) { error("You need " . money_formatter($payment) . " to hire a ninja on this member."); } else { $payment = $r['level'] * 100; $db->query("UPDATE `users` SET `money` = `money` - '$payment' WHERE `userid` = '$userid'"); $exp = (int) ($r['exp'] / (($r['level'] + 1) * ($r['level'] + 1) * ($r['level'] + 1) * 2) * 100); $ts = $r['strength'] + $r['agility'] + $r['guard'] + $r['labour'] + $r['IQ']; ?> <hr width='75%'>You have hired a ninja to get information on <b><?php echo format($r['username']); ?></b> at the cost of <?php echo money_formatter($payment); ?>. Here is the information retrieved:<hr width='75%'> <h3><u>Statistics</u></h3> <table cellspacing='1' border='0' cellpadding='1' class='table' width='75%'> <tr><th colspan='2' class='h'><b>Stats Info</b></td></tr> <tr> <td>Strength: <?php echo format($r['strength']); ?></td> <td>Agility: <?php echo format($r['agility']); ?></td> </tr> <tr> <td>Guard: <?php echo format($r['guard']); ?></td> <td>Labour: <?php echo format($r['labour']); ?></td> </tr> <tr> <td>IQ: <?php echo format($r['IQ']); ?></td> <td>EXP: <?php echo format($exp); ?>%</td> </tr> <tr> <td colspan='2'><font color = red><b>Total Stats:</b></font><?php echo format($ts); ?></td> </tr></table><br /> <h3><u>Equipped Items</u></h3> <?php $q1 = $db->query("SELECT * FROM items WHERE itmid IN({$r['equip_primary']}, {$r['equip_secondary']}, {$r['equip_armor']})"); while ($r1 = $db->fetch_assoc($q1)) { $equip[$r1['itmid']] = $r1; } ?><table width='75%' cellspacing='1' class='table'> <tr> <th>Primary Weapon</th> <td> <?php if ($equip[$r['equip_primary']]['itmid']) { echo $equip[$r['equip_primary']]['itmname'] . " ?></td> <td> echo $equip[$r['equip_primary']]['itmdesc']. " </td> } else { ?> None equipped.</td><td> </td> <?php } ?> <tr> <th>Secondary Weapon</th> <td> <?php if ($equip[$r['equip_secondary']]['itmid']) { echo $equip[$r['equip_secondary']]['itmname'] . " ?></td> <td> <?php echo $equip[$r['equip_secondary']]['itmdesc'] . " ?></td> <?php } else { ?> None equipped.</td><td> </td> <?php } ?> <tr> <th>Armor</th> <td> <?php if ($equip[$r['equip_armor']]['itmid']) { echo $equip[$r['equip_armor']]['itmname'] . " ?></td> <td> <?php echo $equip[$r['equip_armor']]['itmdesc'] . " ?></td><?php } else { ?> None equipped.</td><td> </td> <?php } ?> </tr></table><br /> <h3><u>Inventory</u></h3> <?php $inv = $db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_userid={$r['userid']}"); if ($db->num_rows($inv) == 0) { ?> <hr width='75%'>This person has no items!<hr width='75%'> <?php } else { ?> <b>Inventory listed below.</b><br /> <hr width='75%'><table width=75% cellspacing=1 class='table'><tr style='background:gray'><th>Item</th><th>Sell Value</th><th>Total Sell Value</th></tr> <?php while ($i = $db->fetch_assoc($inv)) { ?> <tr><td><?php echo format($i['itmname']); if ($i['inv_qty'] > 1) { ?> x<?php echo format($i['inv_qty']); ?> <?php } ?> </td><td><?php echo money_formatter($i['itmsellprice']); ?></td><td> <?php echo money_formatter($i['itmsellprice'] * $i['inv_qty']); ?> </td></tr> <?php } ?> </table><hr width='75%'><br /><hr width='50%'><a href='viewuser.php?u=<?php echo $_POST['ID']; ?>'>> Go Back</a><hr width='50%'> <?php } } } else { $q = $db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); if (!$_GET['ID']) { error('No valid player ID to hire spy specified.'); } else if (!$db->num_rows($q)) { error('This user does not exist.'); } else if ($_GET['ID'] == $userid) { error('What is the point in hiring a ninja on yourself.'); } else { $r = $db->fetch_assoc($q); $payment = $r['level'] * 100; ?> <hr width='100%'>You are hiring a ninja to spy on <b><?php format($r['username']); ?></b> at the cost of <?php echo money_formatter($payment); ?><hr width='100%'> if ($ir['money'] >= $payment) { ?> <form action='hireninja.php' method='post'><input type='hidden' name='ID' value='<?php echo $_GET['ID']; ?>' /><input type='submit' value='Hire' /></form> <?php } else { error('You don not have enough money!'); } } } $h->endpage(); ?> Error: PHP Parse error: syntax error, unexpected '[', expecting ']' in /home/****/public_html/hireninja.php on line 100 Error Line: echo $equip[$r['equip_primary']]['itmdesc']. " Please help!
-
Well you don't have to start from scratch...just use the normal MCCodes one...
-
Damn, well I can pay $60 deffo on the 29th.
-
Thanks for the contribution Script47! Updated my post.
-
I need a new type of clan system. Samurai themed. I am willing to pay $40 for someone to create something with their own idea and make it enjoyable. I want the clans to be used most in my game. If you can make up your own idea. (Ill throw bits of mine) I am happy to hire you for coding the system. This is what I want - Clan Houses - Allows you to buy a house for the full clan so they can train from that. Or that the will from that is added on to you current houses will and it's counted as a bonus. Clan Training - So instead of going to the gym you can go to the clan one which leader can upgrade so when you train you get better stats. Loyalty Program - So people get some sort of achievement/bonus for staying in a clan or doing certain things in a clan. Clan Territory - Don't know how to put it in words... Clan Forums - Normal forums but each clan have their own forums. Search Clans - Search for clans. Clan Market - Sell clans for money/coins.
-
This looks great!
-
That is just the general user view...
-
[ATTACH=CONFIG]1689[/ATTACH] Something like this would be good! I would give my system for view-user to be style out like this...
-
Just added this to my game. The staff file had few minor errors. Wouldn't even say errors. Thanks for this! Agility: <input type='text' name='name' value='{$old['agility']}' /> IQ: <input type='text' name='name' value='{$old['iq']}' /> Labor: <input type='text' name='name' value='{$old['labor']}' /> As you can see name='name'
-
Wow +1 Ill be using this in the feature!
-
Damn, I would have actually done that. However I just sent my phones to repair and I have not have anything to take a picture with...