
UCC
Members-
Posts
444 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by UCC
-
Re: !!**Whore House Mod FREE**!! Well then.....here ya go..... http://notoriousonline.net/ho_house.jpg Peace. :roll: :roll:
-
How do I use a [code][/code] type function on a normal page?
UCC replied to Arson's topic in Other Programming
Re: How do I use a type function on a normal page? You might want to take a look at yourself sometime. It's been clear to me you're very sensative to anything you dont like. And I'm not just talking about this thread. But speaking of this thread, there was absolutely nothing wrong/disrespectful with the way Deception posted his reponse. -
Re: attack page blank ? Sounds like you have a die statement or an exit statment aborting the rest of the script in certain situations
-
Re: right hand side main menu I think you have that backwards. Dreamweaver is for retards who can't troubleshoot their own code. Notepad is for coders who know what they're doing inside and out. Of course sometimes Notepad is being funky and I use wordpad.
-
Re: **!!Help!!** I thought about requiring Home Insurance. If you dont have it, a natural disaster could come through and destroy your estate. I haven't done it yet though
-
Re: New mod idea Sure you can. It's not the easiest mod to make but it's not a unique idea. The attack.php file that comes with the game is kinda tricky to sort through. But it certainly can be done. I've done it on my game.
-
Re: i need help I dont care how old you are, if you can't code or dont have an equal parter who can code, forget about it. I guess the one exception is if you have plenty of cash to throw around.
-
Re: MC2 Codes - Are they worth it? There's more than 1 way to skin a cat....
-
Re: Free Advertising Aint that truth. :) A lot of people just dont get interested in games unless they have friends who keep them interested.
-
Re: MC2 Codes - Are they worth it? I can't imagine going from 2.0 to anything lower. It confuses me. But I can Upgrade to 2.0 very easily.
-
Re: MC2 Codes - Are they worth it? Version 2.0 is written so you require the globals.php. That, among other things, generates the $ir variable. You can still use $_SESSION variables if you wish, I use em all over.
-
Re: MC2 Codes - Are they worth it? From what I've seen on here, it doesn't. But unfortunately, some user's age shows through in their posts.
-
Re: ****FREE Mining mod**** Cool modification, although I'm not taking the time or energy to buy proper equipment. Since I can't afford equip, what other modifications did you put in place?
-
Re: ****FREE Mining mod**** It appears you gain mining exp every time you mine. The mine level is determined in the same was your normal leveling exp. Looks like it's using the same forumula for exp_needed. I got it running on my server but I want to develop a big-picture around the system before using it. I dont really want to add a lot more cash and gold into my economy. I might make you find other items while mining which you could trade in for stuff. Not certain yet.
-
Re: ****FREE Mining mod**** I'll be porting it over to 2.0
-
Re: ****FREE Mining mod**** Looks promising. I'll play with it over the weekend and see how I might be able to use it.
-
Re: Ajax chat script Good stuff. Looking at your spam words, my users must play your games as well. LOL. What about protecting against HTML code? I had a problem with my chat system and I had to do a search and replace for all html tags.
-
Re: Hey Can Someone Help Me Please It's hard to say because I dont know what you may have forgot to copy.paste. I usually do a > 0 in my If strings but I think your way should work too. if ($ir['donatordays']) { print "<a href=example.php>example</a>"; }
-
Re: clickable fists I'd probably just hard code it myself within attack.php. I'd create a fake weapon in the items table called Fists. Then during attack, if the person has no items to use, it does a Print line listing the item 'Fists' as a usable weapon. Then of course if your attack code is done right, and blocks invalid weapon Ids, you'd have to add an exception to that rule that always allows fists. If you wanted to go one step further, you could add an IF statement that doesn't allow you to use fists if you're already wielding a weapon. This would prevent user tinkering to a degree. Or maybe you want them to be able to do both. I can't imagine spending more than 30 minutes on something like that
-
Re: Multi Account Problem. The code you're looking at is for complete IP bans. If you want to block a particular IP completely from your game.
-
Re: Black Jack That code helped a lot but there is still a problem somewhere. My dealer currently shows: 8, 7, Ace, Queen, 2 And thinks the dealer has 18. It completely skiipped counting the Queen. Just so everyone knows.
-
Re: Black Jack $total_cards = $_SESSION['total_cards']; for($i = 1; $i < ($total_cards + 1); $i++) { if ($card[$i] == 13 OR $card[$i] == 26 OR $card[$i] == 39 OR $card[$i] == 52){ $value = '11'; } else if ($card[$i] == 12 OR $card[$i] == 25 OR $card[$i] == 38 OR $card[$i] == 51){$value = '10'; } else if ($card[$i] == 11 OR $card[$i] == 24 OR $card[$i] == 37 OR $card[$i] == 50){$value = '10'; } else if ($card[$i] == 10 OR $card[$i] == 23 OR $card[$i] == 36 OR $card[$i] == 49){$value = '10'; } else if ($card[$i] == 9 OR $card[$i] == 22 OR $card[$i] == 35 OR $card[$i] == 48){$value = '10'; } else if ($card[$i] == 8 OR $card[$i] == 21 OR $card[$i] == 34 OR $card[$i] == 47){$value = '9'; } else if ($card[$i] == 7 OR $card[$i] == 20 OR $card[$i] == 33 OR $card[$i] == 46){$value = '8'; } else if ($card[$i] == 6 OR $card[$i] == 19 OR $card[$i] == 32 OR $card[$i] == 45){$value = '7'; } else if ($card[$i] == 5 OR $card[$i] == 18 OR $card[$i] == 31 OR $card[$i] == 44){$value = '6'; } else if ($card[$i] == 4 OR $card[$i] == 17 OR $card[$i] == 30 OR $card[$i] == 43){$value = '5'; } else if ($card[$i] == 3 OR $card[$i] == 16 OR $card[$i] == 29 OR $card[$i] == 42){$value = '4'; } else if ($card[$i] == 2 OR $card[$i] == 15 OR $card[$i] == 28 OR $card[$i] == 41){$value = '3'; } else if ($card[$i] == 1 OR $card[$i] == 14 OR $card[$i] == 27 OR $card[$i] == 40){$value = '2'; } $total_value = $total_value + $value; } $ace = 0; $comp_total_cards = $comp_total_cards + 1; $i = $comp_total_cards + 12; if ($card[$i] == 13 OR $card[$i] == 26 OR $card[$i] == 39 OR $card[$i] == 52){ $value = '11'; } else if ($card[$i] == 12 OR $card[$i] == 25 OR $card[$i] == 38 OR $card[$i] == 51){$value = '10'; } else if ($card[$i] == 11 OR $card[$i] == 24 OR $card[$i] == 37 OR $card[$i] == 50){$value = '10'; } else if ($card[$i] == 10 OR $card[$i] == 23 OR $card[$i] == 36 OR $card[$i] == 49){$value = '10'; } else if ($card[$i] == 9 OR $card[$i] == 22 OR $card[$i] == 35 OR $card[$i] == 48){$value = '10'; } else if ($card[$i] == 8 OR $card[$i] == 21 OR $card[$i] == 34 OR $card[$i] == 47){$value = '9'; } else if ($card[$i] == 7 OR $card[$i] == 20 OR $card[$i] == 33 OR $card[$i] == 46){$value = '8'; } else if ($card[$i] == 6 OR $card[$i] == 19 OR $card[$i] == 32 OR $card[$i] == 45){$value = '7'; } else if ($card[$i] == 5 OR $card[$i] == 18 OR $card[$i] == 31 OR $card[$i] == 44){$value = '6'; } else if ($card[$i] == 4 OR $card[$i] == 17 OR $card[$i] == 30 OR $card[$i] == 43){$value = '5'; } else if ($card[$i] == 3 OR $card[$i] == 16 OR $card[$i] == 29 OR $card[$i] == 42){$value = '4'; } else if ($card[$i] == 2 OR $card[$i] == 15 OR $card[$i] == 28 OR $card[$i] == 41){$value = '3'; } else if ($card[$i] == 1 OR $card[$i] == 14 OR $card[$i] == 27 OR $card[$i] == 40){$value = '2'; } function display_card( $card ){ //Type if ($card < 14){ $type = "s"; } else if ($card < 27){ $type = "c"; } else if ($card < 40){ $type = "h"; } else { $type = "d"; } //Numer if ($card == 13 OR $card == 26 OR $card == 39 OR $card == 52){$card = '14'; } else if ($card == 12 OR $card == 25 OR $card == 38 OR $card == 51){$card = '13'; } else if ($card == 11 OR $card == 24 OR $card == 37 OR $card == 50){$card = '12'; } else if ($card == 10 OR $card == 23 OR $card == 36 OR $card == 49){$card = '11'; } else if ($card == 9 OR $card == 22 OR $card == 35 OR $card == 48){$card = '10'; } else if ($card == 8 OR $card == 21 OR $card == 34 OR $card == 47){$card = '9'; } else if ($card == 7 OR $card == 20 OR $card == 33 OR $card == 46){$card = '8'; } else if ($card == 6 OR $card == 19 OR $card == 32 OR $card == 45){$card = '7'; } else if ($card == 5 OR $card == 18 OR $card == 31 OR $card == 44){$card = '6'; } else if ($card == 4 OR $card == 17 OR $card == 30 OR $card == 43){$card = '5'; } else if ($card == 3 OR $card == 16 OR $card == 29 OR $card == 42){$card = '4'; } else if ($card == 2 OR $card == 15 OR $card == 28 OR $card == 41){$card = '3'; } else if ($card == 1 OR $card == 14 OR $card == 27 OR $card == 40){$card = '2'; } echo "[img=img/" . $type . $card . ".gif]"; }
-
Re: [Lite] Bugget streets v1 Okay that makes sense. I dont have a donator days market nor a steps market. I figured a donators market discourages donating because the big donators can sell all the extra days they dont need. And I didnt want to have a steps market because people who dont have time to play can just sell their steps every day and that just puts more freebies into the economy I'm trying to keep under control.
-
Re: Black Jack The problem is in the three large blocks of code that assign values and images to the card numbers. The Aces are all jacked up and that gets all your other numbers off count. In the display pic portion, you also need to make changes to the Type code where it assigns suits. Took me about 20 minutes to make neccessary changes.
-
Re: Black Jack I had a 9 and a 6. I hit Stay. The dealer had a Queen. The dealer beat me with a score of 17. The catch? Here is the cards the dealer showed: Queen, 3, Ace, Queen, Jack, 3. I'm not that great at math but I think that is 37. EDIT: Okay. It happened a second time. Me: 6, 3, 5, Stand. Dealer: 10, 5, Ace, 8, 10, 2, K, 8, J, 2, 7. I Lose. The only common thread is the Ace as the third card. The only time it doesnt error is when that 3rd Ace gives 21. Edit X2: Here's an interesting one. Dealer: 4, Ace, 7, Queen, 7 Game thinks dealer has 19: Here's some cariable counts after each card: The comp_total_value actually drops with the 7. $comp_total_value $total_value $value 0 8 2 4 8 4 15 8 11 12 8 7 12 8 10