Jump to content
  • 0

NPC taget another NPC (script help)


Question

Posted

well what I wan't here is to have an npc that targets another npc.

sample

prontera NPC: input message; // just some random message

then after that the NPC in izlude will be enabled and show the message that was put in prontera NPC.

thanks in advance

3 answers to this question

Recommended Posts

Posted (edited)

use $@ , $ or . type to storage your message

and after typed messages, do enablenpc + ( donpcevent + label(if you won't use announce))

or use ( getnpcid + unittalk )

or ( initnpctimer <name> + OnTimer )

[What I think : NPC will appear and talk something]

Edited by goddameit
Posted (edited)

150,150,1 script ABC 53,{
input .ABC$;
dispbottom "Activated.";
donpcevent "DEF::OnEnable";
end;
}

152,152,1 script DEF 53;{
getvariableofnpc(.ABC$,"ABC");
mes .ABC$;
mes "From ABC.";
close;

OnEnable:
hideoffnpc;
end;

OnInit:
hideonnpc;
end;
}

Something like this?

Edited by darristan
  • Upvote 1
Posted (edited)

awesome thanks a lot and is it possible to make the npc unclickable/unavailable when someone is talking to it?

Edited by xin

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...