Player utility

For questions relating to POL scripting (not necessarily related to WoD)

Moderators: Siobhan, Sebastian, Drocket

Player utility

Postby SDonald on Wed Feb 25, 2004 8:45 am

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)
SDonald
Regular Poster
 
Posts: 102
Joined: Fri Oct 11, 2002 7:47 am
Location: Australia

Return to Scripting Forum

Who is online

Users browsing this forum: No registered users and 0 guests

cron