Yoko

All sides of Injection
It is currently 2025-10-14 22:54:03

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Cutting leather script
PostPosted: 2004-05-24 20:39:34 
Offline

Joined: 2004-05-24 20:37:14
Posts: 1
I did a script:
Code:
sub botas()
VAR i
dim botas[4]
botas[1]= 0x170b
botas[2]= 0x170f
botas[3]= 0x170e
botas[4]= 0x1711
Start:
For i = 1 to 4
UO.Usetype("0x0f9e")
Wait(1000)
UO.WaitTargetobject("botas[i]")
wait(4000)
next
goto Start
end sub


- botas[1,2,3,4] are the types of boots
- "0x0f9e" is the scissors

The problem is: when i try to run it, cames a msg "what you select didn't exists"


Top
   
PostPosted: 2004-05-25 00:33:37 
Offline
User avatar

Joined: 2004-04-03 18:39:28
Posts: 173
serpentkillers wrote:
I did a script:
Code:
sub botas()
VAR i
dim botas[4]
botas[1]= 0x170b
botas[2]= 0x170f
botas[3]= 0x170e
botas[4]= 0x1711
Start:
For i = 1 to 4
UO.Usetype("0x0f9e")
Wait(1000)
UO.WaitTargetobject("botas[i]")
wait(4000)
next
goto Start
end sub


- botas[1,2,3,4] are the types of boots
- "0x0f9e" is the scissors

The problem is: when i try to run it, cames a msg "what you select didn't exists"


becouse it's need to be so
Code:
UO.WaitTargetobject("botas[i]")
UO.Usetype("0x0f9e")
Wait(1000)


Top
   
 Post subject: mejor
PostPosted: 2004-05-25 00:36:42 
Offline

Joined: 2004-05-17 17:15:24
Posts: 5
sub botas()
VAR i
dim botas[4]
botas[1]= 0x170b
botas[2]= 0x170f
botas[3]= 0x170e
botas[4]= 0x1711
Start:
For i = 1 to 4
UO.Usetype("0x0f9e")
Wait(1000)
UO.WaitTargettype("botas[i]")
wait(4000)
next
goto Start
end sub


Top
   
 Post subject:
PostPosted: 2004-05-25 17:10:18 
Offline

Joined: 2004-04-04 21:04:43
Posts: 76
Code:
dim botas[4]
 
botas[0]= 0x170b
botas[1]= 0x170f
botas[2]= 0x170e
botas[3]= 0x1711
Start:
For i = 0 to 3
...


Dim botas[4] declares array 0..3.
(Йоко, я прав?)

Code:
UO.WaitTargettype("botas[i]") 

Right: UO.WaitTargettype(botas[i])


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 2 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:  
Powered by phpBB® Forum Software © phpBB Limited