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

Не работает ,exec
http://forum.yoko.com.ua/viewtopic.php?f=3&t=16861
Page 1 of 1

Author:  omgimfamous [ 2012-01-08 17:07:33 ]
Post subject:  Не работает ,exec

Добрый день!
Никак не пойму, в чём трабла?

Взял с Вашего форумп скрипт

Code:
sub flame() 
UO.Set('lasttarget','laststatus')
UO.Cast("Flame","laststatus")
wait(30)
uo.fontcolor('0x000')
uo.msg(' ')
uo.fontcolor('0x000')
uo.msg(' ')
uo.fontcolor('0x000')
uo.msg(' ')
wait(100)
uo.exec("useobject 0x000241db")
end sub

если загружаю его через load, и задаю ему в Hotkeys: exec Flame на F3
То всё окей.

После чего, я загрузил например ещё такой скрипт
Code:
sub weaken() 
UO.Set('lasttarget','laststatus')
UO.Cast("Weaken","laststatus")
wait(100)
uo.fontcolor('0x000')
uo.msg(' ')
uo.fontcolor('0x000')
uo.msg(' ')
uo.fontcolor('0x000')
uo.msg(' ')
wait(100)
uo.exec("useobject 0x000241db")
end sub

Задал ему в Hotkeys exec weaken
Но выдаёт еррор, т.е я могу кастовать только 1 каст если он загружен в load, а как сделать, что-бы все мои 5 кастов (такого типа, срабатывали по моим кнопкм)


Спасибо

Author:  Scripts Writer [ 2012-01-08 20:09:50 ]
Post subject:  Re: Не работает ,exec

Было бы не плохо привести текст ошибки, телепаты в отпуске.

Author:  ZeroDX [ 2012-01-08 21:24:08 ]
Post subject:  Re: Не работает ,exec

надо все касты разместить в один файл

Author:  Nmy [ 2012-01-09 18:43:12 ]
Post subject:  Re: Не работает ,exec

load.sc:
Code:
sub weaken() 
UO.Set('lasttarget','laststatus')
UO.Cast("Weaken","laststatus")
wait(100)
uo.fontcolor('0x000')
uo.msg(' ')
uo.fontcolor('0x000')
uo.msg(' ')
uo.fontcolor('0x000')
uo.msg(' ')
wait(100)
uo.exec("useobject 0x000241db")
end sub
sub flame()
UO.Set('lasttarget','laststatus')
UO.Cast("Flame","laststatus")
wait(30)
uo.fontcolor('0x000')
uo.msg(' ')
uo.fontcolor('0x000')
uo.msg(' ')
uo.fontcolor('0x000')
uo.msg(' ')
wait(100)
uo.exec("useobject 0x000241db")
end sub

Author:  omgimfamous [ 2012-01-09 23:53:46 ]
Post subject:  Re: Не работает ,exec

spasib

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