View Single Post
  #1  
Old 07-11-2002, 08:13 AM
Brandon_Bravo Brandon_Bravo is offline
Registered User
Join Date: Jun 2001
Location: Kalamazoo, Michigan USA
Posts: 206
Brandon_Bravo is on a distinguished road
Send a message via ICQ to Brandon_Bravo Send a message via AIM to Brandon_Bravo Send a message via MSN to Brandon_Bravo Send a message via Yahoo to Brandon_Bravo
Exclamation Something for NPC Server

I think it would be a cool thing if you could make NPCServer do things based on messages it receives. For example, the Events Admin or a member of the ET activates an NPC that causes the NPCServer to send a message to everyone with:
Mass Message:
An event is currently being held!
Current Event: Survivor
To be warped to the event, send a reply with "Warp to Event" as the contents.
Then, it would work like this:
NPC Code:

if (messagerecieved(Warp to Event)) {
with (players[sender]) {
setlevel2 eventlevel,x,y;
}
}


What do you think?

**EDIT** Another function could be:
messagestartswith - Checks for what the message starts with.
__________________
Brandon M.
Reply With Quote