SphereCommunity
How can i check is item on blackzone - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: How can i check is item on blackzone (/Thread-How-can-i-check-is-item-on-blackzone)



How can i check is item on blackzone - wartoghex - 07-07-2013 02:06 PM

Hi all;

I'm codding script for mine caves.

When player drop my item near the blackzone at mine cave my item created randomly at blackzone

I've tried <serv.map(pos).type> but it returns t_rock


RE: How can i check is item on blackzone - Rattlehead - 07-07-2013 04:08 PM

well, u can only mine in type t_rock, so of course thats what it returns, what else were you expecting to get?


RE: How can i check is item on blackzone - wartoghex - 07-07-2013 04:42 PM

I think you dont understand me or i cant explain it correctly.

I would like to check if area has got a terrain or is it blackzone (nothing over there, you cant walk or something etc.)
When i try to check blackzone's type it returns t_rock. But i need to be empty or somelike nothing


RE: How can i check is item on blackzone - Mordaunt - 07-07-2013 09:44 PM

blank/black/void tiles I beleive should be returning type t_normal, unless you have done any modding to your spheretypes.scp
Are you running a custom map?


RE: How can i check is item on blackzone - Rattlehead - 07-07-2013 10:20 PM

also if you could tell us how you are triggering the function to return the type (i.e. @step)


RE: How can i check is item on blackzone - Myrdin - 07-08-2013 03:33 AM

(07-07-2013 02:06 PM)wartoghex Wrote:  I've tried <serv.map(pos).type> but it returns t_rock
usually mines are beneath mountains (t_rockDevil), therefore it is most likely that t_rock is the correct type anyway. (no void/black/nodraw)
perhaps it works if you check for statics Woot at the given location and check the statics for their type.
If you have a static with type t_rock, this is most probably the cave floor. If you have no statics at all, or only statics of other types, create your floor.


RE: How can i check is item on blackzone - wartoghex - 07-08-2013 04:43 AM

Im using fresh installation of UO-AOS and Latest Sphere Server Prerelease and latest script pack

(07-07-2013 10:20 PM)Rattlehead Wrote:  also if you could tell us how you are triggering the function to return the type (i.e. @step)

Im triggering with function.


RE: How can i check is item on blackzone - Rattlehead - 07-08-2013 02:03 PM

how are you triggering the function tho, what calls it?

maybe we can help come up with a working one, but we need to know how you are calling it.