View Single Post
  #1  
Old 09-23-2005, 02:33 AM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
Global Functions

A nifty addition to the game would be able to establish functions on a global scope (Functions accessible to all npcs).
Maybe have all NPCs automatically run this on creation: "function onCreated() this.join("globalfunc");"

This would be very appreciated, and quite useful.

e.g.:
PHP Code:
CLASS_GlobalFunc
function reportIn()
{
  echo(
"Reporting " this.id " in " this.level "(" this."," this.").");

&
PHP Code:
LOCAL_NPC
function onCreated()
{
  
reportIn();

__________________
In a world of change... Who'll you believe?