[DGD]add:object(), del_object()

Lord Lerkista lerkista at hotmail.com
Thu Nov 30 22:01:27 CET 2000


Is any simpler form to do that??

dgd/sys/global.c

void add_object(){
if(PRIVILEGED()){
if(objects==0){objects=([]);}
if(objetos==0){objetos=([]);}
objects[creator_file(previous_object())]++;
objetos[previous_object()]++;}}

void del_object(){object *obj;int i,sz;
if(PRIVILEGED()){
objects[creator_file(previous_object())]--;
obj=map_indices(objetos);objetos=([]);
for(i=0,sz=sizeof(obj);i<sz;i++){
if(file_name(obj[i])!=file_name(previous_object())){objetos[obj[i]]++;}}}}


because i imagine that when the mud has a lot of objects this will be too 
much load!!

this do a list of all the objects in the mud!!

_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list