Scythe Posted June 22, 2010 Author Share Posted June 22, 2010 i added the behavior and everything but no matter what i do i cant get a npc to always stand still can some1 help me plz Link to comment Share on other sites More sharing options...
Joyce Posted June 22, 2010 Share Posted June 22, 2010 Just skip the movement code when it has that behaviour? ;D Link to comment Share on other sites More sharing options...
Scythe Posted June 22, 2010 Author Share Posted June 22, 2010 i left the behavior code blank and it still moved :lipsrsealed: Link to comment Share on other sites More sharing options...
Joyce Posted June 22, 2010 Share Posted June 22, 2010 That's probably because there's a part that makes NPCs with any other behaviour besides a few to move.. try changing that as well.. Simply adding lines isn't enough to change an existing system :P Link to comment Share on other sites More sharing options...
Scythe Posted June 22, 2010 Author Share Posted June 22, 2010 i could not get it to work so i surrounded him with npc avoids Link to comment Share on other sites More sharing options...
Ertzel Posted June 22, 2010 Share Posted June 22, 2010 Server SidemodeGameLogic```Function CanNpcMove(ByVal MapNum As Long, ByVal MapNpcNum As Long, ByVal Dir As Byte) As Boolean```Look in there and make it so your NPC can't move…Not 100% sure on the coding but I think something like this would work...``` ' Check to make sure the Npc can't walk If Npc(NpcNum).Behaviour = NPC_BEHAVIOUR_WhateverYourNpc'sBehaviourIs Then CanNpcMove = False Exit Function End If``` Link to comment Share on other sites More sharing options...
Scythe Posted June 22, 2010 Author Share Posted June 22, 2010 i have tried everything but i cant get them to STAND STILL Link to comment Share on other sites More sharing options...
Kimimaru Posted June 23, 2010 Share Posted June 23, 2010 If you're using Eclipse Stable, I believe you have to make the Server send the Npc Behavior through the "updatenpc" packet. Link to comment Share on other sites More sharing options...
Scythe Posted June 23, 2010 Author Share Posted June 23, 2010 it does not need individual behaviors it just sends its behavior and unless i did that wrong i have that 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