PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
ListItemsIntorus

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions
Display posts from previous:   

Author Message
FreeSoul



Joined: 04 Feb 2006
Posts: 90
Location: Aman

PostPosted: Wed Feb 22, 2006 7:32 am    Post subject: ListItemsIntorus Reply with quote

something like
ListItemsNearLocation( x, y, z, range, realm := _DEFAULT_REALM );
but with two ranges
ListItemsInTorus ( x, y, z, range1, range2, realm := _DEFAULT_REALM );
where range1<=range2

what for?
for example we need all items wchich are in exact range from our character.

i know I can use twice listitemsnearlocation whit different range and then compare and use only those item wchich are in the bigger and not in smaller range.

Author Message
CWO



Joined: 04 Feb 2006
Posts: 685
Location: Chicago, IL USA

PostPosted: Wed Feb 22, 2006 10:12 pm    Post subject: Reply with quote

Cant do?

foreach item in ListItemsNearLocation(x,y,z,max_range,realm)
if (Distance(who, item) > min_distance)
...
endif
endforeach

Author Message
FreeSoul



Joined: 04 Feb 2006
Posts: 90
Location: Aman

PostPosted: Thu Feb 23, 2006 11:56 am    Post subject: Reply with quote

yes... but if:
max_range:=3000;
min_range:=2999;

in listitemsnearlocation we have very much things...
so foreach item in listitemsnearlocation will have many loops

Author Message
Tomi



Joined: 21 Feb 2006
Posts: 30

PostPosted: Thu Feb 23, 2006 3:03 pm    Post subject: Reply with quote

or rather make it possible to have as many ranges as the developer wan'ts because otherwise someone will come up someday with the idea to have 3 or 4 or so...

Author Message
CWO



Joined: 04 Feb 2006
Posts: 685
Location: Chicago, IL USA

PostPosted: Thu Feb 23, 2006 4:57 pm    Post subject: Reply with quote

I dont think its even possible to make it so open that you can put in as many ranges as you want... but what would you want to happen exactly 3000 tiles away and how often will it run? If you have specific items or other things happening so far away, you should add the serial number to a prop that can be accessed easily by the script (if its an item's script the item's props otherwise you can use it on a global prop) then find it by SystemFindObjectBySerial()...

Author Message
FreeSoul



Joined: 04 Feb 2006
Posts: 90
Location: Aman

PostPosted: Thu Feb 23, 2006 5:29 pm    Post subject: Reply with quote

that was example...
but better one function will be then listitemsoftypeinbox

Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty