Jump to content
MakeWebGames

newttster

Members
  • Posts

    513
  • Joined

  • Last visited

  • Days Won

    14

Everything posted by newttster

  1. I realize that this is a really old thread but it's kind of part and parcel with a problem that I have been having. I am hosted with Peter and it would be really nice if when I contact him via msn or here that he responds. I try to go to his W3 Theory webpage but it continually says under construction. I have been a dedicated customer of his almost from the beginning and I'm not saying I want him to be Johny on the spot or anything like that. But damn it ... when someone contacts you about apparent issues with the server, don't you think it would be a good idea to respond. Not too ignore them and then make yourself unavailable. I have a game that has players that donate, obviously if this keeps up I lose players which means I lose donations. It would be nice to know what is going on, Peter. Thanks.
  2. FFDP, Lordi, Metallica, Knickleback, ACDC, Black Sabbath, and a few others are my go to.
  3. Okay. Here is what I have for the money lender system that I have. Obviously there are things in the code that are in place for my game but if you weed through it you will find what you need.   <?php include "globals.php"; If ($ir['daysold']<30) { echo"<center>You are not old enough to borrow money.<br /> Try again when you reach 30 days old.<br /><br /> <table id='table-2' cellspacing=\"0\" ><tr> <td><form action='explore.php' method='get'> <input type='image' src='/images/backtotown.png' alt='submit' /></form></td></tr></table></center>"; $h->endpage(); exit; } $q=$db->query("SELECT lendermoney FROM moneylender WHERE userid=$userid"); $r=$db->fetch_row($q); if($r['lendermoney']==1) { echo"<center>You are no longer allowed to borrow money.<br /><br /> <table id='table-2' cellspacing=\"0\" ><tr> <td><form action='explore.php' method='get'> <input type='image' src='/images/backtotown.png' alt='submit' /></form></td></tr></table></center>"; $h->endpage(); exit; } switch ($_GET['action']) { case 'borrowmoney':borrow_money();break; case 'moneyborrowed':money_borrowed();break; case 'payback':pay_back();break; case 'paidback':paid_back();break; default:moneylender_home();break; } function moneylender_home() { global $db,$ir,$c,$userid,$h; echo "<center><img src='/images/moneylender.png' width='500' height='150' alt='Money Lender' title='Money Lender' /><br /><br /> <h3>You can either borrow money or pay back what you have already borrowed.<br /> Which would you like to do?</h3> <a href='moneylender.php?action=borrowmoney'>Borrow some money</a><br /> <a href='moneylender.php?action=payback'>Pay back on your loan</a><br /><br /> <table id='table-2' cellspacing=\"0\" ><tr> <td><form action='explore.php' method='get'> <input type='image' src='/images/backtotown.png' alt='submit' /></form></td></tr></table></center>"; } function borrow_money() { global $db,$ir,$c,$userid,$h; $csrf_token = create_csrf(__FILE__, session_id()); $lend=($ir['level']*50000); echo"<center><h2><u>Borrowing Money</u></h2><br /><br /> The terms of borrowing money from the Money Lender are simple.<br /> You have 15 days to pay back the loan, including interest. <br /><span style='color:red'><strong>If you default on the loan,<br /> you will be put in the pen <u>for 3 days</u> and added to his black list.</span></strong><br /> If you have defaulted, The Money Lender will continue to add interest to your loan daily,<br /> and he will continue to take the money from you until it is paid in full.<br /> He will take the money from any or all of your bank accounts.<br /> If you do not have money in your accounts, he will take it from your inventory.<br /> If he does have to take it from your inventory, it will be based on the 'sell' price.<br /> The items removed will <strong>NOT</strong> be donator items.<br /><br /> You are allowed to borrow up to $".number_format($lend).".<br /> Enter in the amount you would like to borrow.<br /> By clicking on the Borrow button, you are agreeing to the terms<br /> of the Money Lender.<br /><br /> <table id='table-1' cellspacing='1'><tr> <td> <form action='moneylender.php?action=moneyborrowed' method='post'> <input type='hidden' name='csrf_token' value='" . $csrf_token . "'> <strong>Amount to borrow</strong>: <input type='text' name='moneyborrowed' value='' /> <input type='submit' value='Borrow' /></form></td></tr></table>"; echo"<br /><br />Changed your mind about borrowing some money?<br /><br /> <table id='table-2' cellspacing=\"0\" ><tr> <td><form action='explore.php' method='get'> <input type='image' src='/images/backtotown.png' alt='submit' /></form></td></tr></table></center>"; } function money_borrowed() { global $db, $ir, $c, $userid, $h; $csrf_token = create_csrf(__FILE__, session_id()); if (array_key_exists('csrf_token', $_POST) && ($_POST['csrf_token'] == $csrf_token)) { $lend=($ir['level']*50000); $_POST['moneyborrowed']=abs((int)$_POST['moneyborrowed']); if($_POST['moneyborrowed'] > $lend) { echo "<center>You have entered more than you are allowed to borrow.<br /><br /> <a href='moneylender.php?action=borrowmoney'>Try again</a><br /><br /> <table id='table-2' cellspacing=\"0\" ><tr> <td><form action='explore.php' method='get'> <input type='image' src='/images/backtotown.png' alt='submit' /></form></td></tr></table></center>"; $h->endpage(); exit; } $q2=$db->query("SELECT moneylent FROM moneylender WHERE userid=$userid"); $r2=$db->fetch_row($q2); if($r2['moneylent']>0) { echo"<center>You have to pay off your current loan in full before you can borrow more money.<br /> You still have \$".$r2['moneylent']." left owing.<br /><br /> <table id='table-2' cellspacing=\"0\" ><tr> <td><form action='explore.php' method='get'> <input type='image' src='/images/backtotown.png' alt='submit' /></form></td></tr></table></center>"; } else { $gain=$_POST['moneyborrowed']; $ir['money']+=$gain; $q3=$db->query("SELECT * FROM moneylender WHERE userid=$userid"); if(!$db->num_rows($q3)) { $db->query("INSERT INTO moneylender VALUES ({$ir['userid']},'{$ir['username']}',0,{$gain},15)"); $db->query("UPDATE users SET money=money+$gain WHERE userid=$userid"); } else { $db->query("UPDATE moneylender SET `dayslent`=`dayslent`+ 15,`moneylent`=`moneylent`+'$gain' WHERE userid=$userid"); $db->query("UPDATE `users` SET `money`=`money`+'$gain' where `userid`='$userid'", $C); } echo "<center>You were given \${$_POST['moneyborrowed']} from the money lender. <br /> <strong>You now have 15 days to pay back the money you have borrowed.</strong><br /> It is recommended that you go and deposit that money now,<br /> unless you have mercs to protect you.<br /><br /> <a href='banking.php'>Go to the bank</a><br /><br /> <table id='table-2' cellspacing=\"0\" ><tr> <td><form action='explore.php' method='get'> <input type='image' src='/images/backtotown.png' alt='submit' /></form></td></tr></table></center>"; event_add($ir['userid'],"This is your copy of the agreement that you made with the Money Lender. You have borrowed \$".$_POST['moneyborrowed'].". You have 15 days to pay back the loan, including interest. If you default on the loan, you will be put in the pen for 3 days and added to his black list. If you have defaulted, The Money Lender will continue to add interest to your loan daily, and he will continue to take the money from you until it is paid in full. He will take that money from your accounts or your inventory. If he has to take it from you inventory, it is based on the 'sell' price. The items removed to settle the debt will NOT be donator items.",$c); } } else { borrow_money(); } } function pay_back() { global $db,$ir,$c,$userid,$h; $csrf_token = create_csrf(__FILE__, session_id()); $owing=$db->query("SELECT moneylent FROM moneylender WHERE userid=$userid"); $owed=$db->fetch_row($owing); $owed1=($owed['moneylent']); echo"<center>You currently have \$".number_format($owed1)." outstanding.<br /> How much would you like to repay on your loan?<br /><br /> <table id='table-1' cellspacing='1'><tr><td> <form action='moneylender.php?action=paidback' method='post'> <input type='hidden' name='csrf_token' value='" . $csrf_token . "'> <strong>Amount to apply to your loan</strong>: <input type='text' name='paidback' value='' /> <input type='submit' value='Pay Back' /></form></td></tr></table></center>"; echo"<br /><br /><center>Changed your mind about paying some money on your loan?<br /><br /> <table id='table-2' cellspacing=\"0\" ><tr> <td><form action='explore.php' method='get'> <input type='image' src='/images/backtotown.png' alt='submit' /></form></td></tr></table></center>"; } function paid_back() { global $db,$ir,$c,$userid,$h; $csrf_token = create_csrf(__FILE__, session_id()); if (array_key_exists('csrf_token', $_POST) && ($_POST['csrf_token'] == $csrf_token)) { $_POST['paidback']=abs((int)$_POST['paidback']); $amount=$db->query ("SELECT moneylent,dayslent FROM moneylender WHERE userid=$userid LIMIT 1"); $r4=$db->fetch_row($amount); if($r4['moneylent']<=0) { echo"<center>You currently do not have any outstanding loans.<br /><br /> <table id='table-2' cellspacing=\"0\" ><tr> <td><form action='explore.php' method='get'> <input type='image' src='/images/backtotown.png' alt='submit' /></form></td></tr></table></center>"; $h->endpage(); exit; } if(($_POST['paidback'])>($r4['moneylent'])) { echo "<center>You are trying to pay back more than you borrowed.<br /><br /> <table id='table-2' cellspacing=\"0\" ><tr> <td><form action='moneylender.php?action=payback' method='get'> <input type='image' src='/images/tryagain.png' alt='submit' /></form></td><td> <td><form action='explore.php' method='get'> <input type='image' src='/images/backtotown.png' alt='submit' /></form></td></tr></table></center>"; $h->endpage(); exit; } else { $gain=$_POST['paidback']; $ir['money']-=$gain; $princ=(($r4['moneylent'])-($gain)); $db->query("UPDATE `users` SET `money`=`money`-'$gain' WHERE userid =$userid"); $db->query("UPDATE moneylender SET `moneylent`=`moneylent`-'$gain' where `userid`='$userid'", $C); echo "<center>You have given \${$_POST['paidback']} to the money lender. <br /> You now have <strong>\$".number_format($princ)."</strong> left owing to the money lender.<br /><br /> <table id='table-2' cellspacing=\"0\" ><tr> <td><form action='explore.php' method='get'> <input type='image' src='/images/backtotown.png' alt='submit' /></form></td></tr></table></center>"; } $check=$db->query("SELECT moneylent, dayslent FROM moneylender WHERE userid=$userid"); $checked=$db->fetch_row($check); if(($checked['moneylent']<=0) AND ($checked['dayslent']==0)) { $db->query("UPDATE moneylender SET dayslent=0 WHERE userid=$userid"); echo"<center><strong>You can now borrow more money if needs be.</strong><br /><br /> <table id='table-2' cellspacing=\"0\" ><tr> <td><form action='explore.php' method='get'> <input type='image' src='/images/backtotown.png' alt='submit' /></form></td></tr></table></center>"; } } else { pay_back(); } } $h->endpage();   Put this in the cron_day file.   $users = ''; $select = $db->query("SELECT userid, username, moneylent, dayslent FROM moneylender WHERE moneylent > 0 AND dayslent <= 0"); if($db->num_rows($select)) { while($user = $db->fetch_row($select)) { $users.= $user['username'].' ['.$user['userid'].']<br />'; } $db->query("INSERT INTO events VALUES ('',1,unix_timestamp(),0,'Moneylender defaults<br /><br />".$users."')"); }   Hope this helps.
  4. I currently have a moneylender mod that I created. If it something that you would like me to share I can post it here and see if there is anything you would like to add then feel free???
  5. o.O Cut an Paste. New invention.
  6. Have you tried it? Perhaps try it first and then adjust the code to suit your needs.
  7. I am currently running a game. I'm a masochist, so I'm in the early stages of developing another one.
  8. *nods* In the end it is going to depend on how comfortable you are with the one you choose. Perhaps downloading and looking at each "free version" of your choices and getting a feel for them will help you to decide. Another factor, I would think, to keep in mind is what type of assistance if any you would get from the sellers of the engines. Not too mention if there is any kind of community support for that engine. In most cases, not all, it is the community where you will find your support.
  9. I'm not sure about EZRPG and the way they deal with their licensing, but I believe with both NWE and McCodes you have to have a paid for licence for each new game you create, unless you are using their "free version". Though I am obviously not 100% certain on this.
  10. In recieve.php find while ($c=mysql_fetch_array($q)) { if ($ir['user_level'] > 1) {$staff='[<a href="chat1.php?action=del&chat_id='.$c['chat_id'].'">X</a>] ';} else {$staff='';} echo ' '.$staff.'<strong>'.ucwords($c['chat_user']).':</strong> '.$bbcode->parse(htmlspecialchars($c['chat_text'])).''; } echo '</div>';   Replace with while ($c=mysql_fetch_array($q)) { $name = $db->fetch_single($db->query(sprintf("SELECT `username` FROM `users` WHERE (`userid` = %u)", $c['userid']))); if ($ir['user_level'] > 1) {$staff='[<a href="chat1.php?action=del&chat_id='.$c['chat_id'].'">X</a>] ';} else {$staff='';} echo ' '.$staff.'<strong>'.ucwords($c['chat_user']).' '. ($name).':</strong> '.$bbcode->parse(htmlspecialchars($c['chat_text'])).''; } echo '</div>';
  11. As per DJKs' recommendation in another thread ... this is where that "facepalm" emoticon would come in handy! :)
  12. Razor ... this one definitely looks much better. May I suggest you use spell checker though. I'm sure this is not a final product but be sure and use it. In my experience, one of the things that will turn away potential clients is misspelled words and poor grammar.
  13. What I've yet to figure out is why people don't do a little investigating first before hiring/paying someone to do something. Seriously. Would you hire a plumber to tile your roof? No. You would hire a reputable roofer after doings some research and getting references ... and not necessarily references they have provided as they can be faked. Come on people ... do your fracking research. It may not always stop you from being scammed but it sure as hell reduces the risk!
  14. sniko ... Thank you very much for taking the time to review and giving me such a nice review. I will certainly fix and or change the things you have mentioned. :D
  15. Hello MWG community. The time has come for my game to go live. Many of you have seen me posting in the forums here for some time now and I finally have a product that I am proud. That being said I hope you will take the time to look around and give me a brutally honest critique about the game. If you find anything, no matter how big or small, wrong ... please let me know. Like everyone here ... I would like for the gaming experience to be enjoyable for everyone that signs up. Right then ... without further ado ... here's the standard blurb about my game. Though many feel that vampires, lycans, demons, and angels are passe ... it's a standard that many gamers are familiar with, including myself. It was something that I felt familiar enough with to make it work. Please note that I have not finished the help tutorial just yet, as well as having to write some helpers in the forums to aid players. On registering players do get a Welcome message that explains some things to get them started. I will say that the economy may seem unbalanced and high when you first start, however, due to the cost of various items it does balance itself out. Some of the unique features of the game are; 1) Players have the opportunity to write trials for other players to complete. The unique aspect of this falls into place when players get to certain levels and have not completed X number of trials there will be certain parts of the game that will be locked to them until they have completed the designated trials. 2) For the most part the game works off of points awarded hourly. There is a cap to how many can be held. When a player first starts they are given a full compliment of points, 1 million dollars or 2 million if they use the promo code. They get 100 of each of the medical and cage supplies. They also get crystals as well. 3) There are no limits on who can be attacked. Players get a 5 day grace period where they cannot be attackd, though they can attack others. Each player can only be hit a maximum of 20 times per day. The NPC's are available for leveling though once a certain number have been attacked they can purchase more hits. During war there is no limitation on the number of hits to the players involved. 4) Fighting Units (gangs) cannot be eliminated by wars. The only way an FU gets deleted is if they don't meet the membership requirements within a set number of days. FU's gain notoriety by either highest level or most wars won. Wars are won when one FU has attained the required number of hits needed to win. The hits required are based on the number of players in both FU's. 5) The game staff use the names of the characters in the game. A description of the characters of the game can be found in Bios under Trial Related , which can be found by Surveying your world. 6) There are a couple of Stat training facilities available. The main one uses points and you can train all core stats there. The other training facilities are based on your player type. Each player type gets certain stats to train. This also pertains to their employment and schooling as well. Players also have the option of changing their type (through a donator item) to utilize doing the schooling, training, and employment for the new player type. Which in turn obviously has different stats trained. Players will have to do a fair bit of exploring to find things they need to do, as well as finding the shops they need to purchase their items. It's not something that one will learn in a short period of time without doing a great deal of exploring. Again ... I very much look forward to getting your feed back, both positive and negative. Thank you for your time. I will keep the registration open for the next 24 hours from now for your testing. My game can be found here. http://www.d-a-n-e.com/login.php   EDIT: Registration for review is now closed ... however, can still use the demo account for the next 48 hours. username: demo password: demo Thanks to everyone for their suggestions and ideas. Much appreciated.
  16. Once again you came through. Thanks a bunch! :D
  17. What I am trying to accomplish is to ; a) get the count of players in "my" gang b) get the count of players in the gang you want to declare on c) if your gang has between 6 - 10 players then list only the gangs that have between 0 - 10 players, if your gang has between 11 - 20 players then list only the gangs that have between 11 -20 players, and so on d) give an error message if you choose a gang that is not within your range. I have tried a number of different ways to get this to work and so far no joy. Any suggestions or ideas would be greatly appreciated. Thanks. Here is the code that I am working with.   { echo "<form action='yourgang.php?action=staff&act2=declare' method='post'> <center>Choose who to declare war on.</center><br /> <center><table id='table-1' cellspacing=\"0\" > <input type='hidden' name='subm' value='submit' /> <tr><td>Fighting Unit: <select name='gang' type='dropdown'>"; $q=$db->query("SELECT * FROM gangs WHERE gangID != {$ir['gang']}"); while($r=$db->fetch_row($q)) { echo "<option value='{$r['gangID']}'>{$r['gangNAME']}</option>\n"; } echo "</select></td><td> <input type='submit' value='Declare' /></form></tr></td></table></center>"; }
  18. newttster

    hey guys

    Ya think? ;)
  19. What skills do you have? Experience? It's one thing to offer your services but few would take you up on it without some sort of background. Good luck with your endeavors.
  20. Do like I do and bury them upright on your acreage. That way you have more room for all the bodies. ;)
  21. You achieved clean and simple. Check your spacing on your first dotted line. Find a better location for the title Client Testimonial, throws off the other 2.
  22. Treat donators and non-donators exactly the same. In most games out there, you see the admin treating donators better than nons. Being more lenient with them when it comes to breaking the rules, etc. I understand donators pay for servers etc ... but the nons on your game do a hell of a lot to keep your game alive.
  23. Screenshots would be better.
×
×
  • Create New...