
ignite
Members-
Posts
170 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by ignite
-
Re: Strange attacking problem (($r1['damage']*$youdata['strength']/$odata['guard'])*(rand(8000000,1200000)/10000)); $hitratio=min(50*$ir['agility']/$odata['agility'],95); if($userid==1) { $hitratio=100; } if(rand(1,100) <= $hitratio) { $q3=mysql_query("SELECT a.Defence FROM inventory iv LEFT JOIN items i ON iv.inv_itemid = i.itmid LEFT JOIN armour a ON i.itmid=a.item_ID WHERE i.itmtype=7 AND iv.inv_userid={$_GET['ID']} ORDER BY rand()", $c); if(mysql_num_rows($q3)) { $mydamage-=mysql_result($q3,0,0); } if($mydamage < 1) { $mydamage=1; } Well this is what iv'e got ill edit and see what happens. I think that the damge delt is always less than one so the formula just rounds it up to 1
-
Re: Strange attacking problem Cheers works now thanks very much +1. If you run from the fight you don't lose any exp low. Would you happen to know whyt the max damage delt is always one no matter what the users stats are Oh yer and it doesn't say the weapon name in the step so its "using your you hit..."
-
Re: FREE SERVER THAT WORKS WITH MCCODES X 10 don't like crons and will bann you if you use them to freuqently
-
Re: Strange attacking problem All i get is you lost all your exp for running from the fight.
-
Re: Strange attacking problem I have and i said what the error was...just because theres no mysql error that doesn't mean thats it's working corrcetly.
-
Re: [V1][V2] 50/50 Chance Mod. Free Version Is it not orginal ?
-
Re: Strange attacking problem Bump
-
Re: [V1][V2] 50/50 Chance Mod. Free Version Nice orginal mod +1
-
Could a mod please delete topic.
-
Re: reseting all users Yes if you want to reset your game you will need to truncate the user, mail, userstats table etc. A different way of doing this is by clicking on 'Database: yourdatabsename' in phpmyadmin then ticking all tables which you want resetting, then select 'empty' on the drop down menu and press 'go'.
-
Re: Anti-sql injection function Cheers +1
-
Re: Anti-sql injection function Am i meant to be puttin the function in global_func or in the page i'm using the function in ? I saw somone post you put it in global_func but just to be sure. I put the function in crystletemple.php then did this. mysql_query("UPDATE users SET crystals=crystals-$cleaninput{$_POST['crystals']},money=money+$iqgain WHERE userid=$userid",$c); is this correct ?
-
Re: crimes working for staff Nop i aint :?
-
The weird thing is crimes are only giving exp for assistants, secretaries and donators. Admins and normal users are only receiving money from they crime. Does anyone know where the eroor would be ? I have uploaded the standard docrime page witch you get with v1 but it's still the same.
-
buy hosting but cannot do cron job..what must i do?
ignite replied to nypthamine's topic in General Discussion
Re: buy hosting but cannot do cron job..what must i do? Either get a new host or get a free host and just host your crons of there. -
Re: Anti-sql injection function Nope ive tried it 3 times now
-
Re: Crimes error Thanks for that. :-D Anyone know about this error ?
-
Re: Anti-sql injection function I always get this error Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in /home/blobby/public_html/game/global_func.php on line 139
-
When i try to to do a crime i get this error: Fatal error: SUHOSIN - Use of eval is forbidden by configuration in /home/blobby/public_html/game/docrime.php(41) : eval()'d code on line 41 line 41 is eval($ec);
-
Re: No Attack If they attack staff you put their energy to zero and put them in hospital for 5 minuets ? Why not just say you can't attack staff
-
Re: [v1] NEW LOGIN MY FIRST [V1] Urm haven't you jut stolen the nav bar of that guys regsiter page in the free mods forum ?
-
Re: Password change No it's not that i just missed out a ' because i didn't copy and paste it. It's the md5 bit i need to know.
-
Ok well i have done this before with an old game but have just recently got back into coding i no what the problem is bu6t just not how to fix it. if ($_POST ['oldpw] != $ir [userpass'] ) I would remember md5 going around there somwhere just not sure where i should put it :-) 0.o I firgued it now but thanks for looking