
kaball
Members-
Posts
13 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by kaball
-
Re: Doubling in game...? Lithium you are wright but maybe for someone who need the solution for this is just what he needed :-D :-D :-D I hope they will search the topics instead creating a new one ( I believe if the topics were replayed with the solution, people were more regarding to the board) Wish you all the best (maybe the admin should close this topic :-P :wink:)
-
Re: Doubling in game...? Hy, The problem is from header.php If you are usig a custom header look for the body { I was using the default header with the code in the body: body { background-color: #DEDEDE; margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: black; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } And i wanted to add a background image at the game, so i was adding this code: body { background-image: url('URL HERE'); } just after the "<style type="text/css"> <!--" and all the crimes token *2 brave (doubleing them) Now for the header.php to work you just need to replace the code: body { background-color: #DEDEDE; margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: black; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } with: body { background-image: url('URL HERE'); } so the "standard" header.php will look something like this: <?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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <style type="text/css"> <!-- body { background-image: url('http://dpg.host56.com/clean.jpg'); } a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: black; } ................ I hope this will help you all, and i tryed to be as explicit i could Regards,
-
Re: [MCCODES v2] Job display in viewuser.php First of all :-D the game is purchased, working on a server that is at my workplace... All of my colleagues are playing this mmorpg and the game is online too... Secondly the game that i administrate is not for reselling is just for developing and make updates to it. :-D Thirdly the game didn`t fail and i don`t ask for help on this forums just because i don`t know "how to", (i`ve just need a little help on that variable) The Job rank is not displayed well because is running "LEFT JOIN `jobranks` AS `jr` ON(j.`jFIRST` = jr.`jrID`) ". Witch you all know is showing the first rank job from the job type... I`m not arguing with you all on nothing... i was just asking a help in oder to avoid the script being ruined. Regards to all,
-
Re: [MCCODES v2] Job display in viewuser.php Now i understand why the topics are dieing on this forum... people just giving "advices" instead helping, and there are not solved in the manner that they should (by cooperating and/or giving a hand with a real solution) I supposed the meaning of a forum was to help each other, not rejecting the request of a new user, because if you see that i have few posts on this forum and i was not requesting the moon. Thank you for your kindness wolfe, i will read and learn the php and the mysql, till then ... keep up the "god work" you are doing (double posting and giving advices)
-
Re: [MCCODES v2] Job display in viewuser.php You mailed me when you could of posted it here. Because.. you need to add it before you stop the print statement.. or you have added it inside it :D Yes i`ve prefered private message instead making useless posts and in the end just topic the solution... (with all your credits) What you mean "you need to add it before you stop the print statement..." An example would be good... please be more specific
-
Re: [MCCODES v2] Job display in viewuser.php CrazyT, yes it works... it shows the job type, it is great, but i was sayng that if there could be another command line that shows the job rank :-D The code i`ve posted earlyer is the code from my viewuser.php adapted with your variable command and i works perfectly, Thanks.
-
Re: [MCCODES v2] Job display in viewuser.php It helps but... the full correct code is this: $q=$db->query("SELECT u.*,us.*,c.*,h.*,g.*,f.*,j.`jNAME` AS `job` FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid LEFT JOIN jobs AS j ON j.jID=u.job WHERE u.userid={$_GET['u']}"); if($db->num_rows($q) == 0) Until now it works perfectly This code shows the job type, i wonder if there can be added a comma (symbol ",") or another row and add a variable for the job rank (important to the employers in the same job type)...
-
Hello to all. I was wondering if someone could help me in this, I am trying to list the job of an user in the viewuser.php by adding a new row corresponding to the wright variable, and i use this code: Money: \${$r['money']} Crystals: {$r['crystals']} Job: {$ir['jrNAME']} It doesen`t give any errors and not even shows the information required, Anny suggestions ? I just want the users see the jobs that players have,
-
Re: [MCCODES v2] Attack restriction http://criminalexistence.com/ceforums/http://makewebgames.io/phpBB3/viewtopic.php?p=140991#p140991 Link for the solution
-
Re: [MCCODES v2] Attack restriction Haunted Dawg thanks for the code, you are one of the bests :) For everyone else who would like to use the code, here are some steps for implementing it: In attack.php find: //get player data $youdata=$ir; $q=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $odata=$db->fetch_row($q); $myabbr=($ir['gender']=="Male") ? "" : ""; $oabbr=($ir['gender']=="Male") ? "" : ""; if($ir['attacking'] && $ir['attacking'] != $_GET['ID']) { print "Bad, Bad.... [url='index.php']Back[/url]"; $_SESSION['attacklost']=0; $h->endpage(); exit; } if($odata['hp'] == 1) { print "This player is.... [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; //and place below: } else if(($ir['level'] - $odata['level']) >= 3) { print "User not attackable. [url='index.php']Back[/url]"; $h->endpage(); exit; Save it and enjoy it :> Regards to all
-
Re: [MCCODES v2] Attack restriction i don`t find this line "while($r=mysql_fetch_array($mw)" in attack.php (this is where it should be wright?)
-
Hy all, i`m not so god at modding, and so i ask for your help if you want to give it offcourse :) I`ve searched on all topics and i didn`t find a mod that restrict players from attacking another player being 3 levels lower than the attacker, IF there is one can please someone give the link ? If not could anyone try to make this ? Thanks,
-
Hy all, i`m not so god at modding, and so i ask for your help if you want to give it offcourse :) I`ve searched on all topics and i didn`t find a mod that restrict players from attacking another player being 3 levels lower than the attacker, IF there is one can please someone give the link ? If not could anyone try to make this ? Thanks,