View Single Post
  #8  
Old 09-14-2007, 10:40 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Stefan View Post
Why not simply use MyFunctionsNPC.function() ?
Scripter's are lazy, and classes is just a hazzle when there's alot of them

It could be nice with global functions that would make it so you couldn't make more functions with the same name, for example when you make another onCreated() event or make two functions with the same name, it will cause an error

PHP Code:
Mud.additem("sword"1);
additem("sword"1);
player.mud.additem("sword"1);
Mud_Object_Player_Chompy.additem("sword"1); 
etc.. in the end you get confused, but that was kinda a bad example, but if you could create global function it would help for example the main systems of the server, for example the mudlib that servers lately are interested in.
__________________

Last edited by Chompy; 09-14-2007 at 11:31 PM..
Reply With Quote