Anisotropic Defixation 18 Posted August 11, 2015 Is there a way to attach it to a certain NPC? Something like: OnTimer1000: misceffect 1,instance_npcname("npc#1"); end; Thanks! Quote Share this post Link to post Share on other sites
0 Winterfox 83 Posted August 11, 2015 (edited) @@Anisotropic Defixation What you are searching for is donpcevent: place, 100,100,1%TAB%script%TAB%NPC%TAB%53,{ mes "Hey NPC2 copy what I do"; close2; @emote = rand(1,30); donpcevent "NPC2::OnEmote"; OnEmote: emotion @emote; end;}place,102,100,1%TAB%script%TAB%NPC2%TAB%53,{ mes "Hey NPC copy what I do"; close2; @emote = rand(1,30); donpcevent "NPC::OnEmote"; OnEmote: emotion @emote; end;} https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txt Edited August 11, 2015 by Winterfox Quote Share this post Link to post Share on other sites
0 Garr 117 Posted August 11, 2015 I don't think so, but you can write the OnTimer label on the NPC you need it on and just initnpctimer from the npc you want to call misceffect: *initnpctimer { "<NPC name>" {, <Attach Flag>} } Quote Share this post Link to post Share on other sites
Is there a way to attach it to a certain NPC?
Something like:
Thanks!
Share this post
Link to post
Share on other sites