Thread: Npc Message
View Single Post
  #2  
Old 09-22-2005, 03:23 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Quote:
Originally Posted by alissalee
how can i make the npc server send out another message when the player pms it saying a word like "Nat Applacation"
(These go into the Control-NPC)

There's a function, onPM(), that is called when the player PMs the NPCServer. Fiddle around with the params, I think the first one is the account and the second one is the text. Using some crazy if-statements, you can find a way to check if the text is equal to something. Then, you can use the sendpm(text) function to send the reply. Note, this is serverside, yanno.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote