Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i check is item on blackzone
Author Message
wartoghex
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2013
Reputation: 0



Post: #1
How can i check is item on blackzone
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
07-07-2013 02:06 PM
Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #2
RE: How can i check is item on blackzone
well, u can only mine in type t_rock, so of course thats what it returns, what else were you expecting to get?

[Image: matts_siggy.gif]
07-07-2013 04:08 PM
Find all posts by this user Like Post Quote this message in a reply
wartoghex
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2013
Reputation: 0



Post: #3
RE: How can i check is item on blackzone
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
07-07-2013 04:42 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: How can i check is item on blackzone
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?

[Image: 2nis46r.jpg]
07-07-2013 09:44 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #5
RE: How can i check is item on blackzone
also if you could tell us how you are triggering the function to return the type (i.e. @step)

[Image: matts_siggy.gif]
07-07-2013 10:20 PM
Find all posts by this user Like Post Quote this message in a reply
Myrdin
Apprentice
*

Posts: 13
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #6
RE: How can i check is item on blackzone
(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.
(This post was last modified: 07-08-2013 03:38 AM by Myrdin.)
07-08-2013 03:33 AM
Find all posts by this user Like Post Quote this message in a reply
wartoghex
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2013
Reputation: 0



Post: #7
RE: How can i check is item on blackzone
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.
(This post was last modified: 07-08-2013 04:45 AM by wartoghex.)
07-08-2013 04:43 AM
Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #8
RE: How can i check is item on blackzone
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.

[Image: matts_siggy.gif]
07-08-2013 02:03 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)