,drop "bug" or error

Requests of new features and reports on bugs needs to be fixed

Moderators: Murderator+, Murderator

Post Reply
xinxilas
Posts: 78
Joined: 2009-03-10 09:43:01

,drop "bug" or error

Post by xinxilas »

im at 100,100,0
then i use ,drop 0 0 0 -4
itens goes to -4 Z of the world
--> OK!
Working way: it reads the last number of ,drop as the Z of the WORLD, so the item will go to -4

------

im at 100,100,2
then i use ,drop 0 0 0 -2
itens goes to -2 Z of the world
--> OK!
Working way: it reads the last number of ,drop as the Z of the WORLD, so the item will go to -2

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

im at 100,100,6
then i use ,drop 0 0 0 2
itens goes to 8 Z of the world
--> DIFFERENT!
Working way: it reads the last number of ,drop using CHAR's Z + NUMBER, so the item will go to 8

So if im at +Z i cant drop itens between 0 and my Z
If im at Z=10 i cant drop to Z=5 of yhe world
xinxilas
Posts: 78
Joined: 2009-03-10 09:43:01

Post by xinxilas »

Same for uo.drop

if im at Z=10

I cant drop the item to Z=5
uo.drop(1,x,y,Zp,item)
If Zp is -5 and MyZ=10 ill try to drop at -5 and not 10 - 5 = 5
And Zp is 5 ill try to drop at 15 , cuz will +numbers the formula is Z = MyZ + Zp
Bangbuss
Posts: 228
Joined: 2005-07-06 18:17:24

Post by Bangbuss »

how can i drop item to regular -3 if i am at z=15? i dont understand your formula :shock:
xinxilas
Posts: 78
Joined: 2009-03-10 09:43:01

Post by xinxilas »

man its not difficult to understand the explaining and the examples of the problem.. im just reporting it... if the devs want to fix, just fix
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

Use uo.moveitem()

uo.drop() is deprecated

>>im just reporting it
Moved.
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
xinxilas
Posts: 78
Joined: 2009-03-10 09:43:01

Post by xinxilas »

do not work too
same problem

2 criters for 2 circunstacnes

if i am at Z=6 and move the item to 0 0 0 5 it will drop to Z=11 (my z PLUS Z from the comand)

if i am at Z=6 and want to drop it to Z=1
i supose to use 0 0 0 -5 right?
yeah.. but using moveitem 0 0 0 -5 it will try to drop at Z=-5
and not my Z minus Z from the comand)
Mirage
Posts: 2802
Joined: 2009-05-28 09:58:28
Location: Иваново
Contact:

Post by Mirage »

Excuse me for my english.
try this

Code: Select all

UO.Msg(".resync")
UO.MoveItem('finditem','1','ground',UO.GetX('self'),UO.GetY('self'),UO.GetZ('self')+z)


for z=-5. And you get 6-5=1
Post Reply