willunited Posted March 10, 2013 Author Share Posted March 10, 2013 Where i can find the sub that move the npc randomly when the npc have no target? Link to comment Share on other sites More sharing options...
Matt Posted March 10, 2013 Share Posted March 10, 2013 Go to the server sided code, and look for modLoop. The sub is in that module. Link to comment Share on other sites More sharing options...
willunited Posted March 10, 2013 Author Share Posted March 10, 2013 yes,it's at UpdateMapLogic sub,but i didn't found =\i tryied choosing the "i = Int(Rnd * 2)" to i = Int(Rnd * 5) but nothing happens (im trying to make npcs more randomics)> ' We could not move so Target must be behind something, walk randomly.> > If Not didwalk Then> > i = Int(Rnd * 2)> > If i = 1 Then> > i = Int(Rnd * 4)> > If CanNpcMove(mapnum, x, i) Then> > Call NpcMove(mapnum, x, i, MOVING_WALKING)> > End If> > End If> > End If> > End If> > Else> > i = Int(Rnd * 4)> > If i = 1 Then> > i = Int(Rnd * 4)> > If CanNpcMove(mapnum, x, i) Then> > Call NpcMove(mapnum, x, i, MOVING_WALKING)> > End If> > End If> > End If> > End If> > End If> > End If 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