Yoko
http://forum.yoko.com.ua/

,drop "bug" or error
http://forum.yoko.com.ua/viewtopic.php?f=4&t=14570
Page 1 of 1

Author:  xinxilas [ 2009-03-20 00:53:05 ]
Post subject:  ,drop "bug" or error

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

Author:  xinxilas [ 2009-03-20 01:34:14 ]
Post subject: 

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

Author:  Bangbuss [ 2009-03-23 21:39:30 ]
Post subject: 

how can i drop item to regular -3 if i am at z=15? i dont understand your formula :shock:

Author:  xinxilas [ 2009-09-09 20:30:03 ]
Post subject: 

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

Author:  Destruction [ 2009-09-09 21:15:44 ]
Post subject: 

Use uo.moveitem()

uo.drop() is deprecated

>>im just reporting it
Moved.

Author:  xinxilas [ 2009-09-10 00:21:33 ]
Post subject: 

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)

Author:  Mirage [ 2009-09-10 09:25:28 ]
Post subject: 

Excuse me for my english.
try this
Code:
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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/