Jump to content
MakeWebGames

lucky3809

Members
  • Posts

    1,115
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by lucky3809

  1. I had 3 pages equip_weapon,armour,and unequip that used the same very code, problem was

    when I went into staff_item and increased and decreased it had only worked while equipping the weapon and armor,

    but when I had unequipped them it would only add back the decrease amount of stats and not take back the increase stats...

    I've tried everything but seems like it's only allowing the decrease stat option to work and not the increase...

    For instance I set a weapon at 22 strength and have it increase the other strength stat that already been trained, I unequipped the weapon it's suppose to take the 22 back off the already trained stat which is not working, but when I decrease it 22 and unequipped the weapon it adds 22 like it suppose to back on the trained stats already.

    The problem is it is not taking the increase off the already train stat when the weapon has been unequipped.

  2. Ok I was making a mod and was posting it on here for free but cant get the unequip page to work.

    This is the coding part I've added only the top works when weapon has decrease stats the else part below for increased stats is not working at all:

    if($r['effect1_on'])
      {
      $einfo=unserialize($r['effect1']); 
    
    if($einfo['dir']=="neg")
      {
    if(in_array($einfo['stat'], array('strength', 'agility', 'guard', 'labour', 'IQ')))
      {
      $stats=$einfo['stat']; 
      $upd=$einfo['inc_amount'];
    
      $db->query("UPDATE `userstats` SET $stats=$stats+$upd WHERE userid=$userid");
      }
      }
    else   
      {
      $stats=$einfo['stat'];
      $upd=$einfo['inc_amount'];
    
      $db->query("UPDATE `userstats` SET $stats=$stats-$upd WHERE userid=$userid");
      }
      }

     

    Do I have one of these "}" out of place or what is making it not function the end part after else? I appreciate any help I can get :)

  3. This modification is in the process of being re modified, will post it when I am done, stay tune... As for the old code never did work while unequipping, and would not work how ever many times you tried to get it to work elements were out of place. There were more to it.

  4. Here is a trick I use for resizing, what it does is set the max width and height, As for the IMG tagging leave off the width and height part this css will work for it the expression part is for IE browsers the two top are for firefox and other browsers...This will help not to expand your tables as similar to the break-word function in css... This does need to go in a div whatever class your using for it to work properly or you can set it as the .img if your not using a div I have it set differently because I have different tables sizes so i use div.

    max-width: 400px;

    max-height: 300px;

    width: expression(this.width > 400 ? "400px" : true);

    height: expression(this.height > 350 ? "350px" : true);

     

    If your trying to expand it you would use

    mid-width:

    mid-height:

  5. Here you go Bid count ...

    Sql:

    ALTER TABLE `gAuction` add column `BidCount` int(11) NOT NULL ;

    Open Auction.php

    Under Index function find:

    You're unable to view this code.

    Viewing code within this forum requires registration, you can register here for free.

     

    Replace With:

    You're unable to view this code.

    Viewing code within this forum requires registration, you can register here for free.

     

    Under Bid function find:

    You're unable to view this code.

    Viewing code within this forum requires registration, you can register here for free.

     

    Above it Add:

    You're unable to view this code.

    Viewing code within this forum requires registration, you can register here for free.

     

    Under Add function find:

    You're unable to view this code.

    Viewing code within this forum requires registration, you can register here for free.

     

    Replace with:

    You're unable to view this code.

    Viewing code within this forum requires registration, you can register here for free.

     

    Then if your posting the count on Auction page you add

    '.$aData['BidCount'].'

    If your posting on another page you need to make a query similar to the one your replacing under the index function.

    Sorry about having you add it to gAuctionBids table that was wrong of me lol. I had to upload the code to see what table to put it under.

  6. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/84/7099684/html/marriage.php:2) in /home/content/84/7099684/html/globals.php on line 6

     

    you have a line that is in both php marriage and globals you need to delete one of them, both cant be declared look at line 6 in globals that should tell you or post that line on here and someone can tell you.

    but seems like your session_start function is being redeclared.

  7. You are probably missing the part for your header.php such as an if statement ...

    if($ir['married']){

    $do_1 = mysql_query("SELECT * FROM users WHERE userid={$ir['married']}");

    $r = $db->fetch_row($do_1);

    goes above this coding part in header...

     

    $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);

    Edit: Checked your file you posted NOTHING is wrong with it, I got NO errors.

  8. @criminal wars

    I dont use this mod or really looked at the coding of it but if im right...

    You need to update the gAuctionBids table and add BidCount int 0 ...

    Then make a query to update the count under the bid function where players places the bid, so it counts the bids placed... then just add the {$r['BidCount']} where ever you want it to show.

    Also dont forget to change the insert query and add '' after the last insert.

    Unless someone has a better way then what i have gaven, this is what i do to get the count lol.

  9. Here is a site that may help beginers understand some security with php, I would honestly learn security yourself you have a better chance at securing it then someone off the streets or someone off the internet whom you may not even know their work ethics...It pays to learn it yourself, then when a problem exist you can handle the matter without needing to wait to hire someone to do it for you, also there are many other great websites out there just use google and look for them!

    http://www.ibm.com/developerworks/opensource/library/os-php-secure-apps/index.html

  10. well I use 300 -500 mb a month but i dont have my game online for users yet though.

    your plan is 1gb for web hosting and unlimited bandwidth, 1024mb = 1 gb.

    so im guessing you have enough room for 2000 active users thats if they are online everyday playing. That's just a guess im not good with math lol.

    You can always upgrade your package at anytime i would start with a low package until your game proceeds to higher incoming traffic lol.

  11. Thank you, i dont use mccodes either it was just a request from scott, only took 15 minutes to put together was no biggie lol. abs(intval()); could work, I just didnt do any security on it didnt have the time.

  12. This was requested from this posting Gang Mod V2

    What this mod is

    Leaders of the gang can turn off war so other gangs cant declare on them and they cant declare on other gangs, while having the war option OFF...

    This has probably been already done, I did not secure this if anything is out of place please feel free to add your own part to this as for I used the original yourgang.php my own gang php is set up differently... Anyhow Here you go Scott and others..

    Sql:

    [mysql]ALTER TABLE `gangs` ADD `waroption` ENUM( 'Off', 'On' ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'Off'; [/mysql]

    Open yourgang.php

    Find :function gang_staff()

    Add:

    You're unable to view this code.

    Viewing code within this forum requires registration, you can register here for free.

     

    scroll down to function gang_staff_idx()

    Find:

    Change Gang Tag";

    Add under it:

    Toggle War Status

     

    Find:

    You're unable to view this code.

    Viewing code within this forum requires registration, you can register here for free.

     

    Replace it With:

    You're unable to view this code.

    Viewing code within this forum requires registration, you can register here for free.

     

    Find:

    $h->endpage();

    ?>

    Above Add:

     

    You're unable to view this code.

    Viewing code within this forum requires registration, you can register here for free.

     

    open creategang.php and find:

    $db->query("INSERT INTO gangs VALUES('','$name','$desc','','',0,0,100,$userid,$userid,5,0,0,'')");

    Replace with:

    $db->query("INSERT INTO gangs VALUES('','$name','$desc','','',0,0,100,$userid,$userid,5,0,0,'',Off)");

    And that should be all,enjoy!

  13. Just pay for hosting from W3Theory.

    Free hosting doesnt support mccodes crons, and some have in their tos that they can shut down a free account if they find any game script on their server. Ive used x10 & 000webhost for testing scripts and my accounts were closed, but now I use a paid hosting. And everything is much better then using the free ones. i would say though dont use hosting24.com the hosting sucks and very slow and sometimes you cant login to your cpanel, but that is my experience with them. I would definite go with W3Theory.

  14. I can actually pin point one of IN's images that looks exactly the same off Second Life lol. Too funny.

    I wouldnt worry too much, like everyone else said they have no ground to stand on, they probably do it to everyone who may have a potential game, they probably feel intimidated by you lol.

    Also make sure this lawyers of theirs are REAL some people bluff and have others pretend to be their lawyer, Id be looking up them on bbb.org also searching the address for any type of bad reviews.

  15. Hello,

    I signed up for your game awhile back was given the link from one of your staffs, I never returned due, because the layout color is hard on my eyes and makes it confusing to read, main menu looks like its all over the place lol. Town Center is very confusing, as an example when in dire need of help if you were a victim of a murderer it's like finding a phone that has no numbers and not being able to dial out, thats the feeling i get when i go to the Town Center maybe where you have Royal Family you change it to Royal Staff, and so forth so it doesnt look complicated I dont know rather i clicked on a link or not due the names dont match up to the page or items...One thing also after I had logged in I didnt even know it was a game until I clicked the mailbox option, your login should direct to your main index, or home page with the main menu so players can tell it is a game...

×
×
  • Create New...