Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-15-2007, 06:25 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Further information:

customClasses...

entity.setValueForKey( "party", "customClass" );

This makes the entities derive from the party custom class.

Things of notice are these:

validForKey( aValue, aKey )

valueForKey( aValue, aKey )

allKeys()

These can be used for programmed variables*, access to all the keys available, or for your own error-handling. Try to keep it backward compatible... An example of this:

PHP Code:
public function validForKeyaValueaKey )
{
  if ( 
simplemanagedobject::validForKeyaValueaKey ) )
    {
    
// Your error-handling here!
    
if ( player.account == "Novo" )
      return 
true;
    return 
false;
    }
  return 
false;

* Programmed Variables will surely depend on the 'dependencies' functionality. It is currently AVAILABLE, however, it needs a better set-up for it to work appropiately!

Oh... Attachment shows how it could be implemented for muds.
Attached Thumbnails
Click image for larger version

Name:	Picture 1.png
Views:	269
Size:	127.5 KB
ID:	41073  

Last edited by Novo; 05-15-2007 at 06:39 PM..
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:51 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.