-
Posts
205 -
Joined
-
Last visited
-
Days Won
4
Content Type
Profiles
Forums
Events
Everything posted by Mcfarlin
-
lol duh.... sorry curt i was not even paying attention there. i will assume that anyone who has tried this has had no issues with it ?
-
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
Mcfarlin replied to Uridium's topic in Free Modifications
after this weekends hubub is all over, i was gonna give this one a go. ill let ya know how it turns out illusions. -
[mccodes v2] Advanced Schooling includes days, clicks, money or crystals there is illusions education mod, and it does give out items upon completion of the course. :thumbsup:
-
the ; is to close the array :) [mysql]"fatigue" => "Fatigue");[/mysql] is the closing line in the array. or am i missing what your getting at here?
-
im at work still, i will find this thread and get you a link when i get home. be about 12 hours from now. holiday coming up killing my free time. lol
-
yes it should only be in there one time. lol i will update the post.
-
really i have only noticed one very easily fix thing with illusions mod. there is an option to set items be paid out, well it doesnt always give these items out. I do not have this mod, i am an admin who has used this mod on a friends game. He did not even bother to try and fix this where it paid out every time it says it will. you can take these clases more than one time, se we just changed the wording to state that you have a chance to win said item. but its a nice mod, that requires the player to be online and active to get the class finished. Keeps players from loggin in and hitting take then coming back in five days to a finished class. :thumbsup:
-
Stat Inserting and withdrawing mod
Mcfarlin replied to corruptcity || skalman's topic in Free Modifications
lmfao at the announcement bro, that funny a hell. very nice mod as well. -
immortal are you still working on this thing?
-
okay then i wont worry bout it, but still thx for showing me the two dang words i forgot to change in this. lol i knew i had to be close. imma try that jobs mod again now, hope i can get it.
-
you can take that crap off. i didnt like those either. but when you put that table in it was set as decimal. you will have to change it in the table itself. i have not seen any bad effects from this change. cant see anything that you would have to leave it as a decimal for anyhow
-
illusions has a mod like this on here, its a rework on the school and i am pretty sure it has item payout in there. i know i have seen a working version of this mod up and curently running on the web.
-
basically i was trying to make a mod and failed thus far. i wanted to see if anyone of the "good" coders here might be up for the challenge. my idea involves changes to the following jobs view user hof addition i thought it would be easy at first but as i got into it it turned out above my skill level. PM if you are interested and i will give you a full description of what i was needing. and yes i will pay for good work.
-
you should have told me that the other day bro, i did not know that. i would never had posted this if i knew you had it as a paid mod. really thought since i figured it out after only doing this for such a short time that it was rather simple. never thought about someone paying for it. you can have an admin take this down if i stepped on your toes bro.
-
lmao thx danny for pointing that out, thats what i get for trying to hurry before work. (original post updated)
-
still not sure on this part of it all, the above is fully tested and works great not. something like this should work in the attack.php just above where it updates and checks the energy needed. (this part i have not tested) im off to work now, and will test this after i get off in 12 hours. [mysql]if ($youdata['fatigue'] >= $youdata['maxfatigue']/10) { $youdata['fatigue']-= floor($youdata['maxfatigue']/10); $me=floor($youdata['maxfatigue']/10); $db->query("UPDATE users SET fatigue=fatigue- {$me} WHERE userid=$userid"); $_SESSION['attackdmg']=0; } else { print "Your to fatigued to fight now go> Back."; $h->endpage(); exit;[/mysql]
-
did you have the hunger thing posted here anywhere? i looked but didnt see a post for this.
-
starting with the sqls needed for this [mysql]ALTER TABLE `users` ADD `fatigue` INT(11) NOT NULL DEFAULT '0' ALTER TABLE `users` ADD `maxfatigue` INT(11) NOT NULL DEFAULT '100' [/mysql] open you header.php and find [mysql]$enperc=(int) ($ir['energy']/$ir['maxenergy']*100);[/mysql] after it add [mysql]$faterc=(int) ($ir['fatigue']/$ir['maxfatigue']*100);[/mysql] then while still in header.php find [mysql]$enopp=100-$enperc;[/mysql] and after it add [mysql]$fiopp=100-$faterc;[/mysql] still in the header file find [mysql]Energy: {$enperc}% <img src=greenbar.png width=$enperc height=10><img src=bluebar.png width=$enopp height=10> <hr /> [/mysql] and add below it [mysql]Fatigue: {$faterc}% <img src=redbar.png width=$faterc height=10><img src=greenbar.png width=$fiopp height=10> <hr />[/mysql] save header.php and close. now open attack.php and add [mysql]$db->querry("UPDATE users SET fatigue=fatigue+(maxfatigue/10) WHERE userid=$userid"); [/mysql] save attack.php and close. open global_func.php and find [mysql]$ir['level']+=1; $ir['exp']=$expu; $ir['energy']+=2; $ir['brave']+=2; $ir['maxenergy']+=2; $ir['maxbrave']+=2; $ir['hp']+=50; $ir['maxhp']+=50;[/mysql] replace it with [mysql]$ir['level']+=1; $ir['exp']=$expu; $ir['energy']+=2; $ir['fatigue']+=2; $ir['brave']+=2; $ir['maxenergy']+=2; $ir['maxfatigue']+=2; $ir['maxbrave']+=2; $ir['hp']+=50; $ir['maxhp']+=50; [/mysql] then just below find [mysql]$db->query("UPDATE users SET level=level+1,exp=$expu,energy=energy+2, brave=brave+2, maxenergy=maxenergy+2,maxbrave=maxbrave+2, hp=hp+50,maxhp=maxhp+50 where userid=$userid"); }[/mysql] and replace with this query [mysql]$db->query("UPDATE users SET level=level+1,exp=$expu,energy=energy+2,fatigue=fatigue+2,brave=brave+2,maxenergy=maxenergy+2,maxbrave=maxbrave+2,maxfatigue=maxfatigue+2,hp=hp+50,maxhp=maxhp+50 where userid=$userid"); }[/mysql] save and close global_func.php open up staff_items.php and find [mysql]Usage Form<hr /> <u>Effect 1</u> On? <input type='radio' name='effect1on' value='1' /> Yes <input type='radio' name='effect1on' value='0' checked='checked' /> No Stat: <select name='effect1stat' type='dropdown'> <option value='energy'>Energy</option> <option value='will'>Will</option> <option value='brave'>Brave</option> <option value='hp'>Health</option> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='guard'>Guard</option> <option value='labour'>Labour</option> <option value='IQ'>IQ</option> <option value='hospital'>Hospital Time</option> <option value='jail'>Jail Time</option> <option value='money'>Money</option> <option value='crystals'>Crystals</option> <option value='cdays'>Education Days Left</option> <option value='bankmoney'>Bank money</option> <option value='cybermoney'>Cyber money</option> <option value='crimexp'>Crime XP</option> </select> Direction: <select name='effect1dir' type='dropdown'> <option value='pos'>Increase</option> <option value='neg'>Decrease</option> </select> Amount: <input type='text' name='effect1amount' value='0' /> <select name='effect1type' type='dropdown'> <option value='figure'>Value</option> <option value='percent'>Percent</option> </select><hr /> <u>Effect 2</u> On? <input type='radio' name='effect2on' value='1' /> Yes <input type='radio' name='effect2on' value='0' checked='checked' /> No Stat: <select name='effect2stat' type='dropdown'> <option value='energy'>Energy</option> <option value='will'>Will</option> <option value='brave'>Brave</option> <option value='hp'>Health</option> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='guard'>Guard</option> <option value='labour'>Labour</option> <option value='IQ'>IQ</option> <option value='hospital'>Hospital Time</option> <option value='jail'>Jail Time</option> <option value='money'>Money</option> <option value='crystals'>Crystals</option> <option value='cdays'>Education Days Left</option> <option value='bankmoney'>Bank money</option> <option value='cybermoney'>Cyber money</option> <option value='crimexp'>Crime XP</option> </select> Direction: <select name='effect2dir' type='dropdown'> <option value='pos'>Increase</option> <option value='neg'>Decrease</option> </select> Amount: <input type='text' name='effect2amount' value='0' /> <select name='effect2type' type='dropdown'> <option value='figure'>Value</option> <option value='percent'>Percent</option> </select><hr /> <u>Effect 3</u> On? <input type='radio' name='effect3on' value='1' /> Yes <input type='radio' name='effect3on' value='0' checked='checked' /> No Stat: <select name='effect3stat' type='dropdown'> <option value='energy'>Energy</option> <option value='will'>Will</option> <option value='brave'>Brave</option> <option value='hp'>Health</option> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='guard'>Guard</option> <option value='labour'>Labour</option> <option value='IQ'>IQ</option> <option value='hospital'>Hospital Time</option> <option value='jail'>Jail Time</option> <option value='money'>Money</option> <option value='crystals'>Crystals</option> <option value='cdays'>Education Days Left</option> <option value='bankmoney'>Bank money</option> <option value='cybermoney'>Cyber money</option> <option value='crimexp'>Crime XP</option> [/mysql] and replace it with [mysql]Usage Form<hr /> <u>Effect 1</u> On? <input type='radio' name='effect1on' value='1' /> Yes <input type='radio' name='effect1on' value='0' checked='checked' /> No Stat: <select name='effect1stat' type='dropdown'> <option value='energy'>Energy</option> <option value='will'>Will</option> <option value='brave'>Brave</option> <option value='hp'>Health</option> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='guard'>Guard</option> <option value='labour'>Labour</option> <option value='IQ'>IQ</option> <option value='hospital'>Hospital Time</option> <option value='jail'>Jail Time</option> <option value='money'>Money</option> <option value='crystals'>Crystals</option> <option value='cdays'>Education Days Left</option> <option value='bankmoney'>Bank money</option> <option value='cybermoney'>Cyber money</option> <option value='crimexp'>Crime XP</option> <option value='fatigue'>Fatigue</option> </select> Direction: <select name='effect1dir' type='dropdown'> <option value='pos'>Increase</option> <option value='neg'>Decrease</option> </select> Amount: <input type='text' name='effect1amount' value='0' /> <select name='effect1type' type='dropdown'> <option value='figure'>Value</option> <option value='percent'>Percent</option> </select><hr /> <u>Effect 2</u> On? <input type='radio' name='effect2on' value='1' /> Yes <input type='radio' name='effect2on' value='0' checked='checked' /> No Stat: <select name='effect2stat' type='dropdown'> <option value='energy'>Energy</option> <option value='will'>Will</option> <option value='brave'>Brave</option> <option value='hp'>Health</option> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='guard'>Guard</option> <option value='labour'>Labour</option> <option value='IQ'>IQ</option> <option value='hospital'>Hospital Time</option> <option value='jail'>Jail Time</option> <option value='money'>Money</option> <option value='crystals'>Crystals</option> <option value='cdays'>Education Days Left</option> <option value='bankmoney'>Bank money</option> <option value='cybermoney'>Cyber money</option> <option value='crimexp'>Crime XP</option> <option value='fatigue'>Fatigue</option> </select> Direction: <select name='effect2dir' type='dropdown'> <option value='pos'>Increase</option> <option value='neg'>Decrease</option> </select> Amount: <input type='text' name='effect2amount' value='0' /> <select name='effect2type' type='dropdown'> <option value='figure'>Value</option> <option value='percent'>Percent</option> </select><hr /> <u>Effect 3</u> On? <input type='radio' name='effect3on' value='1' /> Yes <input type='radio' name='effect3on' value='0' checked='checked' /> No Stat: <select name='effect3stat' type='dropdown'> <option value='energy'>Energy</option> <option value='will'>Will</option> <option value='brave'>Brave</option> <option value='hp'>Health</option> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='guard'>Guard</option> <option value='labour'>Labour</option> <option value='IQ'>IQ</option> <option value='hospital'>Hospital Time</option> <option value='jail'>Jail Time</option> <option value='money'>Money</option> <option value='crystals'>Crystals</option> <option value='cdays'>Education Days Left</option> <option value='bankmoney'>Bank money</option> <option value='cybermoney'>Cyber money</option> <option value='crimexp'>Crime XP</option> <option value='fatigue'>Fatigue</option> [/mysql] still in staff_items.php find [mysql]$stats=array( "energy" => "Energy", "will" => "Will", "brave" => "Brave", "hp" => "Health", "strength" => "Strength", "agility" => "Agility", "guard" => "Guard", "labour" => "Labour", "IQ" => "IQ", "hospital" => "Hospital Time", "jail" => "Jail Time", "money" => "Money", "crystals" => "Crystals", "cdays" => "Education Days Left", "bankmoney" => "Bank money", "cybermoney" => "Cyber money", "crimexp" => "Crime XP");[/mysql] and replace it with [mysql]$stats=array( "energy" => "Energy", "will" => "Will", "brave" => "Brave", "hp" => "Health", "strength" => "Strength", "agility" => "Agility", "guard" => "Guard", "labour" => "Labour", "IQ" => "IQ", "hospital" => "Hospital Time", "jail" => "Jail Time", "money" => "Money", "crystals" => "Crystals", "cdays" => "Education Days Left", "bankmoney" => "Bank money", "cybermoney" => "Cyber money", "crimexp" => "Crime XP", "fatigue" => "Fatigue");[/mysql] save and close and your done. and yes i know i left out the if statment for the attack.php thats the last thing i have to do. feel free to post one. (updated)
-
lol yeah yeah yeah, just because you made me feel dumb when i had that question about it. thx tho i just did not see that. not sure how i missed it but oh well. thats what i get for staying up for so long i guess. but i will post it what i have of it either way.
-
I looked a little on here and did not see this on here. so i thought i would try my hand at it. what i have done is add a bar called fatigue to the game. the uses fatigue goes up with each fight. they have to buy items to lower it to be able to fight more. while trying to attack they have to have a certain amount of it to be able to go through with the attack. anyone interested in this mod?
-
Excellent mods, i have two if immortals mod now and both are as promised. He helped with install as needed, one we even gad some real issues with. He stayed hours until we figured out the issue. I would suggest to anyone doubting these mods to not be worried, if the rest are anywhere near the quality of the tow i have you will also be very pleased with the work! *even after the two mods were good to go, he helped with another issue i was having, non related to these mods. Shows character there, great guy.
-
i think you would have to do it more like this [mysql]$abc=$db->query("bla bla bla"); while($r=$db->fetch_row($abc)) { print //your content here with a call to $r will get the info from the above $db->query } [/mysql] small edit, typing to fast. lol
-
Here is my last bit of jail.php i have the players diplay pics showing in the jail. works wonderfull. [mysql]$q=$db->query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.jail > 0 ORDER BY u.jail DESC"); while($r=$db->fetch_row($q)) { print "\n<tr> <td><a href='viewuser.php?u={$r['userid']}'>{$r['username']} </a></td> <td>{$r['level']}</td> <td>{$r['jail']} minutes</td> <td>{$r['jail_reason']}</td> <td>[Bust] [Bail]</td> </tr>"; } print "</table>"; $h->endpage(); ?>[/mysql] but it will not work in the hospital. here is the same sections of code from the page in hospital.php [mysql]$q=$db->query("SELECT u.userid, u.username, u.level, u.hospital, u.hospreason, u.gang, c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.hospital > 0 ORDER BY u.hospital DESC",$c); while($r=$db->fetch_row($q)) { print "\n<tr> <td><a href='viewuser.php?u={$r['userid']}'>{$r['username']} </a></td> <td>{$r['level']}</td> <td>{$r['hospital']} minutes</td> <td>{$r['hospreason']}</td> </tr>"; } print "</table>"; } $h->endpage(); ?>[/mysql] can anyone please tell me why the images will not show in the hospital, but show in the jail ? ?(
-
Can you combine and event_add with a $db->querry?
Mcfarlin replied to Mcfarlin's topic in Game Support
ha ha ha wait that was a non-existant giggle so you didnt see that. -
Can you combine and event_add with a $db->querry?
Mcfarlin replied to Mcfarlin's topic in Game Support
this wont work like the mod was intended. i dont see anything in this to make it a random event, wouldnt this just give out 1-3 crystals every time they go to that page? its in the header so....wont be trying to use that. lol and it still has them as two separate lines they are not joined. thx anyhow danny i did lean something from this post. but thats a lot more secure than the one we are using now, never though about it. was just trying to make the damn thing work first.