You know that when you past npc on your map it starts mooving randomly. So I what to explain how to “stop” npc and make it stay on one place.
So open Server source and then in modules open modGeneral. Press Ctrl+F and find
If NPC(NPCnum).Behavior <> NPC_BEHAVIOR_SHOPKEEPER Then
As for me i wanted to have scripted npcs that wouldn’t move so if you what the same change previous code into:
If NPC(NPCnum).Behavior <> NPC_BEHAVIOR_SHOPKEEPER And NPC(NPCnum).Behavior <> NPC_BEHAVIOR_SCRIPTED Then
Make exe file and enjoy this.
But i understand that some ppls need either scripted mooved and nonmuved. So create your own NPC class, add it to creation list and change first code into:
If NPC(NPCnum).Behavior <> NPC_BEHAVIOR_SHOPKEEPER And NPC(NPCnum).Behavior <> NPC_BEHAVIOR_YourBehaviour Then
and incross YourBehaviour write name of behaviour you just created.
So that’s all what i wanted to say. Was it useful for you?? I really need mark course it’s my firs post in this room.