Help with if statement
- 
Also you should learn some more about ScriptAPI to solve your questions yourself, you can take a look at the code of other scripts (look in the old forum or my script pack), learn JavaScript at w3schools.com
 - 
I'm trying to make a script where It detects if the player was hit and then the player hits back. I don't really know how to do this but if somebody did that would be great!
 - 
Also you should learn some more about ScriptAPI to solve your questions yourself, you can take a look at the code of other scripts (look in the old forum or my script pack), learn JavaScript at w3schools.com
 - 
W whym has marked this topic as solved on 
 - 
I'm trying to make a script where It detects if the player was hit and then the player hits back. I don't really know how to do this but if somebody did that would be great!
if(mc.thePlayer.hurtTime == 9) mc.thePlayer.swing();btw im aware this dosent attack but only swings
 - 
if(mc.thePlayer.hurtTime == 9) mc.thePlayer.swing();btw im aware this dosent attack but only swings
@plumer-man thank you!