![]() |
NPC that uses showcharacter() attacks players near it
Hello,
I got a problem on my server Zenox that every NPC that is using the showcharacter() function attacks player near it in a pk-zone. It happens although it hasn't joined any other class. I wanted to completely disable the default hitpoint-system because we have our custom one. So can you please help me to fix this? Jay |
I've noticed this before on several different servers, but unfortunately, I know of no way to fix it.
|
i never experienced this :o
does the npc have to walk around or just staying still like a "statue"? |
Quote:
|
Need some more details here... you're not really explaining it very well. Do they actually use their sword? Do they chase the player? Do they just hurt the player if they touch them, or do they swing if the player gets in front of them?
|
I would assume it's related to replacing the sword animation.
replaceani("sword", "idle"); Edit: Confirmed, if you do the above walking into idle characters will "hit" you. |
Quote:
|
Quote:
On Zenox, you can probably just remove the code since it's used to disable the sword and you have your own custom movement anyway, but otherwise, I guess you could upload a copy of idle called like "zenox_idle" to avoid the problem. |
They aren't disabling the sword properly if they're replacing the sword animation.
|
Thank you for your help. I have fixed it now by using this.setcharani("zenox_idle",null); instead of using this.ani = "zenox_idle"; :D
|
| All times are GMT +2. The time now is 04:51 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.