
furn355
Members-
Posts
79 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by furn355
-
Re: Attempted css mod. <?php class headers { function startheaders() { global $ir, $set; echo <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> </head> <body> <div class="PageBackgroundGradient"></div> <div class="Main"> <div class="Sheet"> <div class="Sheet-body"> <div class="nav"> <ul class="menu"> <center>[*][url="index.php"]<span><span>Home</span></span>[/url] [*][url="explore.php"]<span><span>Explore</span></span>[/url] [*][url="donate.php"]<span><span>Donate To {$set['game_name']}</span></span>[/url] [*][url="voting.php"]<span><span>Vote For {$set['game_name']}</span></span>[/url] [*][url="logout.php"]<span><span>Logout</span></span>[/url] </center> [/list] <div class="l"></div> <div class="r"><div></div></div> </div> </div> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = $_SERVER['REMOTE_ADDR']; $IP=addslashes($IP); $IP=mysql_real_escape_string($IP); $IP=strip_tags($IP); $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $exp=(int)($ir['exp']/$ir['exp_needed']*100); $count = 3; $x = -1; while($x < $count) { $places_to_be_secured = array("ID","viewforum","viewtopic"); $x++; $_GET[$places_to_be_secured[$x]] = abs(@intval($_GET[$places_to_be_secured[$x]])); } $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=yellow>[b]{$ir['username']}[/b]</font>";$d="[img=donator.gif]"; } $gn=""; $ec=$ir['new_events']; $mc=$ir['new_mail']; $city = mysql_fetch_object(mysql_query("SELECT cityname FROM cities WHERE cityid = ".$ir['location']." ")); global $staffpage; print <<<OUT <center><table width='100%' bgcolor='#000000' cellspacing='1' border='1'>   dont need too see as it works :) </table> <table width="100%" background="gradient.gif" > <tr height=21><td width="20%"> </td><td width ="60%"><center>[url='index.php'] Home[/url] | [url='criminal.php']Crime[/url] | [url='search.php']Search [/url] | [url='inventory.php']Manage Inventory[/url] | [url='explore.php']$city->cityname[/url] | [url='donator.php']Donate to Deadland today![/url] </center></td><td width="20%"> </td> </tr> </table> <div class="contentLayout"> <div class="sidebar1"> <div class="Block"> <div class="Block-body"> <div class="BlockHeader"> Navigation <div class="l"></div> <div class="r"><div></div></div> </div> <div class="BlockContent"> <div class="BlockContent-body"> <ul> OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; print '</td><td width="20%" class="linegrad" bgcolor="#'.$bgcolor.'"> </td>'; print <<<OUT [/list] </div> <div class="BlockContent-tl"></div> <div class="BlockContent-tr"><div></div></div> <div class="BlockContent-bl"><div></div></div> <div class="BlockContent-br"><div></div></div> <div class="BlockContent-tc"><div></div></div> <div class="BlockContent-bc"><div></div></div> <div class="BlockContent-cl"><div></div></div> <div class="BlockContent-cr"><div></div></div> <div class="BlockContent-cc"></div> </div> </div> </div> </div> <div class="contentLayout"> <div class="sidebar1"> <div class="Block"> <div class="Block-body"> <div class="BlockHeader"> Navigation <div class="l"></div> <div class="r"><div></div></div> </div> <div class="BlockContent"> <div class="BlockContent-body"> <td width="80%" bgcolor="#'.$bgcolor.'" valign="top"> <center> OUT; if($ir['hospital']) { print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td>'; } function endpage() { global $db,$c; print <<<OUT </p> <div class="entry"> <div style="align:right;"></div> </div> </div> </div> <div class="BlockContent-tl"></div> <div class="BlockContent-tr"><div></div></div> <div class="BlockContent-bl"><div></div></div> <div class="BlockContent-br"><div></div></div> <div class="BlockContent-tc"><div></div></div> <div class="BlockContent-bc"><div></div></div> <div class="BlockContent-cl"><div></div></div> <div class="BlockContent-cr"><div></div></div> <div class="BlockContent-cc"></div> </div> </div> </div> </div> </div> </div> </body> </html> OUT; } } ?>
-
Okay so i attempted to make a css mod for myself. I used snippets from other code and overall things went quite well i feel, however i have two problems which i would like some help with if possible Problemo a) There are 2 different views.... When logged in as a staff member.. there is my header the main menu on the left and the game content centered... When logged in as a normal user... there is the header at the top, main menu on the left and the main game content is all squeezed under the 15% i have allowed for my menu on the left and there is a big blank space where the main game content would have been on the right Problem b) is similar to the above but when logged in as a staff as soon as i access the staff panel the last ten staff actions is squeezed under the 15% i have alllowed for the menu and the area on the right where the last ten staff actions should be displayed is all blank Pictures to demonstrate what i mean Admin view User View Admin Panel View Please refrain from posting until its up
-
Re: [mccode] Profile Signatures was there ever a bbcode version of this made, i cant find anything in teh search :mrgreen: nevermind done it myself
-
Re: The Revamped Item Market, please help! http://criminalexistence.com/ceforums/i ... ic=27190.0
-
Re: The Revamped Item Market, please help! i believe lithium has something similar as a paid mod...
-
Re: Couple of things.. {mods} At the moment im using the original, i might have plans for nynas though, but if i could get hlep with the code im sure i could convert it to nynas a post it up
-
Re: Couple of things.. {mods} Second bit done, i decided just to put a direct link to the level section. Doesn't look as neat but got the job done. Still need help with the first please
-
1) Gym macro, i know you can set the macro up for minutes or hours etc. But i was wondering how to get it so it is set up on clicks, so for example after the "Train" button has been clicked between 10-15 times (random between them) the macro would appear. 2) The HOF opens up on one of the sections, so as soon as i click HOF the level would show up, ANy help is much appreciated
-
Re: Help with auto ipn All sorted now with many thanks going to jordanphp and those others who offered to help me out :)
-
Re: Help with auto ipn i have said several times if the link was there i would take it down! but it isnt there
-
Re: Help with auto ipn If you can offer me the support i need i will gladly take it down, And providing ic an find the link to
-
Re: Help with auto ipn My link to delete it isnt available neither is my link to modify it
-
Re: Help with auto ipn There are more files than this though.
-
I brought a mod and after waiting and waiting for support it never showed so i have decided to ask you the CE forums. The mod was an auto IPN I installed it and everything seemed to be working fine until i clicked add new donator pack.. i got this error QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO items VALUES('','999','test','test','0','0','0', '0', '0', '0', '0', '1', '0', '0', '0') After some searching around i found it was because in my item table has 22 rows. which are: itmid, itmtype, itmname, itmdesc, itmbuyprice, itmsellprice, itmbuyable, effect1_on, effect1, effect2_on, effect2, effect3_on, effect3, weapon, armor, boots, helmet, amulet, braclet ring, special, itm pic I dont know how to edit my file succesfully to allow for all 22 rows. So after several attempts i post it here, to see if any one could provide me with a fix. :-) the code will come in two parts Code removed due to being paid! ANy help would be much appreciated as the guy who i brought it from isnt offering me any support
-
Automatically returns to inventory after equipping
furn355 replied to furn355's topic in Free Modifications
Re: Automatically returns to inventory after equipping haha thanks i did mean inventory.php editting it now :mrgreen: -
Automatically returns to inventory after equipping
furn355 replied to furn355's topic in Free Modifications
Re: Automatically returns to inventory after equipping I know What it does is once you have clicked equip on the normal inventory screen, it will come up you have equipped " test weapon" succesfully. then will automatically take you back to the inventory without the need for clicking -
ONce you have equipped your weapon after a short delay it will return to your inventory.php so they can equip armour. Open up attack.php find the line.. print "Item {$r['itmname']} equipped successfully."; Remove the " and ; from the end of it then add... <META HTTP-EQUIV=Refresh CONTENT='1;url=inventory.php'> and replace the " and ; Also can be done for armor... Find the line print "Item {$r['itmname']} equipped successfully."; And do the same as above :) Just a little mod hope you enjoy it and off course there are plenty more places to use it
-
Re: [V2] Mug feature with Stats! Thanks zero effect +1
-
Re: [V2] Mug feature with Stats! I get this when i try to run php my admin Error SQL query: ALTER TABLE users ADD mugs int( 11 ) NOT NULL default 0 ALTER TABLE users ADD muggain int( 11 ) NOT NULL default 0 ALTER TABLE users ADD mugloss int( 11 ) NOT NULL default 0 MySQL said: Documentation #1064 - 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 'ALTER TABLE users ADD muggain int(11) NOT NULL default 0 ALTER TABLE users ADD' at line 2
-
Re: mccode v2 What passwords? :?
-
I would like to do a attack and crime record, something too keep track of life time achievements but not sure how to go about it. Battle Crime Won: 195 succeeded: 100 Lost: 393 Faile: 50 Total:588 Total 150 Money Gain: $454,271 Money Gain: $1,000,000 ^^^^ That would be the end result.
-
Hi i would like to know how to make it so the attacks on MCCODES V2 are automatic and so you dont have to click each round, So if anyone is willing to help me create this script or will offer it to me as a paid modification let me know. Thanks
-
Re: Would it be possible Hmm can anyone show me some more code, i havent seen enough off it to be able to work it out, any helps is much appreciated
-
My question is, would it be possible to recode the MCcodes V2 attacks phps so it did it automatically, (each attack round) ANd still show it, to save the user clicking, If so what sort off thing am i looking to do. THanks for any helpful replies. P.s i have looked in the forums for something similar and found nothing.