Code: Select all
VAR Heal = '0x0E24' Code: Select all
VAR Heal = '0x0E24, 0x0322'далее в скрипте будет
Code: Select all
var item = HealCode: Select all
PUT(item, bag)Moderators: Murderator+, Murderator
Code: Select all
VAR Heal = '0x0E24' Code: Select all
VAR Heal = '0x0E24, 0x0322'Code: Select all
var item = HealCode: Select all
PUT(item, bag)банки алхимии одинакового типа, но разного цвета. В скрипте будет много банокMirage wrote:Зачем? И почему не вариант?
Code: Select all
var string = '0x1234,0x4321'
type = mid(string, 0, 6)
color = mid(string, 7, 6)Code: Select all
var string = '0x1234,0x4321'
type = left(string, 6)
color = right(string, 6)Code: Select all
Sub PUTLoot(Type, Color, SourceContainer, TargetContainer,X,Y,Z)
;uo.ignorereset()
UO.FindType(Type, Color, SourceContainer)
while UO.FindCount()
if (TargetContainer=='ground') then
uo.MoveItem('finditem',0,TargetContainer,uo.GetX('self'),uo.GetY('self'),uo.GetZ('self'))
else
timemove=UO.Timer()
while UO.ContainerOf( UO.GetSerial('finditem') )==SourceContainer && timemove+20>UO.Timer()
uo.MoveItem('finditem',0,TargetContainer,X,Y,Z)
wait(lootwait)
wend
end if
UO.FindType(Type, Color, SourceContainer)
wend
end subпотому что VAR = '0x1234, 0x4321' это тип stringCxC wrote:а что означают цифры 0, 6, 7? где можно про это почитать.
вот я и спрашиваю как?Nmy wrote: все можно, только надо хотеть. цвета, типы можно легко в массиве прописать
Code: Select all
sub Loot()
DIM Loot[5]
Loot[0] = 'Type', 'Color'; Item №1
Loot[1] = 'Type', 'Color'; Item №2
Loot[2] = 'Type', 'Color'; Item №3
Loot[3] = 'Type', 'Color'; Item №4
Loot[4] = 'Type', 'Color'; Item №5
Var A
For A = 0 To 4
Repeat
UO.FindType(Loot[A], Loot[A], 'lastcorpse')
If UO.FindCount() > 0 Then
UO.MoveItem('finditem', '-1', 'backpack')
Wait(500)
Endif
Until UO.FindCount() < 1
Next
End SubCode: Select all
Loot[0] = 'Type', 'Color'; Item №1Code: Select all
UO.FindType(Loot[A], Loot[A], 'lastcorpse')Code: Select all
Loot[0] = 'Type', 'Color'; Item №1
Loot[1] = 'Type', 'Color'; Item №2
Loot[2] = 'Type', 'Color'; Item №3
Loot[3] = 'Type', 'Color'; Item №4Code: Select all
PUTLoot('тип меча', 'цвет меча', corps, pack,'','','') ;
PUTLoot('тип щита', 'цвет щита', corps, pack,'','','') ;
PUTLoot('тип лука', -1, corps, pack,'','','') ; оба лука перекинет
Code: Select all
PUTLoot(-1, 'цвет серебро', corps, pack,'','','') ; все серебряные вещи
PUTLoot(-1, 'цвет золото', corps, pack,'','','') ; все золотые вещиCode: Select all
var string = '0x1234,0x4321'
type = left(string, 6)
color = right(string, 6)Code: Select all
Dim type[50]
type[1]='0x1234'
Dim color[50]
color[1]='0x4321'
for n=1 to 50
uo.findtype(type[n],color[n],'backpack')
Code: Select all
var type, color
Dim mass[50]
mass[0] = '0x1234,0x4321'
type = left(mass[0], 6)
color = right(mass[0], 6)
uo.findtype( type , color ,'backpack')