Raja Hindustani Posted July 16, 2011 Author Share Posted July 16, 2011 I want npc to stand at one place only. Also when player attacked him , but npc will not chase player. He just stand to his fixed place. HELP !!! Link to comment Share on other sites More sharing options...
mmearrccii Posted July 16, 2011 Share Posted July 16, 2011 in modServerLoop, find the comment:``` ' Check to see if its time for the npc to walk If NPC(npcNum).Behaviour <> NPC_BEHAVIOUR_SHOPKEEPER And NPC(npcNum).Behaviour <> NPC_BEHAVIOUR_FRIENDLY Then```Add there your npc's type… Link to comment Share on other sites More sharing options...
Raja Hindustani Posted July 16, 2011 Author Share Posted July 16, 2011 ok thnx for the help. one more thing how to set position of npc in map ? Link to comment Share on other sites More sharing options...
Warden Posted July 16, 2011 Share Posted July 16, 2011 on admin panel(click insert) open map editor,then push attributes or smth down there,theres blocked,warp etc and somewhere middle there is npc spawn,then choose your npc and put it on the map.(before that you have to add npc from map properties Link to comment Share on other sites More sharing options...
Raja Hindustani Posted July 16, 2011 Author Share Posted July 16, 2011 Thank you so much guys. :bstar: Link to comment Share on other sites More sharing options...
shengbeng Posted July 16, 2011 Share Posted July 16, 2011 @mmearrccii:> in modServerLoop, find the comment:> ```> ' Check to see if its time for the npc to walk> If NPC(npcNum).Behaviour <> NPC_BEHAVIOUR_SHOPKEEPER And NPC(npcNum).Behaviour <> NPC_BEHAVIOUR_FRIENDLY Then> > ```> Add there your npc's type…does this code really useful? Link to comment Share on other sites More sharing options...
mmearrccii Posted July 16, 2011 Share Posted July 16, 2011 @shengbeng:> does this code really useful?What do you mean by useful? Is it works? Yes. If you don't want your npc to move, then yes its useful. Just put your NPC's behaviour there… Like if you have NPC_BEHAVIOUR_BANKER then modify it like this:If NPC(npcNum).Behaviour <> NPC_BEHAVIOUR_SHOPKEEPER And NPC(npcNum).Behaviour <> NPC_BEHAVIOUR_FRIENDLY And NPC(npcNum).Behaviour <> NPC_BEHAVIOUR_BANKER ThenThats it. Link to comment Share on other sites More sharing options...
ForsakenProdigy Posted July 20, 2011 Share Posted July 20, 2011 you dont need a code . . EO lets you just click "Block" in the Map Editor. If your using ES then , Use the code Link to comment Share on other sites More sharing options...
Broojo02 Posted July 20, 2011 Share Posted July 20, 2011 Yeah, you could place 4 NPC Block tiles around the NPC :P Link to comment Share on other sites More sharing options...
RyokuHasu Posted July 20, 2011 Share Posted July 20, 2011 @Broojo:> Yeah, you could place 4 NPC Block tiles around the NPC :PThis is the best way in my opinion. Because then you have Non moveing Npcs, but your NPCS then can move when you want them too. Link to comment Share on other sites More sharing options...
mmearrccii Posted July 21, 2011 Share Posted July 21, 2011 @RyokuHasu:> This is the best way in my opinion. Because then you have Non moveing Npcs, but your NPCS then can move when you want them too.Well, you can do it that way, but i like it this way… It's better in my opinion.. 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