Jump to content
MakeWebGames

fuzzyDCR

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by fuzzyDCR

  1. I currently have a decent little chatbox...I have it saving in a database...Today I was temporarily suspended by my hosting company which is supposedly unlimited for exceeding there limits...Which really doesnt make sense to me. However, it is what it is...I am wondering how I would go about changing my chatbox to report to a txt file and or...how to set it up to truncate the table once every 5 hours or something similar. I know I can set it up on a cron to clear at reset each night...which just might be the best idea...But how do I go about this. Basically I am a novice coder by any means and need the help. I am willing to give a reward to those who help me if it is needed.
  2. hmmm interesting Bineye when you get time stop by. I want to run a few things by you. I did something that somewhat worked, but it automatically deposited any money in pocket. I only want to happen when the job pays out at game reset.
  3. I would like a direct deposit option on jobs. I am wondering if anyone is interested in making this for me. What i would like it to do is have an option where you lose 5% of your daily wage from your job, but instead of having it go directly to your pocket it would deposit it in the city bank. You would have the option to turn this on or off at the bank I would think...or maybe at your job...either way Instead of having the pay be sitting in your account and vultures taking it all from you the second you get it, you would have the option to have it direct deposited.
  4. I would love to use this...But how would we remove staff and bots from the user_stats list? Example : Strength, agility, Total stat.
  5. hmmm...appears you just troll around...sad
  6. I think you should be able to Have 1 weapon of each hand. Shoulder armor, Chest armor, Wrist Armor, Gloves, Pants, boots, helmet. But certain weapons would be too heavy possibly to use two at a time...Like a sniper rifle.
  7.   I never claimed to be able to code anything. I have tried and I am not there yet. I have not started PHP yet, next semester I am taking PHP since it is the earliest I am able. Right now I am going off of an intro book which I don't completely follow, and what I have learned from people on this forum, cronwerks, and ultimaPHP forums. But thanks for pointing it out again...not that I didn't already know that I didn't know PHP, but to do it in a rather rude manner.
  8. Anytime I do a copy and paste to take a look at a mod that doesnt have screenshots and check them they don't work. There is always some form of error. Even some that worked perfectly a month ago that I had planned on working on at a later time and adding. Since the forums have been updated I have not been able to get a single mod to work properly, unless they are newly posted mods.
  9. For some reason every post on these forums I can no longer get to work? What happened to these forums? It's not the codes, it is the forums...They are making the code all whacky???Any help?
  10. I have tried tons of different things, and I am reading books, and looking online and am a student at a technical college, and I am just missing something obviously. :-\
  11. Can someone repost this since the forums have been destroyed, and 90% of posts don't work correctly anymore.
  12. I would love to have this mod but I can't seem to get it to work. All the links to pages give me errors saying they need a , or ; and if I add them they still have the same error...
  13. hmmm I like this and am using it right now. But it killed Referals for my members. They no longer get them at all.
  14. hmmm...I get errors using that code... Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home/wereatw1/public_html/account.php on line 44
  15. So i was directed to this and told to give it a try....This is what I am getting now... Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home/wereatw1/public_html/account.php on line 44 and here is the code that I am trying to put in....any help? <?php include "globals.php"; echo "<h3>Edit Account</h3>"; if($_POST['username'] && $_POST['loginname'] && $_POST['email']) { foreach($_POST as $k => $v) { $v=trim($v); } $username=$db->escape($_POST['username']); $loginname=$db->escape($_POST['loginname']); $email=$db->escape($_POST['email']); $gender=$db->escape($_POST['gender']); $displaypic=exif_imagetype($_POST['newpic']) ? $_POST['newpic'] : ""; $forumpic=exif_imagetype($_POST['forums_avatar']) ? $_POST['forums_avatar'] : ""; $forum_sig=$db->escape($_POST['forums_sig']); $prof_sig=$db->escape($_POST['prof_sig']); $unqr=$db->query("SELECT `userid` FROM `users` WHERE `username`='{$username}'"); $lnqr=$db->query("SELECT `userid` FROM `users` WHERE `login_name`='{$loginname}'"); $emqr=$db->query("SELECT `userid` FROM `users` WHERE `email`='{$email}'"); if($db->num_rows($unqr)) { $error=true; echo "Username in use. "; } if($db->num_rows($lnqr)) { $error=true; echo "Login name in use. "; } if($db->num_rows($emqr)) { $error=true; echo "Email in use. "; } if($error==false) { $db->query("UPDATE `users` SET `username`='{$username}',`login_name`='{$loginname}',`email`='{$email}',`gender`='{$gender}',`display_pic`='{$displaypic}',`forums_avatar`='{$forumpic}',`forums_signature`='{$forum_sig}',`profsignature`='{$prof_sig}' WHERE `userid`='{$ir['userid']}'"); } if(($_POST['newpw'] || $_POST['newpw2']) && $_POST['newpw'] !=$_POST['newpw2']) { echo "New passwords do not match."; } else { $pass=md5($_POST['newpw']); $db->query("UPDATE `users` SET `userpass`='{$pass}' WHERE `userid`='{$ir['userid']}'"); } } else { echo "<form method=\"post\"><table width=\"95%\"> <tr><td>Username:</td><td><input type=\"text\" name=\"username\" value=\"".htmlspecialchars($ir['username'])."\" /></td></tr> <tr><td>Login Name:</td><td><input type=\"text\" name=\"loginname\" value=\"".htmlspecialchars($ir['login_name'])."\" /></td></tr> <tr><td>Email:</td><td><input type=\"text\" name=\"email\" value=\"".htmlspecialchars($ir['email'])."\" /></td></tr> <tr><td>Password:</td><td><input type=\"password\" name=\"newpw1\" /></td></tr> <tr><td>Confirm Password:</td><td><input type=\"password\" name=\"newpw2\" /></td></tr> <tr><td>Gender:</td><td><select name=\"gender\">" $gens=array('Male','Female'); foreach($gens as $k => $v) { if($ir['gender']==$v) { echo "<option selected=\"selected\">{$v}</option>"; } else { echo "<option>{$v}</option>"; } } echo "</select></td></tr> <tr><td>Display Pic:</td><td><input type=\"text\" name=\"newpic\" value=\"".htmlspecialchars($ir['display_pic'])."\" /></td></tr> <tr><td>Forum Avatar:</td><td><input type=\"text\" name=\"forums_avatar\" value=\"".htmlspecialchars($ir['forums_avatar'])."\" /></td></tr> <tr><th colspan=\"2\">Forum Signature</th></tr> <tr><td colspan=\"2\"><textarea rows=\"10\" cols=\"50\" name=\"forums_sig\">".htmlspecialchars($ir['forums_signature'])."</textarea></td></tr> <tr><th colspan=\"2\">Profile Signature</th></tr> <tr><td colspan=\"2\"><textarea rows=\"20\" cols=\"100\" name=\"prof_sig\">".htmlspecialchars($ir['profsignature'])."</textarea></td></tr> <tr><td></td><td><input type='submit' value='Save' /></td></tr> </table></form>"; } $h->endpage(); exit(); ?>
  16. I understand how, i just can't figure out where. When ever I do anything in the preferences it doesnt work. I tried doing it with wildcard, and the way posted above, and I must be doing it in the incorrect spot.
  17. So today some people decided to have some fun on my game and everyone changed there name to the same...Like 15 people...I tried to figure out a way to stop this from happening and couldn't figure it out. Any help would be great. I would also like to be able to prevent people from using certain names in general, or even have certain words in there names...Like Admin...Right now i have the name ADMIN blocked, but can't figure out how to make it so they cant put stuff like Admin-Brad, or Admin-God, or Adminsdeath. Any help if great enough will be compensated.
  18. I would love to use this...but I can't get it to work...any help?
  19. hmm...I seriously can't get this to work...what am I doing wrong? The SQL appears correct...but there is no way to actually add days to the market, or anything...or at least not that i can see when i have it up on my site.
  20. yep that is exactly what I am looking for.
  21. hm... this works great, but there is one bug that i can't figure out where the problem is. Where it says LAST 10 GANG EVENTS when ever someone declares war on your gang it links to player id instead of gang id. Which is odd because everything else works correctly. If i declare on someone it links properly, if They declare on me it links properly to my gang but not theres....so this is buggy. Also I see that the surrender does the same thing. If they offer the surrender and I click the link it will go to what the gangs id (6) and will go to player id 6 instead.
  22. I am looking for an alignment system. A good vs evil type thing. Something that would add a value if a good person attacks an evil person.   So a good person with 100 good alignment attacks   They defeat a evil person with 100 alignment.   Good player would gain 1 alignment. and the evil person would lose 1 alignment so would end up being -101 alignment and be more evil.   The good player would then have +101 Good alignment.   someone with +1000 alignment would give the other person they are attacking -10 alignment when defeating them. However if they attacked a good person they would lose alignment and give a + to the good player.   If you could code something like this, or name a price. I am a fulltime student and don't have all that much cash, but can try to work something out. Please let me know.
  23. I have everything working except my darn estate.php. I have spent days trying to figure this out! anyone have a good working estate.php?
  24. dayo that doesnt work at all.
  25. I like this chat it works, but how do I link it into my members when they join the room? Currently they join the room and are called website visitor? How do I fix this?
×
×
  • Create New...