Cutting leather script

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
serpentkillers
Posts: 1
Joined: 2004-05-24 20:37:14

Cutting leather script

Post by serpentkillers »

I did a script:

Code: Select all

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"
Kazoo
Posts: 173
Joined: 2004-04-03 18:39:28
Contact:

Re: Cutting leather script

Post by Kazoo »

serpentkillers wrote:I did a script:

Code: Select all

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: Select all

UO.WaitTargetobject("botas[i]")
UO.Usetype("0x0f9e")
Wait(1000)
toqui
Posts: 5
Joined: 2004-05-17 17:15:24

mejor

Post by toqui »

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
Biga
Posts: 76
Joined: 2004-04-04 21:04:43
Contact:

Post by Biga »

Code: Select all

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: Select all

UO.WaitTargettype("botas[i]") 

Right: UO.WaitTargettype(botas[i])
Post Reply