[CD3.55] Not all objects appear

Join Discord

Mart393

Dedicated Member
Dedicated Member
Dec 15, 2011
105
1
44
Do not know why but when I throw objects on the map with the code:
DropItemMap "32,226,150,50" BenedictionOil 1 1


the object appears sometimes and sometimes not.


No because it is, if it is because the object falls in some inaccessible area, and therefore the object does not appear. I do not know.


Anyone know where is the problem?


Thanks mates
 

kastaña

Dedicated Member
Dedicated Member
Jun 18, 2012
15
1
29
test with a smaller radius, X and Y your position and radius 5 or 6, would have to appear near you
 
Upvote 0

Mart393

Dedicated Member
Dedicated Member
Dec 15, 2011
105
1
44
I'm just trying to create a random object around the map as follows:

---------------------------------------------

#ACT
Mov A0 0 ;;Number Map;
Movr D1 500 ;;Random X 0 - 500;
Movr D2 500 ;;Random Y 0 - 500;
FormatStr "%s,%s,%s,50" %A0 %D1 %D2
DropItemMap "%A9" BenedictionOil 1 1

---------------------------------------------

The object is created sometimes and sometimes not.


Is there any command to check if an object is dropped on the map?
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
Sometimes the location picked is occupied. I believe that's your problem. I remember trying this with mapmove as part of a script and kept stopping me because mobs in the way.
 
Upvote 0

Mart393

Dedicated Member
Dedicated Member
Dec 15, 2011
105
1
44
Thanks Chimera.

So there is no solution?


There is no way to check if the "benedictionoil" object is on the map?
It would be something like this:

#IF
CheckItemMap BenedictionOil
#SAY
The object is in the map
#ELSESAY
The object is not on the map





This way you could check if the object is in the map.


There is nothing like that? or there is another method?
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
Only seems to be the dropitem command, none to check....though if you put the item on a special mob like a tree or mob that's really weak/doesn't move then that could be checked. That's a way round it :)
 
Upvote 0