Page 1 of 1

Player utility

PostPosted: Wed Feb 25, 2004 8:45 am
by SDonald
Drocket,
I was wondering if you had considered yet another dot command or if there is another way to do the same thing - a way to count the number of items in the screen area that can effect lag.
That way players can keep an eye on dangerous places to log off.

Code: Select all
use uo;

program item_count (character)
   var items := 0;
   var i;
   var plrz := character.z;
   foreach item in ListItemsNearLocation (character.x, character.y, character.z, 15)
      items := items +1;      
//      SendSysMessage (character, item.desc);
   endforeach
   SendSysMessage (character, items + " items counted within 15 tiles.");
endprogram


It seems to work. The z range seems to be enough.


Regards,
OldnGrey.
(I am not sure if you have the time to read my posts)