Untargetable Npc

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Dinamitas
Posts: 26
Joined: Wed Dec 29, 2010 9:22 pm

Untargetable Npc

Post by Dinamitas »

Hello Everyone,
I have a question. Is it possible to make Npcs Untargetable, I did changed npc to untargetable, but still i can target them. If there is a way could you give me some kind of hint ?
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Untargetable Npc

Post by Zoey76 »

Hint: Check how Christmas Trees are managed.
Powered by Eclipse 4.34 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Untargetable Npc

Post by jurchiks »

NPC.properties, bottom-most config:
NonTalkingNpcs = ...add here your npc ID
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Untargetable Npc

Post by Zoey76 »

jurchiks wrote:NPC.properties, bottom-most config:
NonTalkingNpcs = ...add here your npc ID
NonTalkingNpcs means no chat window on double click, but still target :wink:
Powered by Eclipse 4.34 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Untargetable Npc

Post by jurchiks »

Well, it's not far from it, but that shouldn't be hard to make as a config too.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
Ithil
Posts: 15
Joined: Tue Nov 16, 2010 4:39 pm

Re: Untargetable Npc

Post by Ithil »

Sorry to reheat this topic, but...

In npc.sql have a column, named: "targetable". I set this some npc to 0, but still can target w. /target command.
Some places not have geo (Chamber of Delusion), and players can pull across Aenkinel to wall.
Q: How can I disable /target to some specified npcs (ie. bosses), or where can I find /target script?
Post Reply