Uridium Posted April 3, 2009 Posted April 3, 2009 I really want to fix the problems with the attack script we all know its crap and those that say it isnt are probably blind... As its been proven if we pull our weigh on a script as a team we could make something better (even though i never took part in the last one) oops yes my fault was too usy doing other things.. So why dont we do it and finally get the damn thing working properly. Quote
castle Posted April 4, 2009 Posted April 4, 2009 Re: Attack Script made by us one that works Hopefully. agreed the zombie mod is great Quote
Robert Posted April 5, 2009 Posted April 5, 2009 Re: Attack Script made by us one that works Hopefully. *BUMP* I agree with Illusions, how the community came together on the last script was actually awesome. I believe to get this script going we need to come to a common agreement on what do we actually want in our attacking script and we can then get it coded together. Any Ideas? Quote
jon182 Posted April 5, 2009 Posted April 5, 2009 Re: Attack Script made by us one that works Hopefully. i would volunteer for this. i'm still a newbie at coding but i would do what i can. Some ideas ______________________ Randomly select a body part to be attacked. if it's the head it does more damage. or if it's the heart it does a lot, if it's like the toe it only does a little. i'll work on a rough draft but i don't know how it will turn out. Quote
Dylan Posted April 5, 2009 Posted April 5, 2009 Re: Attack Script made by us one that works Hopefully. Had an idea but then I thought about it and it will be alot of images, I guess.. But the idea was that there was a boy and a girl image..(cartooned) but on the click it shows the hit, on that person..Just an Idea I guess Quote
Uridium Posted April 5, 2009 Author Posted April 5, 2009 Re: Attack Script made by us one that works Hopefully. My concerns regards the attack system isnt the graphical side of it but how it performs. There are so many stupid errors that occur when being attack or taking an attack that just doesnt justify the outcomes. 1 = Players level up way too fast 2 = The Energy bar fills too quickly 3 = Loss of exp 4 = Players with less stats are able to beat players with more stats. Files that need to be taken into concideration are 1 cron_fiveminute.php 2 attack.php 3 attacktake.php 4 attackwin.php 5 attackwon.php 6 attacklost.php We can recuce the amount of time it takes a energy bar to refill by altering the 5 minute cron. Ive already started work on the 5 minute cron to reduce energy increase as a none paying paying donator but i feel the 5 minute cron should be gone and replaced with a greater timescale. Quote
Karlos Posted April 5, 2009 Posted April 5, 2009 Re: Attack Script made by us one that works Hopefully. I'll be in. :wink: And make it so only attack some person once every half and hour, constant attacking also helps to level people up. If you can contact me on MSN Illusions Quote
Dayo Posted April 5, 2009 Posted April 5, 2009 Re: Attack Script made by us one that works Hopefully. Ideas Make it into 1 file not 4 GFX (ill help with that) Calculate winner and show it insted of going throgh 100s of pages Make your will come into it aswell so if you have 0% you are less likley to sucseed then having 100 % add a new option humiliate, they lose 2 gang respect even if not in war Quote
dementor Posted April 5, 2009 Posted April 5, 2009 Re: Attack Script made by us one that works Hopefully. When you talk about the attack script do you mean how it looks or the formulas Or what ? My attack script you could say has been recoded already although the look is the same If is working on formulas that make sense you want to do I can help :) But design or look I got no clue what so ever Quote
Uridium Posted April 5, 2009 Author Posted April 5, 2009 Re: Attack Script made by us one that works Hopefully. At the moment ive set my crons for the update of health to 10 mins instead of 5 aslo reducing the cron_fivemins.php so that it goes up by 10 each 10 minutes (thus being longer for non donators) The reason everyone is levelling up so fast is.. use of crystals to regenerate health to which on mine ive only allowed them to do this once per day so they are not constantly upgrading all the time. This can be quite easily added to a script by doing this to your trains so your crystal gym would be.. call this cgym.php overwrite your old one or ammend if you dont want to overwrite You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and add SQL ALTER TABLE `users` ADD `crystaltrains` INT(11) NOT NULL DEFAULT '1', then add this to your daily cron. $db->query("UPDATE users SET crystaltrains=1 WHERE crystaltrains < 1"); This will stop multiple crystal training.. Also this Script only allows 25 crystals to be trained at any one time regardless of the amount the person has.. Quote
castle Posted April 5, 2009 Posted April 5, 2009 Re: Attack Script made by us one that works Hopefully. How about a mug feature as well? And one click for sure... :lol: Quote
Uridium Posted April 5, 2009 Author Posted April 5, 2009 Re: Attack Script made by us one that works Hopefully. if we stick with the basics first then we can fix some of the major issues on the script, im still working on the crons trying to get the timings right to update the energy bar.... Quote
yaz123 Posted April 5, 2009 Posted April 5, 2009 Re: Attack Script made by us one that works Hopefully. I'll be in (still a noob) but can do some stuff message me via msn - [email protected] Quote
jon182 Posted April 5, 2009 Posted April 5, 2009 Re: Attack Script made by us one that works Hopefully. ok i would like to say thanks to floydian cause he really helped me here. heres what i have, it makes it so that when you attack a person it randomly chosses one of 6 places, then says where you hit and it damages more or less depending on the spot. Add all of theese to attack.php. $hit = Rand (70,75); switch ($hit) { case 70: $hitspot = 'Legs'; break; case 71: $hitspot = 'Arm'; break; case 72: $hitspot = 'Groin'; break; case 73: $hitspot = 'Torso'; break; case 74: $hitspot = 'Heart'; break; case 75: $hitspot = 'Head'; } Then in all of your attack messages (like the one below) change Using your {$r1['itmname']} you hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font> \n"; to Using your {$r1['itmname']} you hit {$odata['username']} in the $hitspot doing $mydamage damage ({$odata['hp']})</font> \n"; thats just an example you must change all of them and just add in the $hitspot after thier username. and before "for whatever damage" then find where it calculates the damage and add at the end of the formula (($hit*.015)*$youdata['will']/$youdata['maxwill']*100/$odata['will']*$odata['maxwill']*100/2.5) that will add the damage of where you've hit AND it will take into account thier will vs thier maxwill. Quote
bocco Posted April 6, 2009 Posted April 6, 2009 Re: Attack Script made by us one that works Hopefully. right now i have a mug script fully made, and the more mug exp you have the more money you get Cost - 10% you can pay to upgrade you level, after that you start to get exp to level your player but it is modded to my game and will not work for everyone -------------- and i am working with someone to make a new attack script and it is going to be great Quote
jon182 Posted April 6, 2009 Posted April 6, 2009 Re: Attack Script made by us one that works Hopefully. bump Quote
AlabamaHit Posted April 6, 2009 Posted April 6, 2009 Re: Attack Script made by us one that works Hopefully. This topic does not make any since. Why bump it? Quote
TMan Posted April 6, 2009 Posted April 6, 2009 Re: Attack Script made by us one that works Hopefully. I would like to see a different type of attack system. Not like the original attack until they are hospitalized. I'd like to see it with 1 click success: Both sides lose % of hp.(only cause not all fights are one sided) If loss attacker loses a higher %. If success opponent loses a higher %. Something simple like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. But in my game I'm going to remove hosp from everything, except in attacks where they hosp the user. Also my game uses soldiers(hp) for attacks... you can remove that part. I'm also working on a mod for gangs, which will be like gang wars, but more in depth........and I need a better attack system. I have practically nothing completed here i know but it's just an example. g2g right now maybe i could assist in this later(if help is wanted) Quote
jon182 Posted April 6, 2009 Posted April 6, 2009 Re: Attack Script made by us one that works Hopefully. This topic does not make any since. Why bump it? how does it not make any since? Quote
Dave Posted April 6, 2009 Posted April 6, 2009 Re: Attack Script made by us one that works Hopefully. This topic does not make any since. Why bump it? how does it not make any since? Think he meant Sence :) Your post was kinda pointless because thats preety obvious Quote
Faz` Posted April 6, 2009 Posted April 6, 2009 Re: Attack Script made by us one that works Hopefully. I think jon was meant to say "How does it not make any sense" lol. Quote
AlabamaHit Posted April 7, 2009 Posted April 7, 2009 Re: Attack Script made by us one that works Hopefully. It don't cause it don't say anything...One might think CE make an attack.php? Or CE make a game engine...THats what I mean.... Nothing will ever come of it... Is what I mean. Quote
Cyanide Posted April 7, 2009 Posted April 7, 2009 Re: Attack Script made by us one that works Hopefully. ok i would like to say thanks to floydian cause he really helped me here. heres what i have, it makes it so that when you attack a person it randomly chosses one of 6 places, then says where you hit and it damages more or less depending on the spot. Add all of theese to attack.php. $hit = Rand (70,75); switch ($hit) { case 70: $hitspot = 'Legs'; break; case 71: $hitspot = 'Arm'; break; case 72: $hitspot = 'Groin'; break; case 73: $hitspot = 'Torso'; break; case 74: $hitspot = 'Heart'; break; case 75: $hitspot = 'Head'; } Then in all of your attack messages (like the one below) change Using your {$r1['itmname']} you hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font> \n"; to Using your {$r1['itmname']} you hit {$odata['username']} in the $hitspot doing $mydamage damage ({$odata['hp']})</font> \n"; thats just an example you must change all of them and just add in the $hitspot after thier username. and before "for whatever damage" then find where it calculates the damage and add at the end of the formula (($hit*.015)*$youdata['will']/$youdata['maxwill']*100/$odata['will']*$odata['maxwill']*100/2.5) that will add the damage of where you've hit AND it will take into account thier will vs thier maxwill. This was taken from Jon's post and edited so that it has images...nice post Jon.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Just doing my part :-) I have already rewritten all aspects of my attack script. See it at http://crimeandchaos.com Quote
jon182 Posted April 7, 2009 Posted April 7, 2009 Re: Attack Script made by us one that works Hopefully. It don't cause it don't say anything...One might think CE make an attack.php? Or CE make a game engine...THats what I mean.... Nothing will ever come of it... Is what I mean. not with that attitude. the point of bumping is so taht people can see this and help. some have already and thats great. and tahnks cyanide tahts awesome! Quote
jon182 Posted April 7, 2009 Posted April 7, 2009 Re: Attack Script made by us one that works Hopefully. This was taken from Jon's post and edited so that it has images...nice post Jon.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Just doing my part :-) I have already rewritten all aspects of my attack script. See it at http://crimeandchaos.com my page won't open the image. anything i can do to help it? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.