
lucky3809
Members-
Posts
1,115 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Everything posted by lucky3809
-
mccode-v2 New and improved inventory code sources for free!
lucky3809 replied to MDK666's topic in Free Modifications
I have not used the one click script, its to basic for me lol. I like clicking to attack, then choosing the option to leave, mug or hospital. =) -
mccode-v2 New and improved inventory code sources for free!
lucky3809 replied to MDK666's topic in Free Modifications
nice update with the pic, ive done something similar but not like you have coded it lol. I use this coding per weapon slot for my images if($equip[$ir['equip_helmet']]['itmid']){ echo ''; }else{ echo '';} -
Got this when i tried checking it out I clicked low and got ... QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (`userid`=3)' at line 1 Query was UPDATE `users` SET `money`=`money`- WHERE (`userid`=3) May want to fix that.
-
Thank you Dave that did work!! :-)
-
Oh yeah about... POSSIBLE: Limit to how many mails they can have at one time, to save space in your mail table. Just add the 30 day cron to clean out all mailbox's on server every 30 days helps with the table, instead of setting a limit, unless in course a person is receiving 1k mail a day then yeah to the limiting lol. @danger boy that would work also, to stop spam, and advertising because most advertising comes from low levels.
-
Not in mine I recoded the mail php it didnt have pagination... And the original one only said it can only display 25 mails.
-
Cant find what im looking for in this forum maybe someone can help or direct me to a site that would help me out lol. Iam trying to add the count of mail, that says something along the lines... " Diplaying 1-10 mails of 20 in your mailbox." I know how to get the 20 part that is total_items. the part I cant seem to get is the 1-10 and how to calculate that for the next page to read "Displaying 10-20 mails of 20 in your mailbox." would this be something along the lines of the Selecting count query? or math as in $limit*$mail_id?
-
You must have a script that was made using items id's in which you forgot to change to your own. Thus is why you may be seeing items in your inventory that is blank as for bug in the staff inventory page, i couldnt tell you what your problem is unless the coding is present but more likely you can delete it by the code dj has posted. in the staff_users.php remove the inv_delete function and replace it with... function inv_delete() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $db->query("DELETE FROM inventory WHERE inv_id={$_GET['ID']}"); print "Item deleted from inventory."; stafflog_add("Deleted inventory ID {$_GET['ID']}"); } Should work.
-
why captcha? why not use the 15 second deal, where they have to wait before sending a second mail? players already have to type in the captcha (if your game is using it on gym and crimes, and education). I personally wouldnt add captcha everywhere on the game, it makes players not want to play especially those who uses their phones.
-
Thank you, i thought of doing that just didnt do it yet, I was a bit tired when I was figuring it out, I had looked through the whole page for over an hour trying to figure what would return the absolute value and couldnt come up with anything lol. Then while I went to sleep and had my computer off I thought about it lol. Thanks for replying and confirming what I was thinking :-)
-
Need some help, cant figure out what code to change im using the original v2 attack.php the problem is where it says " You done this much damage 90000 (-90000)." The minus 90000 being the opponents health, how would I change that to just come out (0) instead of the negative 90000? I know this is stupid asking, I would probably find it out sooner or later, just cant seem to see where the minus is coming from or where i change it lol. Edit: 90000 is just an example used...
-
Side note: If proxies are blocked AOL subscribers wont be able to play, and or any dial up players. But blocking proxies can lead to no multis also which would be good who wants multis on there game causing havoc? We all know what country has the most multis so another option is blocking that countries IP address if everything has failed to block the proxies use... I personally would go with a flash login, so anyone using proxies wouldn't be able to use them, due because proxies do not detect flash. ;)
-
This code fails I have tried and was still able to use a proxy You are using it wrong then, i have it on my register page and it works great. Nope not using it wrong! I have placed almost all scripts possible on my game, and was able to break right through them with freedom proxy client, and the website. Some proxies didnt go through but it was like 1 in 10 that I had tried. The main proxy websites gamers are using went right through the code...
-
Again does not work lol. Try freedom proxy it goes straight through that code!
-
This code fails I have tried and was still able to use a proxy
-
Using a flash login will block most proxies due because proxies do not detect flash.
-
+1 Thanks for the free mod nice work!!
-
There is quite a few advance marriage mods on here you just need to search as for shared housing I believe that is only a paid mod... but in all and all it's really simple to code yourself if you have the time.
-
lol thanks for the reply waz I figured it out it was $db->query("UPDATE gangs SET daysold=daysold+1"); just needed to delete the other crap lol. I have gang age and also members time in gang... thats why i used UPDATE gangs... :-)
-
Hello, I've looked all around on here for gang age but cant find anything about it... And I think my cron is wrong because it's not updating the database... I have the following for gang age... $db->query("UPDATE gangs SET daysold=daysold+1, boxes_opened=0"); Would that be right? or would it be something like this... $db->query("UPDATE gangs SET daysold=daysold+1 WHERE gangID > 0"); ??
-
You add $i = 1; before the while($r=$db->fetch_row($q)) { area and this below.... // Set row color $bgcolor = " bgcolor=\"#ececec\""; // Display alternate color for rows //if ($i % 2 <> 0) { if ($i % 2 == 0) { $bgcolor = " bgcolor=\"#dedede\""; } and then add $bgcolor in the <tr> bracket then this after your table ending in </tr>"; $bgcolor = " bgcolor=\"#ececec\""; $i ++; PM me your script and i will get it working for you if you want.
-
May i also point out the rows can be done in css its alot better that way if you want less code
-
function job_index() { global $db, $ir,$c,$userid,$h; Doing('Viewing their Job'); print "<h3>[i]Your Job</h3> </marquee> <hr width=80%> You currently work in the {$ir['jNAME']}! You receive \${$ir['jrPAY']} and {$ir['jrPOINTS']} Job Points each day at 9pm UK time! You also receive {$ir['jrIQG']} IQ, {$ir['jrENDURANCEG']} Endurance, and {$ir['jrLABOURG']} labour! </marquee> <hr width=80%> <table width=50% cellspacing=1 class='table'><tr><td>Endurance: {$ir['endurance']}</td><td>IQ: {$ir['IQ']}</td></tr><tr><td>Labour: {$ir['labour']}</td><td>Job Points: {$ir['jobpoints']}</td><td> Job Rank: {$ir['jrNAME']}</td></tr></table> <hr width=80%> [b]Job Ranks[/b] <table width='75%' border='0' cellspacing='0'><tr bgcolor=#cccccc><th><div align=left>Rank</th><th><div align=left></th><th><div align=left>Endurance Needed</th><th><div align=left>IQ Needed</th><th><div align=left>Labour Needed</th></tr>"; $q=$db->query("SELECT * FROM jobranks WHERE jrJOB={$ir['job']} ORDER BY jrPAY ASC;"); $i = 1; while($r=$db->fetch_row($q)) { // Set row color $bgcolor = " bgcolor=\"#ececec\""; // Display alternate color for rows //if ($i % 2 <> 0) { if ($i % 2 == 0) { $bgcolor = " bgcolor=\"#dedede\""; } print "<tr $bgcolor><td>{$r['jrNAME']}</td><td>Income: $".number_format($r['jrPAY'])." Per Day</td><td>{$r['jrENDURANCEN']}</td><td>{$r['jrIQN']}</td><td>{$r['jrLABOURN']}</td></tr>"; $bgcolor = " bgcolor=\"#ececec\""; $i ++; } print "</table> [url='job.php?action=promote'][/url] [url='job.php?action=quit']<hr width=80%>[/url]"; } $js=$db->query("SELECT * FROM jobspecials WHERE jsJOB={$ir['job']} ORDER BY jsID ASC;",$c); print "[b]<table width=80% cellspacing=0 class='table'><tr><td><center>Specials unlocked:[/b] <form action='specials.php' method='post'> <table width=100% cellspacing=0 class='table'> <tr> <th><font color=></font></th> <th><font color=></font></th> <th><font color=></font></th></tr>"; if($db->num_rows($js) == 0) { print "<tr class='row$current_row'><td colspan=3>This Job has no Specials</td></tr>"; $current_row = 1 - $current_row; } while($sp=$db->fetch_row($js)) { print "<tr class='row$current_row'><tr style=\"background-color: $color;\"><td><font color=>{$sp['jsNAME']} <font color=red>-{$sp['jsCOST']} Job Points</td><td><font color=#><center></font></td><td><center><input type='radio' name='ID' value='{$sp['jsID']}' /><onclick=\"javascript:this.form.submit();\"/></td></tr>"; $current_row = 1 - $current_row; } print "<tr> <td colspan=3><div align=center><input type='submit' value='Purchase'></div></td> </tr></table></form>"; print "</table> <hr width=80%> [url='job.php?action=promote']> Try To Get Promoted[/url] [url='job.php?action=quit']> Quit[/url] <hr width=80%>"; I helped if you can see where lol. You may get the hint after you replace the one you posted with the one i have posted for you...( I only did it to the job indez you need to add the same to the next table below that function.
-
There are many tuts out there that is easy to follow to make your own layout, as for positioning your energy bars you make a css code for it, it's really easier then you think lol. Just google template tutorials and download a free 30 days trial of photoshop.
-
Should have done research on the one you are paying for service before going through on a sale, it's common sense!! I don't trust anyone on the internet if I need a login I look up a designer in the town I live in or make it myself.