[Help]Monk - Skill wwk

03/26/2013 16:51 Xanrry#1
Any can help me to fix wwk, u need click 10x Times on jump to working

PHP Code:
                                    //WhirlwindKick
                                    
case 10415:
                                        {
                                            if (
Time32.Now < attacker.WhilrwindKick.AddMilliseconds(1500))
                                            { 
attacker.AttackPacket = null; return; }
                                            
attacker.WhilrwindKick = Time32.Now;
                                            if (
ServerBase.Kernel.GetDistance(attacker.X, attacker.Y, X, Y) <= 3)
                                            {
                                                if (
CanUseSpell(spell, attacker.Owner))
                                                {
                                                    
PrepareSpell(spell, attacker.Owner);

                                                    
SpellUse suse = new SpellUse(true);
                                                    
suse.Attacker = attacker.UID;
                                                    
suse.SpellID = spell.ID;
                                                    
suse.SpellLevel = 0;
                                                    
suse.X = (ushort)ServerBase.Kernel.Random.Next(3, 10);
                                                    
suse.Y = 0;

                                                    if (
ServerBase.Kernel.GetDistance(attacker.X, attacker.Y, X, Y) <= 3)
                                                    { for (
int c = 0; c < attacker.Owner.Screen.Ob
                                                    
{
                                                        if (
c >= attacker.Owner.Screen.Objects.Length)
                                                            break;
                                                        
Interfaces.IMapObject _obj = attacker.Owner.Screen.Objects[c] 
03/26/2013 16:56 Captivate#2
What the fuck is that?
03/26/2013 17:07 Xanrry#3
WhirlwindKick:facepalm:
03/26/2013 17:17 Haary*Potter#4
answer in this code
Code:
if (Time32.Now < attacker.WhilrwindKick.AddMilliseconds([COLOR="Red"]1500[/COLOR]))
its work every 1500 millisecond change it :pimp:
03/26/2013 18:22 Xanrry#5
I do not know what you mean!
03/26/2013 19:45 diedwarrior#6
Code:
if (Time32.Now < attacker.WhilrwindKick.AddMilliseconds(1500))
means you gotta wait 1500 ms before you can use it again.(that's what I've understood from your thread)
Edit that or just remove it.
Also wrong section btw.
03/26/2013 19:54 Xanrry#7
Thanks to diedwarrior And the others!.


#Closed
03/31/2013 23:07 divi<3#8
937 Posts, yet he still doesn't understand sections.