Permanent NPC Companion

iskoy.flores

New member
Messages
21
Points
0
Github
iskoy.flores
I'm currently using this script: http://herc.ws/b...dicated-npc-v3/

The above script functions by hiring the npc and making it your personal healer + buffer slave. Essentially it follows you around. When you die and respawn it still sticks with you and continues on following. However, when you logout or get disconnected the NPC returns to its original position where you need to re-hire it again.

Is there a way to make it wait for you? And still follow after you get disconnected? Like some sort of pet?

 
Thanks for the tip; however, I can't seem to understand how I can make use of that....

Inside the script there's this line:

OnPCLogoutEvent: if(@ddnpc_id) Endd(@ddnpc_id-1); end; function Endd { .@id = getarg(0); .npc_status[.@id] = 0; .npc_time[.@id] = 0; unitwarp .npc_gid[.@id],.npc_om$[.@id],.npc_ox[.@id],.npc_oy[.@id]; return; }}
Do you have any tips on how to edit this?

 
Back
Top