BillyM Posted February 24, 2011 Author Share Posted February 24, 2011 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 themIf 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 = 0End 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 More sharing options...
Robin Posted February 24, 2011 Share Posted February 24, 2011 You need to call the NPC AI procedure more often. Link to comment Share on other sites More sharing options...
BillyM Posted February 24, 2011 Author Share Posted February 24, 2011 I'm not seeing a procedure related to what you're saying. UpdateMapLogic?? If so, I have tried calling that more often and there was no change.If i'm way off, sorry. Working on barely any sleep. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now