Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

NPC Movement


BillyM
 Share

Recommended Posts

I hope this doesn't sound like a dumb question, so I'll apologize first.

Where in the server code is it determined when/how fast an NPC can move?  Searching through the code, I'm only finding .StunDuration (which comments say it's for spells)  Is StunDuration also timing whether it's time for an NPC to move normally? 

(```
I changed it from 1000 to 100 and NPC's move faster.)
' check if we can unstun them
If GetTickCount > MapNpc(mapNum).Npc(x).StunTimer + (MapNpc(mapNum).Npc(x).StunDuration * 1000) Then  '<--Changed that to 100
    MapNpc(mapNum).Npc(x).StunDuration = 0
    MapNpc(mapNum).Npc(x).StunTimer = 0
End If
```But that would affect spell stun duration as well, we don't want that.

But anyways, when I attack an NPC and the NPC then makes me their target, and i run away, it's just taking way entirely to long for the NPC to try and chase me down.  There's too long of a pause in between their movement.

Am I overlooking something?  I wanna make sure I'm not overlooking something simple before I go and modify NPC movement to my liking.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...