Jump to content
  • 0

NPC taget another NPC (script help)


xin

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   1
  • Joined:  10/19/12
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   1
  • Joined:  10/19/12
  • Last Seen:  

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

Edited by xin
Link to comment
Share on other sites

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.

×
×
  • Create New...