Yoko

All sides of Injection
It is currently 2024-03-28 10:51:28

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: ,drop "bug" or error
PostPosted: 2009-03-20 00:53:05 
Offline

Joined: 2009-03-10 09:43:01
Posts: 78
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


Top
   
 Post subject:
PostPosted: 2009-03-20 01:34:14 
Offline

Joined: 2009-03-10 09:43:01
Posts: 78
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


Top
   
 Post subject:
PostPosted: 2009-03-23 21:39:30 
Offline
User avatar

Joined: 2005-07-06 18:17:24
Posts: 228
how can i drop item to regular -3 if i am at z=15? i dont understand your formula :shock:


Top
   
 Post subject:
PostPosted: 2009-09-09 20:30:03 
Offline

Joined: 2009-03-10 09:43:01
Posts: 78
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


Top
   
 Post subject:
PostPosted: 2009-09-09 21:15:44 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
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.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2009-09-10 00:21:33 
Offline

Joined: 2009-03-10 09:43:01
Posts: 78
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)


Top
   
 Post subject:
PostPosted: 2009-09-10 09:25:28 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
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

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited