Jump to content
  • 0

Specialeffect on NPC with Sprite -1?


Question

Posted

Hi,

 

I want an invisible unclickable NPC that casts specialeffects.

But when I use -1 as SpriteID, the NPC won't show the specialeffects..

 

Is there a way to do this?

8 answers to this question

Recommended Posts

Posted

So if you want:

  • A not clickable npc, with position/info never send to the client/bot (so npctalk, effects, ... will fail), use -1.
  • A not clickable npc, with position/info send to client (npctalk, etc. will work), use 139.
  • A clickable npc, use 111.
  • Upvote 5
Posted

You can try to supply <send_target> parameter as long as a coordinate has been set.

Like this? Doesn't work. D:

specialeffect 237,AREA;

Official scripts use 111 (HIDDEN_NPC).

Hm, but this makes the NPC clickable and that kind of disturbs attacking players that are really close to the npc. x_X

Posted
sncf,18,154,4	script	#1	 111,{
end;

OnInit:
while(1) {
specialeffect ID;
sleep TIME;
}
}

or

 

 

for effect change

sncf,18,154,4	script	#2	 111,{
end;

OnInit:
while(1) {
specialeffect ID;
sleep TIME;
specialeffect ID2;
sleep TIME;
}
}
  • Upvote 1
Posted

 

So if you want:

  • A not clickable npc, with position/info never send to the client/bot (so npctalk, effects, ... will fail), use -1.
  • A not clickable npc, with position/info send to client (npctalk, etc. will work), use 139.
  • A clickable npc, use 111.

 

Awesome, 139 is exactly what I'm looking for, thanks!

  • Upvote 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...