View Single Post
  #4  
Old 11-01-2005, 01:47 AM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by npcprogramming.doc
7. Events

Here you will see a list of all events. 'Event' means the npc script will be called and a special flag is set.

playerenters the player enters the level right now
playerouchsme the player touchs the npc
playertouchsother another npc is touched by the player
playerlaysitem an item is layed by the player or another npc
playerchats the player says something
...
8. Addtional flags

A list of flags not mentioned yet:

...
strequals( str1, str2 ) str1 = str2 (both strings can contain message codes)
strcontains( str1, str2 ) str1 contains str2
(to check what the player says use: strequals(#c,str), strcontains(#c,str); to check if the player is in a special guild: strequals(#g,guildname) or strcontains(#n,(guildname)))
Put them together.
Reply With Quote