Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
i need a help for this gump
Re: i need a help for this gump
Есть мнение, что сначала на заданной координате х рисуются все картинки, а затем текст. Пример с 923 показывает, что текст перекрывает текст (двойка наезжает на девятку). При этом картинки перекрывают текст на предыдущей координате. Значения х берутся из инфогампа
Re: i need a help for this gump
Вот мое представление как все происходит. Если это в самом деле так (а чтоб проверить, надо смотреть не infogump, а непосредственно пакет приходящий от сервера), то сейчас стелс выдает недостаточно информации, чтоб этот антимакрос можно было обойти.
Re: i need a help for this gump
почему недостаточно?
картинки и текст никак не сортируются, а выдаются в порядке, предоставленном сервером.
или ты имеешь ввиду, что они раскиданы по категориям, а не идут подряд, один за другим?
картинки и текст никак не сортируются, а выдаются в порядке, предоставленном сервером.
или ты имеешь ввиду, что они раскиданы по категориям, а не идут подряд, один за другим?
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: i need a help for this gump
Ага, именно это. Надо в infogump&co добавить еще порядковый номер элемента, но не в своей группе, а его порядковый номер внутри всего гампа, тогда можно будет распрсить этот зловещий антимакрос, хотя тоже придется повозитьсяVizit0r wrote:или ты имеешь ввиду, что они раскиданы по категориям, а не идут подряд, один за другим?
Re: i need a help for this gump
Когда ждать обновления?
Re: i need a help for this gump
обновления вряд ли. выложу чуть позже
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: i need a help for this gump
new build of stealth here. Now it displays additional information, such as "ElemNum". It will help to determine the order of elements in the gump.
Re: i need a help for this gump
А почему в инфогампе между значениями используется два пробелла (в большинстве), а не 1? жутко неудобно работать сплитом. Может просто "так надо", а может мне повезёт и предложение попадёт в to do список
Re: i need a help for this gump
оно может и неудобно, но...обратная совместимость. переделки не будет, ибо это поломает многие существующие парсеры.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: i need a help for this gump
-k-, do you get the idea? or i can try to describe solution in english
Новый стелс лежит тут. Стелс это произведение искусства!
Re: i need a help for this gump
i got the idea, but if you want to translate, help me much =]]]]
Re: i need a help for this gump
Gump consists of two elements: image-stubs (ResizePics) and numbers (GumpTexts).
Those stubs and numbers are overlapped(based on X, Y coords) in the Anti Macro text area(see CFA drawing).
The image-stubs can be different size(see nah nah drawing), size depends on X,Y,Width,Height attributes of the image-stub.
We are searching top-level numbers which are not covered with any image-stubs.
General index number of the element(ElemNum) will help us to make ordered sequence of stubs and numbers.
So the script looks like this:
0. you need functions from this page to work with gumps: http://stealth.od.ua/wiki/doku.php?id=% ... 0%BF%D1%8B
1. waiting for the gump (using IsGump function)
2. parsing gump contents (retrieved from GetGumpFullLines function)
3. finding top-level visible numbers (your function)
4. sending response (using NumGumpTextEntry and NumGumpButton functions)
Those stubs and numbers are overlapped(based on X, Y coords) in the Anti Macro text area(see CFA drawing).
The image-stubs can be different size(see nah nah drawing), size depends on X,Y,Width,Height attributes of the image-stub.
We are searching top-level numbers which are not covered with any image-stubs.
General index number of the element(ElemNum) will help us to make ordered sequence of stubs and numbers.
So the script looks like this:
0. you need functions from this page to work with gumps: http://stealth.od.ua/wiki/doku.php?id=% ... 0%BF%D1%8B
1. waiting for the gump (using IsGump function)
2. parsing gump contents (retrieved from GetGumpFullLines function)
3. finding top-level visible numbers (your function)
4. sending response (using NumGumpTextEntry and NumGumpButton functions)
Новый стелс лежит тут. Стелс это произведение искусства!
Re: i need a help for this gump
thanks man. =]]]]]
Re: i need a help for this gump
ok, the script get the numbers, but i can´t understand NumGumpTextEntry, i try to use, but don´t work =[[[
plis, help again =]]]]
plis, help again =]]]]
Re: i need a help for this gump
NumGumpTextEntry "inserts" text into the appropriate field, then you should click on button using "NumGumpButton" or "WaitGump"-k- wrote:ok, the script get the numbers, but i can´t understand NumGumpTextEntry, i try to use, but don´t work =[[[
plis, help again =]]]]