ishmell
Members-
Posts
299 -
Joined
-
Last visited
-
Days Won
6
Content Type
Profiles
Forums
Events
Everything posted by ishmell
-
Re: [mccodes v2] sendcash.php / Same IP Stop You replace your sendcash.php with this i believe. I tried the mod...it works. There is just one problem...when I was sending, it said I had $32 when I had $32,634. So i played around with it and found that putting number_format($ir['money'] in a variable and then displaying it will fix the problem. So here is the new code with Rioters and my changes to fix the money displaying problem and extra bracket problem that Rioter found. <?php include_once ("globals.php"); $money= number_format($ir['money']); $_GET['ID'] = abs(@intval($_GET['ID'])); $_POST['money'] = abs(@intval($_POST['money'])); if(!$_GET['ID']) { echo "Invalid User ID"; echo "[url='index.php']> Go Home[/url]"; } else if($_GET['ID'] == $userid) { echo "You can not send money to yourself."; echo "[url='index.php']> Go Home[/url]"; } else { if($_POST['money']) { // //This is the part you add to other pages. This is the block. // $get_check = sprintf("SELECT lastip FROM users WHERE userid = %u",abs(@intval($_GET['ID']))); $do_check = $db->query($get_check); $ch = $db->fetch_row($do_check); if($ch['lastip'] == $ir['lastip']) { echo "Sorry, sending on same IP is not allowed."; echo "[url='index.php']> Go Home[/url]"; } else if($_POST['money'] > $ir['money']) { print "Sorry, you do not have that much money."; echo "[url='index.php']> Go Home[/url]"; } else { $do_1 = sprintf("UPDATE users SET money = money - %u WHERE userid = %u",abs(@intval($_POST['money'])),($userid)); $do_2 = sprintf("UPDATE users SET money = money + %u WHERE userid = %u",abs(@intval($_POST['money'])),($userid)); event_add($_GET['ID'], "You received \$".number_format($_POST['money'])." from ".$ir['username']."",$c); $db->query($do_1); $db->query($do_2); $get_it = sprintf("SELECT userid, username, money, lastip FROM users WHERE userid=%u",abs(@intval($_GET['ID']))); $it = $db->query($get_it); $er = $db->fetch_row($it); $do_3 = sprintf("INSERT INTO cashxferlogs VALUES('', %u, %u, %u, unix_timestamp(), '%s', '%s')",($userid),($_GET['ID']),($_POST['money']),($ir['lastip']),($er['lastip'])); $db->query($do_3); echo sprintf("You sent \$%d to ID %d.",number_format($_POST['money']),number_format($_GET['ID'])); echo "[url='index.php']> Go Home[/url]"; } } else { echo "<h2>Sending Money</h2> "; echo sprintf("You are sending money to ID: [b]%d[/b].",number_format($_GET['ID'])); echo " You have "; echo sprintf("[b]$$money[/b] you can send."); echo sprintf("<form action='sendcash.php?ID=%u' method='post'>",($_GET['ID'])); echo "Amnt: <input type='text' name='money' /> "; echo "<input type='submit' value='Send' /></form>"; echo " "; echo "<h2>Latest 5 Transfers</h2> "; echo "<table class='table'>"; echo "<tr>"; echo "<th width='25%'>Time</th>"; echo "<th width='25%'>User From</th>"; echo "<th width='25%'>User To</th>"; echo "<th width='25%'>Amount</th>"; echo "</tr>"; $q=$db->query("SELECT cx.*,u1.username as sender, u2.username as sent FROM cashxferlogs cx LEFT JOIN users u1 ON cx.cxFROM=u1.userid LEFT JOIN users u2 ON cx.cxTO=u2.userid WHERE cx.cxFROM=$userid ORDER BY cx.cxTIME DESC LIMIT 5"); while($r=$db->fetch_row($q)) { echo "<tr>"; echo "<td>" . date("F j, Y, g:i:s a",$r['cxTIME']) . "</td>"; echo sprintf("<td>%s [%d] </td>",stripslashes($r['sender']),number_format($r['cxFROM'])); echo sprintf("<td>%s [%d] </td>",stripslashes($r['sent']),number_format($r['cxTO'])); echo sprintf("<td>\$%d</td>",number_format($r['cxAMOUNT'])); echo "</tr>"; } echo "</table>"; } } $h->endpage(); ?>
-
Re: [mccode v2]My Simple Search Streets Yeh that works...im sure $db->query("INSERT INTO inventory VALUES('',ITEM ID,$userid,ITEM QUANTITY)"); would work allot better and less code to. <? include "globals.php"; $userid= $ir['userid']; $turns= $ir['turns']; $rand= rand(0,3); $randmoney= rand(1,100); if($turns == '0') { print "Sorry, you have no turns left today. [url='streets.php']Go Back[/url]"; $h->endpage(); exit; } else if ($rand == '1') { $db->query("UPDATE users SET turns=turns-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); print "While searching the streets you have come across $$randmoney. [url='streets.php']Go Back[/url]"; } else if ($rand == '2') { $db->query("UPDATE users SET turns=turns-1 WHERE userid=$userid"); $db->query("INSERT INTO inventory VALUES('',ITEM ID,$userid,ITEM QUANTITY)"); print "While searching the streets you have come across ITEM NAME. [url='streets.php']Go Back[/url]"; } else { $db->query("UPDATE users SET turns=turns-1 WHERE userid=$userid"); print "While searching the streets you did not come across anything. [url='streets.php']Go Back[/url]"; $h->endpage(); exit; } ?> Im debating on if I want to post the advanced version as a free mod or not....
-
Re: [mccode v2]My Simple Search Streets Not if you want it to do multiple things depending on where you search like my advanced one will have. :wink:
-
Re: [mccode v2]My Simple Search Streets Thanks, in this one you can only find money. But in the advanced one that im on the verge of finishing, you can find items, money, crystals...etc depending on where you search.
-
This is a simple search the streets mod I created. Im on the verge of making this into a more advanced one, which I may post later on. Add the fallowing sql: ALTER TABLE `users` ADD `turns` INT( 11 ) NOT NULL DEFAULT '25'; Add this to cronday.php: $db->query("UPDATE users SET turns=25"); Create a page called streets.php: <? include "globals.php"; print "<center>[b]The Streets[/b] Welcome to the streets {$ir['username']}. You currently have [b]{$ir['turns']} turns[/b] left today! [img=http://i42.tinypic.com/2h6cd41.jpg] <map name='Map'> <area shape='rect' coords='205,274,270,339' href='searchstreets.php'> <area shape='rect' coords='273,3,338,68' href='searchstreets.php'> <area shape='rect' coords='138,138,203,203' href='searchstreets.php'> <area shape='rect' coords='274,138,339,203' href='searchstreets.php'> <area shape='rect' coords='204,137,269,202' href='searchstreets.php'> <area shape='rect' coords='2,138,67,203' href='searchstreets.php'> <area shape='rect' coords='3,69,68,134' href='searchstreets.php'> <area shape='rect' coords='273,207,338,272' href='searchstreets.php'> <area shape='rect' coords='275,70,340,135' href='searchstreets.php'> <area shape='rect' coords='205,70,270,135' href='searchstreets.php'> <area shape='rect' coords='2,274,67,339' href='searchstreets.php'> <area shape='rect' coords='69,274,134,339' href='searchstreets.php'> <area shape='rect' coords='340,342,405,407' href='searchstreets.php'> <area shape='rect' coords='341,409,406,474' href='searchstreets.php'> <area shape='rect' coords='273,410,338,475' href='searchstreets.php'> <area shape='rect' coords='206,410,271,475' href='searchstreets.php'> <area shape='rect' coords='138,410,203,475' href='searchstreets.php'> <area shape='rect' coords='70,408,135,473' href='searchstreets.php'> <area shape='rect' coords='3,407,68,472' href='searchstreets.php'> <area shape='rect' coords='3,341,68,406' href='searchstreets.php'> <area shape='rect' coords='138,342,203,407' href='searchstreets.php'><area shape='rect' coords='68,341,133,406' href='searchstreets.php?event=2'> <area shape='rect' coords='206,342,271,407' href='searchstreets.php'><area shape='rect' coords='274,342,339,407' href='searchstreets.php?event=1'> <area shape='rect' coords='272,272,337,337' href='searchstreets.php'> </map> </center>"; ?> Create a page called searchstreets.php: <? include "globals.php"; $userid= $ir['userid']; $turns= $ir['turns']; $rand= rand(0,2); $randmoney= rand(1,100); if($turns == '0') { print "Sorry, you have no turns left today. [url='streets.php']Go Back[/url]"; $h->endpage(); exit; } else if ($rand == '1') { $db->query("UPDATE users SET turns=turns-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); print "While searching the streets you have come across $$randmoney. [url='streets.php']Go Back[/url]"; } else { $db->query("UPDATE users SET turns=turns-1 WHERE userid=$userid"); print "While searching the streets you did not come across anything. [url='streets.php']Go Back[/url]"; $h->endpage(); exit; } ?> Screenshot:
-
Re: [v1 or v2]Custom Login or Register Example of a simple one i just made for myself... http://www.paladinlords.iiistudios.com/
-
Hello, im willing to make anyone a fully customized login or registration page. You choose color theme and how you want it to look. Maybe even provide pictures if you can. Ill then make it for you. Then if you like it you can purchase it for a low price of $5 u.s. So for 1 custom login or registration page it will be $5 u.s and if you want both custom it will be $10 u.s. Ill make one or two examples of what can be done in a little bit and post them to show you, maybe help catch your interest. EXAMPLES - http://streetsrising.com/logtest.php http://fc18.deviantart.com/fs38/f/2008/336/2/c/Bioware_Mainlay_v1_by_Ishmell.jpg http://ishmell.deviantart.com/art/Bioware-mlay-105188497 Note: I didnt just make those examples right now... I decided to use old ones but yeh anything pretty much can be made.
-
Re: [mccode] Register Coupon Lock Who got owned? All I see are people offering lame ass excuses that are supposedly better than the original posters. Now, we have 2 offered solutions, which both suck! Remove register and make the accounts yourself? Come on! In a closed beta, you could have upto 100 or so accounts still, what dumbass would set theirself up to make 100 accounts through the admin interface? None, I hope! Then we have CHMOD 000 - What are you achieving other than making yourself look dumb? Did he not say it simple enough, so that you understood that he wants - to let people register while blocking access somewhat. Owned? Now to the task at hand, while the script does what it intended, it can be expanded on and made to work better and does not take alot of knowledge in PHP. at the top of register.php, add: $beta_code = 'code here...'; Then add a new field to the form: <input type="text" name="beta" value=""> Then it is as simple as adding a block to the page, pre-processing of data: if($_POST['beta'] != $beta_code) { exit('Incorrect code entered.'); } No need for a new page. Good work. Its nice to see some others that see the proper logic behind this idea.
-
Re: Vote Mod? Well, i really dont want to spend money on it when I can probably make it once I do some more research on it. I was just hoping I wouldnt have to go through the trouble of having to make it. But I would rather make it then spend money on it. Thanks guys for the info along with your offers. Ill look into the matter some more. If you happen to see a mod like what im looking for around then be sure to message me or post a link here. Thanks again :lol:
-
Does anyone know where I can find a mod that gives the users money or tokens or something in return when they vote for the site? I searched the forums and couldnt find anything. Im kind of hoping I wont have to make one to save some time.
-
Re: [MCCodes V2] View User Not bad but defiantly needs to be edited to suit my game if I choose to use it. Good work!
-
Re: [MCC V2] - Brothel Non exploitable I kinda agree with you on this one. I have never found the use for a brothel before.
-
Re: [v2]Simple Mine Yeh he got rid of a couple extra stuff I had in there like alt="" title="" for the image map, made the text display in html instead of having it in php print. And changed the include to require once file. Does the same just easier on the eyes. Thanks Karlos...
-
Re: [v2]Simple Mine No problem!!! 8-)
-
Re: [v2]Simple Mine Thanks, here is a little change for the image. The screenshot added with this post speaks for itself. mine.php <?php include "globals.php"; print " <div align='center'> Welcome to the mine. Not many stop by here anymore for most of the minerals have been used. But you can go ahead and try, you might just get lucky. "; ?> [img=http://i39.tinypic.com/2a7yftj.jpg] <map id="_Image-Maps_6200901041800089" name="Image-Maps_6200901041800089"> <area shape="rect" coords="159,239,236,316" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="3,82,74,155" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="2,163,75,233" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="0,242,74,315" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="161,92,235,155" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="82,102,157,157" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="82,164,153,234" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="81,243,153,313" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="161,163,231,233" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="240,95,312,156" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="239,161,312,234" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="240,240,312,314" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="318,87,391,155" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="318,161,392,233" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="317,240,391,312" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="397,81,470,155" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="398,160,472,234" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="396,241,470,315" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="476,82,549,153" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="476,159,548,234" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="476,242,548,314" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="479,64,549,75" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="405,68,469,78" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="551,317,553,319" href="http://www.image-maps.com/index.php?aff=mapped_users_6200901041800089" alt="Image Mapper" title="Image Mapper" /> </map> <? $h->endpage(); ?>
-
This is a simple mine script that im releasing now and ill release another version later on. The other one will have stats, levels...etc like other mine scripts have before. The reason why im posting this now instead of waiting to add the stats and levels is maybe someone would rather use something simple as this instead. create a mine.php and add this below... <?php // Created by Illes Ignath (a.k.a Ishmell) of III Studios. // Simple mine mod. include "globals.php"; print " <div align='center'> Welcome to the mine. Not many stop by here anymore for most of the minerals have been used. But you can go ahead and try, you might just get lucky."; ?> [img=http://www.image-maps.com/uploaded_files/1200901041329243_Strip_Mining.jpg] <map id="_Image-Maps_1200901041329243" name="Image-Maps_1200901041329243"> <area shape="rect" coords="90,176,573,377" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="221,156,573,175" href="minecheck.php" alt="" title="" /> <area shape="rect" coords="574,378,576,380" href="http://www.image-maps.com/index.php?aff=mapped_users_1200901041329243" alt="Image Mapper" title="Image Mapper" /> </map> </p> <? $h->endpage(); ?> create a minecheck.php and add this below... <?php // Created by Illes Ignath (a.k.a Ishmell) of III Studios. // Simple mine mod. include "globals.php"; $rand = rand(1,5); $rand2 = rand(1,5); //The reward is stated below, which you can change to anything as long as its a field in the users table. $reward = crystals; //The random amount of the reward is stated below which you can change to anything. $randreward = rand(3,25); $userid = $ir['userid']; if($ir['minecheck'] < 3) { if($rand == $rand2) { $db->query("UPDATE users SET minecheck=minecheck+1 WHERE userid=$userid"); $db->query("UPDATE users SET $reward=$reward+$randreward WHERE userid=$userid"); print "While mining through the rubble you came across $randreward $reward. [url='mine.php']Go Back[/url]"; } else { $db->query("UPDATE users SET minecheck=minecheck+1 WHERE userid=$userid"); print "Sorry, you did not find anything. [url='mine.php']Go Back[/url]"; } } else { print "Sorry, but you cant mine anymore today. [url='index.php']Go Back[/url]"; } ?> Add the fallowing below to cron_day.php $db->query("UPDATE users SET minecheck=0"); SQL alter table users add minecheck int(11) not null default '0' Screenshot I believe that should be all for now. You can change the 3 in minecheck.php to however many times you want to allow users to mine a day.
-
Re: [mccode V2] Attack :) The only problem is when using a weapon it still says you swing at them. Other than that I think its pretty good. No bugs with it.
-
Re: [mccode V2] Attack :) It looks good. Ill be sure to try it out.
-
Re: Gang Respect? ---
-
mccode-v2 Shops item stock - as requested (Not Tested)
ishmell replied to radio_active's topic in Free Modifications
Re: [MCcode v2] Shops item stock - as requested (Not Tested) Ah yes, works great. Great mod great idea guys. :-D -
Re: Gang Respect? Oh wow this sounds really good. Also sounds big and tough to make. hmm
-
Re: [mccodes v2.0] Yet Another Attack A screenshot would be nice. 8-)
-
Re: [mccode v2] userADS It looks good. Good job!
-
mccode-v2 Shops item stock - as requested (Not Tested)
ishmell replied to radio_active's topic in Free Modifications
Re: [MCcode v2] Shops item stock - as requested (Not Tested) lol weird it still wont show shop id. But this time when I place in shop id in the url...it comes up just the table is a little wack. The quantity and buy seems to be combined lol. And the buy text field is to big you may want to set a size for it. And there is a random item price underneath all that which I think is the javascript price add-on for it changes when I change the buy number. So you may want to look over the table. I can post a screen if you want. :-D -
mccode-v2 Shops item stock - as requested (Not Tested)
ishmell replied to radio_active's topic in Free Modifications
Re: [MCcode v2] Shops item stock - as requested (Not Tested) ok well I got this on shops.php Parse error: syntax error, unexpected T_INT_CAST in /home/blackshe/public_html/streetsrising/shops.php on line 9 line 9: $_GET['shop'] = abs(int)$_GET['shop']); ^^ neither of ur methods worked for the shop ID because i just got that same error o.o