[HELP] Attack Speed fix?

12/31/2010 06:04 corbit15#1
Ok, so i've been trying to find a guide that will help me fix the attack speed on my server but so far, i haven't found anything on it.

On my server the attack speed is really high for some reason, meaning it's as if everyone has cyclone on when they attack. They attack really fast. Does anyone know how to fix this?
12/31/2010 06:22 -Shunsui-#2
make it wait with a timer,
12/31/2010 06:32 corbit15#3
ok thanks but another question do you think you could show me an example of a timer?

it doesnt have to work but so i know the basics i have only been coding about a week or two now an i havent learned timers yet.
12/31/2010 10:01 { Angelius }#4
Add or search for this
PHP Code:
 public short AttackFrequence
        
{
            
get
            
{
                
short t 1000;
                
-= (short)(Agi EqStats.ExtraDex);
                if (
StatEff.Contains(StatusEffectEn.Cyclone))
                    
/= 5;
                if (
StatEff.Contains(StatusEffectEn.SuperMan))
                    
/= 2;
                if (
StatEff.Contains(StatusEffectEn.FatalStrike))
                    
/= 5;
                
= (short)Math.Max((int)t200);
                return 
t;
            }
        } 
if you already have it in character.cs than all you need to do is edit/change the numbers if you dont have it than copy paste it and use the GC.Mychar.AttackFrequence line to prepare the player to attack

EDIT.... if you want to do the right thing Do what -Shunsui- said its better
12/31/2010 11:17 Iron~Man#5
Ewww Fail.
Tell us source version, source name and etc... otherwise nobody is going to be able to help you
12/31/2010 20:43 corbit15#6
5165 with rikardo updated. but thanks i got it fixed now
12/31/2010 21:12 { Angelius }#7
@Iron~Man

Fail !!
lmao you dont need to know what is the source version or what is the source name to fix that but thanks for stepping by :)