View Single Post
  #1  
Old 01-03-2007, 01:26 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Protected variables

Similar to access specifiers in C++, it would be cool if we can create private or read-only variables so remote objects can't view and/or edit them.

I bring this up when as I realized that anyone could access the strings in my StaffRights dbnpc and read/change them. Thus I'd like an option to be able to protect objects and their associated variables. Only really needed serverside.

I have no idea how hard this would be to implement but cool if we could make variables read only or private/hidden.

Also, I'd also think it'd be great if we have an option to compile a weapon/class/npc 's coding with encryption. This could either be done by
  • Finalising and encrypting a NPCs code so it can never be accessed/changed again - only deleted
  • Encrypting a NPC with a password
  • Giving anyone with rights to the weapon the ability to encrypt / decrypt the NPC.

With the recent use of weapon scripts that can steal servers, this may be a useful addition as well. These may have been requested before. If this is a stupid idea, at least say why .
Reply With Quote