19-03-2009, 07:52 PM
If you comment out the DoEvents near the bottom of the sub, it runs much faster.
[spoiler][/spoiler]
The first number is the old npc ai code, the second number is my code.
The higher numbers are when i logged in and the npcs attacked. 3 npcs set on aggresive and 1 non admin player.
[spoiler]
Code:
Testing results 47 47
Testing results 47 31
Testing results 47 47
Testing results 47 31
Testing results 47 47
Testing results 47 31
Testing results 47 47
Testing results 47 31
Testing results 47 454
Testing results 609 437
Testing results 594 422
Testing results 593 422
Testing results 610 422
Testing results 593 438
Testing results 594 421
Testing results 594 422
Testing results 594 422
Testing results 594 422
Testing results 594 437
Testing results 594 438
Testing results 625 31
Testing results 47 47
Testing results 47 31
Testing results 47 47
Testing results 47 31
Testing results 47 47
Testing results 47 31
Testing results 47 47
Testing results 46 32
Testing results 47 46
Testing results 47 32
Testing results 46 47
Testing results 47 31
Testing results 63 47
Testing results 47 31
Testing results 47 47
Testing results 46 32
Testing results 47 46
Testing results 47 32
Testing results 46 47
Testing results 47 31
Testing results 47 47
Testing results 47 31
Testing results 47 47
Testing results 47 31
Testing results 47 47
Testing results 47 31
The first number is the old npc ai code, the second number is my code.
The higher numbers are when i logged in and the npcs attacked. 3 npcs set on aggresive and 1 non admin player.