Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to make npc stand at one place only ?


Raja Hindustani
 Share

Recommended Posts

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

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

@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

@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 Then

Thats it.
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...