Update wiki to match gradle conversion authored by Derek Williams's avatar Derek Williams
There is a table in the database that keeps a list of all of the NPCs. Creating a new NPC requires filling that table. When a server starts, it will query that table for what NPCs it should have and starts them up. There is a table in the database that keeps a list of all of the NPCs. Creating a new NPC requires filling that table. When a server starts, it will query that table for what NPCs it should have and starts them up.
The only thing that difference from one NPC to the next is its behavior. That is encoded in a class that extends NPCBehavior. There are two things that can trigger an NPC to react. First, it can be set up to do things periodically. Those things should be coded in doTimedEvent() and the rate at which they should be done is set in getPollingInterval. Second, it can listen for reports and react to reports. The reports it listens to are set in getReportTypes(). The only thing that difference from one NPC to the next is its behavior. That is encoded in a class that extends NPCBehavior. There are two things that can trigger an NPC to react. First, it can be set up to do things periodically. Those things should be coded in doTimedEvent() and the rate at which they should be done is set in getPollingInterval. Second, it can listen for reports and react to reports. The reports it listens to are set in getReportTypes().
\ No newline at end of file