Yoko

All sides of Injection
It is currently 2024-03-28 21:19:06

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2010-11-01 19:26:58 
Offline

Joined: 2010-03-23 11:23:30
Posts: 4
Всем привет, не знаю заходит ли еще кто то сюда. Времена УО прошли уже. Но на всякий случай изложу свой вопрос.
Перелистал этот форум несколько раз туда и обратно (:
По гампам осмысленного ничего не нашел, все отрывками только, из которых сложно что то сложить.
http://yoko.com.ua/help/ про гамп говорится: "Команда должна устанавливать ловушки ответов на гампы. На данный момент она не доработана. См. так же infogump."

По интересующему гампу в клиенте получаю такую информацию:
Code:
_____infogump_______
serial   0x00d2dfaf
gumpid   0x0008b85f
X   0
Y   0
868   packet size
0   reply packet size
Buttons: ________
 page 0
    1 [    0] image=0x00F8 at 380:345
Checks&Radios: __
 page 1
    1 (*) (*) [   10] image=0x04X at 40:100
Entryes: ________
All commands: ____
    1] page 0
    2] nodispose
    3] noclose
    4] gumppic 0 0 206
    5] gumppic 43 0 201
    6] gumppic 460 0 207
    7] gumppic 0 43 202
    8] gumppic 43 43 200
    9] gumppic 170 43 200
   10] gumppic 295 43 200
   11] gumppic 335 43 200
   12] gumppic 43 170 200
   13] gumppic 170 170 200
   14] gumppic 295 170 200
   15] gumppic 335 170 200
   16] gumppic 43 220 200
   17] gumppic 170 220 200
   18] gumppic 295 220 200
   19] gumppic 335 220 200
   20] gumppic 460 43 203
   21] gumppic 0 340 204
   22] gumppic 43 340 233
   23] gumppic 460 340 205
   24] button 380 345 249 248 1 0 0
   25] text 50 20 40 0
   26] text 50 50 40 1
   27] text 50 70 40 2
   28] page 1
   29] checkbox 40 100 210 211 0 10
   30] text 60 100 40 3
Text: ____________
    0] Now is the time for retribution!
    1] Check zero or more players to report for your murder
    2] and press OKAY.
    3] Tomahawk


Когда пишешь в уо ,ongump получаю такой текст
Code:
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'


Похоже на руководство (не знаю нужной ли функции) я перевел на русский язык, все равно осознать как это работает не смог.
Методом тыка пробовал разные варианты (бывает случайно попал в точку потом начинаешь разбираться, как работает. к сожалению угадать не получилось)

Вопрос у меня к тем кто разобрался, такие:

Когда вылетает окно (гамп) зная, что там сильно ничего меняться не будет мне нужно поставить одну или две галочки (в зависимости от ситуации) нажать потом кнопку окей.

Как звучит функция, которая выполняет гамп и какие у нее могут быть параметры?

Из того что я разобрал :lol:

Информация о чекбоксе (галочке) которую нужно поставить перед нажатием окей:
Code:
    1 (*) (*) [   10] image=0x04X at 40:100
   29] checkbox 40 100 210 211 0 10


О кнопке окей:
Code:
    1 [    0] image=0x00F8 at 380:345
   24] button 380 345 249 248 1 0 0


Как мне нажать эти элементы функцией (исключая uo.LClick())?


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 7 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited