Toggle shoutbox Chat
|
Работа с гампами
#1
Posted 29 September 2006 - 20:41
#2
Posted 29 September 2006 - 21:46
#3
Posted 29 September 2006 - 21:49
Хотел спросить, есть у кого описание всех команд для работы с гампами? на yoko есть всё, кроме этого
Тоже искал очень долго.... на уоко я просил там мне выкладывали пару примеров и т.д екперты! пробей по моему ник найдешь ник на том форуме klonuk
#4
Posted 29 September 2006 - 21:53
#5
Posted 29 September 2006 - 21:58
#6
Posted 29 September 2006 - 23:32
Есть.
выкладывай ... здесь это всем понадобиться. если хотите работать без уо .клика который часто сбиваеться то тока через гамп =)) :arrow: :!:
#7
Posted 30 September 2006 - 05:59
#8
Posted 30 September 2006 - 08:10
что что... ну за 2 года скоко юзаю скрипты с кликами НЕРАЗУ именно клик у меня не сбился :roll: делайте подолбше задержки если лаганет
за пол года игры на дарк уо научилься пользываться скриптами с гампами скороть изгттовления увеличилась в 4 раза + наделал много офигеный скриптов.
#9
Posted 30 September 2006 - 17:19
#10
Posted 30 September 2006 - 17:46
Я нашёл пост твой и ещё много других... Вроде что-то нашёл, но мало, знаю, есть ещё много других функций
#11
Posted 30 September 2006 - 18:14
Pomashka
Я нашёл пост твой и ещё много других... Вроде что-то нашёл, но мало, знаю, есть ещё много других функций
uo.recall('') иши самый норм ))
#12
Posted 30 September 2006 - 18:14
Да инжект вообще мозги тренирует: я будучи программистом раза в 3 стал быстрее и лутше програмить после одного года написания скриптов на инжекте
Сам иду на програмиста так что ))) но уже шапарю как..........
#13
Posted 30 September 2006 - 20:50
###в скрипте сейчас установленно выкладывание ginseg,jars, т.е. расчитано на закупку ###этих регов. ###в инжекте в закладке Main есть кнопка Buy/Sell вот там сделайте новый профиль (buying) ###и назовите его Buying, в него впишите все ресурсы которые хатите скупать. sub buy() var Chest='0x400E30D5' ### Ваш Сундукмешок куда складываетсяберется Start: UO.Print("Taking recall needed reagents") ###(Берёт из сундука реги для реколла) wait(1000) ###blood moss UO.Findtype( 0x0F7B, 0x0000, Chest ) UO.Exec( "moveitem finditem 25" ) wait(3000) ###mandrake roots UO.Findtype( 0x0F86, 0x0000, Chest ) UO.Exec( "moveitem finditem 25" ) wait(3000) ###black paerl UO.Findtype( 0x0F7A, 0x0000, Chest ) UO.Exec( "moveitem finditem 25" ) wait(3000) recall1() # Место Вендора wait(1000) UO.Say(",buy buying") wait(3000) recall2() wait(1000) UO.Say(",buy buying") wait(3000) uo.UseSkill('Meditation') wait(2000) recall3() wait(1000) UO.Say(",buy buying") wait(3000) recall4() wait(1000) UO.Say(",buy buying") wait(3000) recall5() wait(1000) UO.Say(",buy buying") wait(3000) uo.UseSkill('Meditation') wait(2000) recall6() wait(1000) UO.Say(",buy buying") wait(3000) recall7() wait(1000) UO.Say(",buy buying") wait(3000) recall8() wait(1000) UO.Say(",buy buying") wait(3000) uo.UseSkill('Meditation') wait(2000) recall9() wait(1000) UO.Say(",buy buying") wait(3000) recall10() wait(1000) UO.Say(",buy buying") wait(3000) uo.UseSkill('Meditation') wait(2000) recall11() wait(1000) UO.Say(",buy buying") wait(3000) recall12() wait(1000) UO.Say(",buy buying") wait(3000) recall13() wait(1000) UO.Say(",buy buying") wait(3000) uo.UseSkill('Meditation') wait(2000) recall14() wait(1000) UO.Say(",buy buying") wait(3000) recall15() wait(1000) UO.Say(",buy buying") wait(3000) recallhouse() wait(1000) gochest() wait(1000) ###### здесь меняйте, добовляйте количество строк с тайпами тех вещей которые ###### закупаются и нужно их вылождить в сундук. ####ginseg UO.FindType("0x0F87" ) #### UO.moveitem ('finditem' ,1000, Chest) #### эти три строки на один тайп нужны. wait(3000) #### / ####jars UO.FindType("0x0F85" ) UO.moveitem ('finditem' ,1000, Chest) wait(3000) ####blood moss UO.FindType("0x0F7B" ) UO.moveitem ('finditem' ,1000, Chest) wait(3000) ####mandrake roots UO.FindType("0x0F86" ) UO.moveitem ('finditem' ,1000, Chest) wait(3000) ####black pearl UO.FindType("0x0F7A" ) UO.moveitem ('finditem' ,1000, Chest) wait(2000) uo.UseSkill('Meditation') wait(9000) goto Start end sub sub recall1() UO.UseType("0x0EFA") wait(500) UO.LClick(266,388) wait(500) UO.LClick(453,348) wait(9000) endsub sub recall2() UO.UseType("0x0EFA") wait(500) UO.LClick(300,388) wait(500) UO.LClick(283,347) wait(9000) endsub sub recall3() UO.UseType("0x0EFA") wait(500) UO.LClick(300,388) wait(500) UO.LClick(451,350) wait(9000) endsub sub recall4() UO.UseType("0x0EFA") wait(500) UO.LClick(336,387) wait(500) UO.LClick(277,352) wait(9000) endsub sub recall5() UO.UseType("0x0EFA") wait(500) UO.LClick(336,387) wait(500) UO.LClick(452,350) wait(9000) endsub sub recall6() UO.UseType("0x0EFA") wait(500) UO.LClick(370,386) wait(500) UO.LClick(282,353) wait(9000) endsub sub recall7() UO.UseType("0x0EFA") wait(500) UO.LClick(370,386) wait(500) UO.LClick(452,350) wait(9000) endsub sub recall8() UO.UseType("0x0EFA") wait(500) UO.LClick(434,383) wait(500) UO.LClick(282,353) wait(9000) endsub sub recall9() UO.UseType("0x0EFA") wait(500) UO.LClick(434,383) wait(500) UO.LClick(452,350) wait(9000) endsub sub recall10() UO.UseType("0x0EFA") wait(500) UO.LClick(470,387) wait(500) UO.LClick(282,353) wait(9000) endsub sub recall11() UO.UseType("0x0EFA") wait(500) UO.LClick(470,387) wait(500) UO.LClick(452,350) wait(9000) endsub sub recall12() UO.UseType("0x0EFA") wait(500) UO.LClick(506,384) wait(500) UO.LClick(282,353) wait(9000) endsub sub recall13() UO.UseType("0x0EFA") wait(500) UO.LClick(506,384) wait(500) UO.LClick(452,350) wait(9000) endsub sub recall14() UO.UseType("0x0EFA") wait(500) UO.LClick(539,387) wait(500) UO.LClick(282,353) wait(9000) endsub sub recall15() UO.UseType("0x0EFA") wait(500) UO.LClick(539,387) wait(500) UO.LClick(452,350) wait(9000) endsub sub recallHouse() UO.UseType("0x0EFA") wait(500) UO.LClick(264,387) wait(500) UO.LClick(282,353) wait(9000) endsub sub gochest() GotoXY(1523,220,1,"") ##тут вставь координаты куда идти endsub sub GotoXY(x,y,prec) var myX,myY,LastX=0,LastY=0,i,halt=0,z,r=0 for i=1 to 60 myX=uo.GetX() myY=uo.GetY() if LastX==myX and LastY==myY then halt=halt+1 else halt=0 end if if halt>=10 then if uo.GetDir()==1 then for z=0 to 8 uo.Press(40) next end if if uo.GetDir()==3 then for z=0 to 8 uo.Press(37) next end if if uo.GetDir()==5 then for z=0 to 8 uo.Press(38) next end if if uo.GetDir()==7 then for z=0 to 8 uo.Press(39) next end if halt=15 end if if Numb(x-myX)<=1 and Numb(y-myY)<=2 then return 1 end if if x<=myX then if y<=myY then for z=0 to 3 uo.Press(38) next else for z=0 to 3 uo.Press(37) next end if else if y<=myY then for z=0 to 3 uo.Press(39) next else for z=0 to 3 uo.Press(40) next end if end if LastX=myX LastY=myY wait(200) next return 0 end sub sub Numb(num) if num>=0 then return num else return num*(-1) end if end subЧистый Скрипт у меня свой для себя настроенный.Незнаю у кого там подходит к вендорам.
А мне лень учиться....
Если только видео курсы не смотреть пока не стошнит.
#14
Posted 30 September 2006 - 21:48
#15
Posted 30 September 2006 - 22:18
#16
Posted 30 September 2006 - 22:56
Извени но я даже определение массива не знаю.Я слишком мало этим занемаюсь.
млин я шас не в состояние те обьяснять =)) попозже завтро или послезавтро обьясню :arrow: :!:
#17
Posted 01 October 2006 - 17:08
OnGump command - autochoice buttons/checks/text in gumps Variant1a (repeat exact choice in exact gump): ,ongump repeat Variant1b (repeat exact choice in any gump): ,ongump superrepeat Variant2 (general form): ,ongump GUMP [CHOICE] GUMP: identifyes gump, variants: <serial>|anyserial <gumpid>|anygump example: anyserial 0x00112233 anygump lastgump lastpos pos <x> <y> withtext 'text_part_to_seek' example: withtext 'Blacksmith' withcommand 'command_part_to_seek' example: withcommand 'tilepic 60 295 5181' CHOICE: identifyes choice you make pressing buttons. Consist of 3 parts: 1) (serial of) button you press to close gump e.g. 'Ok' (default is first button happend) <button_serial> example: 315 (button_number example: (2 [image_serial example: [0x01 lastbutton 2) (serials of) checks and radios enabled on moment of pressing 1) checks <ID1> <ID2> ... example: checks 315 316 0x0102 checks (num1 (num2 ... example: checks (1 (3 (8 lastchecks nochecks 3) (texts) what entered in textentry(es) (the same amount as in gump) entryes 'txt1' 'txt2' ... example: entryes 'macrocheck' lastentryes noentryes So CHOICE have syntax: [1) [2)] [3)]] Examples: ,ongump repeat ,ongump any 0x00001234 (1 ,ongump withtext 'Blacksmith' 315 nochecks entryes '10' ,ongump anygump [0x0123 checks (1 316 entryes '10'
я лично пришол к мнению что лудше пользоватся только рекалом или кликом... все...
#18
Posted 02 October 2006 - 15:28
OnGump command - autochoice buttons/checks/text in gumps Variant1a (repeat exact choice in exact gump): ,ongump repeat Variant1b (repeat exact choice in any gump): ,ongump superrepeat Variant2 (general form): ,ongump GUMP [CHOICE] GUMP: identifyes gump, variants: <serial>|anyserial <gumpid>|anygump example: anyserial 0x00112233 anygump lastgump lastpos pos <x> <y> withtext 'text_part_to_seek' example: withtext 'Blacksmith' withcommand 'command_part_to_seek' example: withcommand 'tilepic 60 295 5181' CHOICE: identifyes choice you make pressing buttons. Consist of 3 parts: 1) (serial of) button you press to close gump e.g. 'Ok' (default is first button happend) <button_serial> example: 315 (button_number example: (2 [image_serial example: [0x01 lastbutton 2) (serials of) checks and radios enabled on moment of pressing 1) checks <ID1> <ID2> ... example: checks 315 316 0x0102 checks (num1 (num2 ... example: checks (1 (3 (8 lastchecks nochecks 3) (texts) what entered in textentry(es) (the same amount as in gump) entryes 'txt1' 'txt2' ... example: entryes 'macrocheck' lastentryes noentryes So CHOICE have syntax: [1) [2)] [3)]] Examples: ,ongump repeat ,ongump any 0x00001234 (1 ,ongump withtext 'Blacksmith' 315 nochecks entryes '10' ,ongump anygump [0x0123 checks (1 316 entryes '10'
я лично пришол к мнению что лудше пользоватся только рекалом или кликом... все...
правильно думаешь другие имеют свойство крашить хз почему много раз поднимали тему походу не дачет где то в самой инже ну или еше че то...
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users