shaved92bravada
Members-
Posts
234 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by shaved92bravada
-
Re: free welfare mod if($ir['user_level'] == 2) { die("You Are Not An Admin!!!"); } I'm pretty sure thats not going to work correctly, shouldn't it be more like this if($ir['user_level'] > 2) { die("You Are Not An Admin!!!"); } or if($ir['user_level'] != 2) { die("You Are Not An Admin!!!"); } just tryin to help you out a bit.
-
Re: Updated Mailbox [v1] is your v1 or v2 grim?? I had the same problem but I fixed it.
-
Re: Updated Mailbox [v1] lol well I have a temporary fix for it, till someone else comes up with something better. if($ir['userid']<> $r['mail_to']) { die("Not your mail, what are you a snoop???"); } put that after $sent=date('F j, Y, g:i:s a',$r['mail_time']); which you will find in function mail_view () BUT one problem, it won't let you read the messages you sent to someone else. lol but it does stop others from reading other peoples mail as far as I know. :D Don't call me a noob or anything cause I know I am, I am just trying to help.
-
I need some help with something, like on the give item to user function or give item to all users either one, I want to post an even that tells them what item I gave them. So far the even tells them that I gave them X amount of item id # X. Lol how many users or me for that matter know what every items id# is. So what should I put in the script to get the itmname?? function mass_give_item_sub() { global $db,$ir,$c; $q=mysql_query("SELECT * FROM users WHERE fedjail=0",$c); while($r=mysql_fetch_array($q)) { item_add($r['userid'], $_POST['item'], $_POST['qty']); event_add($r['userid'],"The population has just been given an item {$_POST['item']}, Click [url='inventory.php']Here[/url] to check.",$c); print "Item Sent To {$r['username']}</br>"; } print " Mass item sending complete!</br> Theres no need to send a mass mail because they just got an event."; }
-
Re: $10 Discount for CE Members I will probably be purchasing this as well, mainly because of the high comments about the service and support. I don't care if it has bugs or whatnot as long as the person selling it is there to help work them out ya know. So I look forward to it.
-
Re: Quick help please in my personal opinion the only pages you really need to color code the names would be usersonline, userlist, and viewuser. Because if someone is staff they would know and wouldn't really need their name to be colored on the main page. So like I said if it is on either of those 3 then I can help ya with it, if it is any of the others then there isn't much I could do lol.
-
Re: bank Check your bank under function deposit () and make sure it looks like that. V2 $gain=$_POST['deposit']; $ir['bankmoney']+=$gain; $db->query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['deposit']} where userid=$userid"); print "You deposited \${$_POST['deposit']} in your account. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank.php']> Back[/url]"; V1 $gain=$_POST['deposit'; $ir['bankmoney']+=$gain; mysql_query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['deposit']} where userid=$userid",$c); print "You hand over \${$_POST['deposit']} to be deposited, [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank.php']> Back[/url]";
-
Re: Quick help please This is what I use to change the color of my staff usernames if($r['user_level'] > 1 ) { $r['username'] = "<font color=#FF00D4>{$r['username']}</font>} but if you want to make it that way on the mainmenu and stuff like for when a staff member can see their own name then this should work if($ir['user_level'] > 1 ) { $ir['username'] = "<font color=#FF00D4>{$ir['username']}</font>} You can change the color to whatever you want it to be, I use hot pink cause one of my staff didn't think I would. lol
-
Re: Quick help please where exactly are you wanting the names to be different colors?? I made the color change in viewuser.php, userlist.php, and usersonline.php So if it is one or all of those three I can help ya lol.
-
Add a Radio to your site [Free mod] v 0.01
shaved92bravada replied to mdshare's topic in Free Modifications
Re: Add a Radio to your site [Free mod] v 0.01 sweet I am definately going to be using this. Thanks md . And thanks cyanide for making the images too. edit* now using and works like a charm....... -
Re: Free Loan Shark System I did some editing to this one myself to make it a little more real. Cause when I think of a loan shark I think mean guy who gives you X amount of days to pay back what you owe him or else. So with that being said. Oh and this is the V2 codes that I edited, wouldn't be hard at all to convert back to v1 though. And please everyone bare with me here, this is one of the first times I have posted something on here I have edited do to all the damn negative comments, so if you find a bug or something in the work I did, then just tell me so I can learn from my mistakes and fix it the next time. Thanks Almost forgot to say what this does. It gives the player 15 days to pay back the loan, at the end of that 15 days if the loan is not paid back they get sent to the hospital. Sql ALTER TABLE `users` ADD `paytime` INT( 11 ) NOT NULL DEFAULT '0' replace your loanshark.php with this one <?php session_start(); require "globals.php"; switch($_GET['action']) { case 'borrow': borrow_money_start(); break; case 'borrowed': borrow_money(); break; case 'repay': repay_money_start(); break; case 'repayed': repay_money(); break; case 'invest': invest_money(); break; case 'invested': invested_money(); break; default: loanshark_main(); break; } function loanshark_main() { global $ir,$c,$userid,$h; $maxloan=$ir['level']*2100; echo "<h1>Loan Shark</h1> You call up a friend and ask to borrow some money, but your friend doesn't have any. He does give you the number to a loan shark. You currently have a loan out of \${$ir['loan']} The max you can borrow is \$$maxloan - [url='loanshark.php?action=borrow']Take out a Loan[/url] - [url='loanshark.php?action=repay']Repay Loan[/url] - [url='loanshark.php?action=invest']Invest Money[/url] "; } function borrow_money_start() { global $ir,$c,$userid,$h; $maxloan=$ir['level']*2100; echo "The max amount you can borrow is \$$maxloan You currently have a loan of \${$ir['loan']} <form action='loanshark.php?action=borrowed' method='post'> Ammount: <input type=text value='$maxloan' name=borrowed> <input type=submit value='Borrow'>"; } function borrow_money() { global $ir,$c,$userid,$h; $maxloan=$ir['level']*2100; $loan=$ir['loan']; if ($loan == $maxloan) { die("You have already taken out the max loan possible you must pay it back before you can borrow more. > [url='loanshark.php?action=repay']Repay[/url]"); } if ($_POST['borrowed'] >= $maxloan+1) { die("You are trying to borrow more then your max loan > [url='loanshark.php?action=borrow']Back[/url]"); } mysql_query("UPDATE users SET loan=loan+{$_POST['borrowed']}, paytime=15 WHERE userid=$userid",$c); mysql_query("UPDATE users SET money=money+{$_POST['borrowed']} WHERE userid=$userid",$c); echo"You Borrowed {$_POST['borrowed']} from the loan shark > [url='loanshark.php']Back[/url]"; } function repay_money_start() { global $ir,$c,$userid,$h; echo"You currently have a loan of \${$ir['loan']} <form action='loanshark.php?action=repayed' method='post'> Ammount: <input type=text value='{$ir['loan']}' name=repayed> <input type=submit value='Repay'>"; } function repay_money() { global $ir,$c,$userid,$h; if($ir['loan'] <= 0) { die("You are trying to payback more then u have to. > [url='loanshark.php']Back[/url]"); } if($_POST['repayed'] == $ir['loan']) { mysql_query("UPDATE users SET paytime=0 WHERE userid=$userid",$c); } mysql_query("UPDATE users SET loan=loan-{$_POST['repayed']} WHERE userid=$userid",$c); mysql_query("UPDATE users SET money=money-{$_POST['repayed']} WHERE userid=$userid",$c); echo"You repayed \${$_POST['repayed']} to the loan shark > [url='loanshark.php']Back[/url]"; } mysql_query("UPDATE users SET loan=loan-{$_POST['repayed']}, paytime=0 WHERE userid=$userid",$c); mysql_query("UPDATE users SET money=money-{$_POST['repayed']} WHERE userid=$userid",$c); echo"You repayed {$_POST['repayed']} to the loan shark > [url='loanshark.php']Back[/url]"; } function invest_money() { global $ir,$c,$userid,$h; echo"Here you can invest money on the spot and watch your money sink or float its simple you state the amount you wish to invest in the box below and click Invest You have [b]{$ir['investments']}[/b] daily invest statment's left <form action='loanshark.php?action=invested' method='post'> Ammount: \$<input type=text name=invest> <input type=submit value='Invest'> "; } function invested_money() { global $ir,$c,$userid,$h; if ($ir['investments'] < 1) { die("You have used up all your daily investments > [url='loanshark.php?action=invest']Back[/url]"); } if(rand(1,100) <= 50) { $gainedmoney=(int) rand(1,30); print "<font color=green>[b]Result: You hand over {$_POST['invest']} to the old man at the counter One week later you get a phone call its the old man he explains that your investment has payed off You invested \${$_POST['invest']} and ended up making \$$gainedmoney extra.</font>[/b] You have [b]{$ir['investments']}[/b] daily invest statment's left > [url='loanshark.php?action=invest']Try Again[/url]"; mysql_query("UPDATE users SET investments=investments-1",$c); mysql_query("UPDATE users SET money=money+$gainedmoney WHERE userid=$userid",$c); } else { if ($ir['investments'] < 1) { die("You have used up all your daily investments > [url='loanshark.php?action=invest']Back[/url]"); } $lostmoney=(int) rand(1,10); mysql_query("UPDATE users SET money=money-$lostmoney WHERE userid=$userid", $c); echo"<font color=red>[b]Result: You invested \${$_POST['invest']} and lost \$$lostmoney out of your overall investment. One week later you get a phone call its the old man he explains that your investment has failed </font>[/b] You have [b]{$ir['investments']}[/b] daily invest statment's left > [url='loanshark.php?action=invest']Try Again[/url] "; mysql_query("UPDATE users SET investments=investments-1",$c); } } $h->endpage(); ?> add this to your daily cron $q=$db->query("SELECT * FROM users WHERE paytime=0 AND loan > 0"); while($r=$db->fetch_row($q)) { $userid=$r['userid']; $reasonhosp='Didnt pay back the loan shark in time.'; $db->query("UPDATE `users` SET hospital=hospital+100, hospreason='$reasonhosp', paytime=5 WHERE userid={$r['userid']}"); $text='You did not pay the loan shark back in time so he sent some goons over who put you in the hospital.He has given you five more days to pay it back!!'; $db->query("INSERT INTO events VALUES('',{$r['userid']},UNIX_TIMESTAMP(),0,'$text')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$r['userid']}"); } and I also did a little extra something to help my users remember how many days they had to pay the money back. This is optional so you do not have to do this. Open header.php find if($ir['hospital']) { print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes. "; } Above or below doesn't matter really. Paste if($ir['paytime'] > 0) { $piperc=(int) ($ir['paytime']*7); $piopp=100-$piperc; print" <center>[b]Days Left To Pay Back:[{$ir['paytime']}][/b] Days <img src=bluebar.png width=$piperc height=5><img src=barred.gif width=$piopp height=5> </center>"; } If you want its real easy to change the amount of days, or time in the hospital or anything like that, but if you have any questions pm me and I will help to the best of my ability. If you do change the amount of days then you will need to change the $piperc=(int) ($ir['paytime']*7); part above to make the bar look correct. I am not sure of the exact number you will need, I just experimented till I got it right.
-
Need Help With Reward Script
shaved92bravada replied to shaved92bravada's topic in General Discussion
Re: Need Help With Reward Script Well so far I have the script made to where it gives you the reward and an event, So now I just have to figure out how to post the link on the voting site under incentive to make it contact the script correctly. Once I get this working correctly I will post it up if anyone else wants it. -
Re: IP Banning tool [v1] Wish this would have come out sooner lol. Gets tiring having to add the ip's manually. Wow no one has asked for this for V2 yet...
-
Need Help With Reward Script
shaved92bravada replied to shaved92bravada's topic in General Discussion
Re: Need Help With Reward Script Well I need it to be something like what the donatordone.php does. Once a user votes most voting sites link can be setup to notify a reward script telling it that the user actually voted, once that is done then the rewards script gives the user their reward, whether it be money, crystals, etc. I know they are out there, just don't want to beg for one or anything and figured it would be easier to ask for help. say I make my vote link this http://www.toprpgames.com/vote.php?idno= 1705 &userid=[userid] then once the user actually votes then they will recieve their reward because the voting site notifies the script that &userid actually voted. Does that help with anything?? -
Re: [Free] Log Suspicious Users Works great, thanks for the mod. !!!!!!
-
Need Help With Reward Script
shaved92bravada replied to shaved92bravada's topic in General Discussion
Re: Need Help With Reward Script doesn't really have to be custom just something that gives them the reward once they vote. I looked through the tutorials on voting sites and just couldn't figure it out. like I said I am still a noob so one already made would be great. -
moved to requests forum, sry didn't realize which one I was in
-
Re: HELP if you use the installer that I gave you it will show you what you need to replace your old crons with........... all you have to do is use what the installer tells you too and it will work. Trust me
-
Re: HELP email sent, no I don't use msn sry. Not enough time lol between my game, working, and working on my car.
-
Re: HELP ok gimme an email address and I will send ya something. It should fix your problems, I will also explain how to get your crons to work.
-
Re: HELP Not if you delete the part with the sql in it, one sec and I will see what I can do for ya.
-
Re: HELP like mdshare said, just delete the part in the installer that installs the dbdata
-
Re: Quantify Mod for V2! I retract my previous statement, it just didn't quantify when sending it through the admin panel, worked great elsewhere.
-
Re: Quantify Mod for V2! from what I can tell, he is sort of right, unless I am doing something wrong. lol Sent myself the same item twice didn't quantify. Gonna have too look and see if I can make this work, I don't want a quantify link thats for sure.
-
mccode-v1 quantify items automatically
shaved92bravada replied to seanybob's topic in Free Modifications
Re: [mccode] quantify items automatically anyone ever make a more efficient auto quantify for V1??