Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Moongate

тут можно задать вопрос по скриптингу
Post Reply
MuDaCk
Apprentice
Apprentice
Posts: 393
Joined: 10.10.2006 0:03
Contact:

Moongate

Post by MuDaCk »

С менюшкой мунгейта ктото сталкивался? кнопки всего две(ок и нет). Кнопки он нажимает, но как выбрать место назначения?
My name is Игорёшка Image
Пишу скрипты за едуImage
wax
Neophyte
Neophyte
Posts: 11
Joined: 24.07.2011 3:01

Re: Moongate

Post by wax »

Какой-то необычный гамп?
ПС: скрин в студию.
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: Moongate

Post by Vizit0r »

скрин в топку, GumpFullLines в студию.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
yuras
Novice
Novice
Posts: 142
Joined: 11.01.2011 10:34

Re: Moongate

Post by yuras »

MuDaCk
Apprentice
Apprentice
Posts: 393
Joined: 10.10.2006 0:03
Contact:

Re: Moongate

Post by MuDaCk »

Image
Самый обычный мунгейт)))
Радиобатон даже незнаю как глянуть... разор выводит только номера кнопок(окей и кенсел).
My name is Игорёшка Image
Пишу скрипты за едуImage
yuras
Novice
Novice
Posts: 142
Joined: 11.01.2011 10:34

Re: Moongate

Post by yuras »

при открытой менюшке запустить, там и увидишь коды radiobutton

Procedure test;
var
x:integer;
ListIT : TStringList;
begin
ListIt:=TStringList.Create;
SetSilentMode(False);
for x := 0 to GetGumpsCount - 1 do
GetGumpFullLines(x,ListIt);
ListIt.free;
wait(2000);
end;
MuDaCk
Apprentice
Apprentice
Posts: 393
Joined: 10.10.2006 0:03
Contact:

Re: Moongate

Post by MuDaCk »

Code: Select all

Serial: 21C95
GumpID: E0E675B8
X: 0064
Y: 0064
Pages: 5
Gump Options:

ResizePics: X   Y   ID   Width   Height   Page
0   ResizePic: 0  0  5054  380  280  0

RadioButtons: X   Y   Released_ID  Pressed_ID   Status   Return_value   Page
0   RadioButton: 200  35  210  211  0  0  1
1   RadioButton: 200  60  210  211  0  1  1
2   RadioButton: 200  85  210  211  0  2  1
3   RadioButton: 200  110  210  211  0  3  1
4   RadioButton: 200  135  210  211  0  4  1
5   RadioButton: 200  160  210  211  0  5  1
6   RadioButton: 200  185  210  211  0  6  1
7   RadioButton: 200  210  210  211  0  7  1
8   RadioButton: 200  235  210  211  0  8  1
9   RadioButton: 200  35  210  211  0  100  2
10   RadioButton: 200  60  210  211  0  101  2
11   RadioButton: 200  85  210  211  0  102  2
12   RadioButton: 200  110  210  211  0  103  2
13   RadioButton: 200  135  210  211  0  104  2
14   RadioButton: 200  160  210  211  0  105  2
15   RadioButton: 200  185  210  211  0  106  2
16   RadioButton: 200  210  210  211  0  107  2
17   RadioButton: 200  235  210  211  0  108  2
18   RadioButton: 200  35  210  211  0  200  3
19   RadioButton: 200  60  210  211  0  201  3
20   RadioButton: 200  35  210  211  0  300  4
21   RadioButton: 200  60  210  211  0  301  4
22   RadioButton: 200  85  210  211  0  302  4

GumpButtons: X   Y   Released_ID  Pressed_ID   Quit   Page_ID   Return_value   Page
0   GumpButton: 10  210  4005  4007  1  0  1  0
1   GumpButton: 10  235  4005  4007  1  0  0  0
2   GumpButton: 10  35  2117  2118  0  1  0  0
3   GumpButton: 10  60  2117  2118  0  2  0  0
4   GumpButton: 10  85  2117  2118  0  3  0  0
5   GumpButton: 10  110  2117  2118  0  4  0  0
6   GumpButton: 10  35  2117  2118  0  1  0  1
7   GumpButton: 10  60  2117  2118  0  2  0  2
8   GumpButton: 10  85  2117  2118  0  3  0  3
9   GumpButton: 10  110  2117  2118  0  4  0  4

My name is Игорёшка Image
Пишу скрипты за едуImage
yuras
Novice
Novice
Posts: 142
Joined: 11.01.2011 10:34

Re: Moongate

Post by yuras »

NumGumpButton(0, X); выбираем мир
NumGumpRadiobutton(0, Y, 1); выбираем точку (1-вкл, 0 выкл на экране галка не появляется)
NumGumpButton(0, Z); нажимаем ок

мне ещё приходилось при следующем выборе убирать галку с предыдущего, NumGumpRadiobutton(0, Y, 0)
MuDaCk
Apprentice
Apprentice
Posts: 393
Joined: 10.10.2006 0:03
Contact:

Re: Moongate

Post by MuDaCk »

там Z нет вроде бы, да и Х везде одинаковый.
My name is Игорёшка Image
Пишу скрипты за едуImage
yuras
Novice
Novice
Posts: 142
Joined: 11.01.2011 10:34

Re: Moongate

Post by yuras »

это, как бы, образно x,y,z))))
там пишется Return_value, ты скинул не полный вывод, там ниже будет ещё что-то типа
GumpButtons: X Y Released_ID Pressed_ID Quit Page_ID Return_value Page
0 GumpButton: 20 203 208 209 1 0 100 0
и
Text Lines:
<BASEFONT SIZE=7><CENTER>Public Moongate</CENTER></BASEFONT>
Trammel
Felucca
Ilshenar
хотя тут, возможно, все радиобаттоны.
Last edited by yuras on 14.08.2011 21:11, edited 1 time in total.
MuDaCk
Apprentice
Apprentice
Posts: 393
Joined: 10.10.2006 0:03
Contact:

Re: Moongate

Post by MuDaCk »

Это всё что вывело окошком))))
My name is Игорёшка Image
Пишу скрипты за едуImage
yuras
Novice
Novice
Posts: 142
Joined: 11.01.2011 10:34

Re: Moongate

Post by yuras »

MuDaCk wrote:Это всё что вывело окошком))))
а само окошко такое-же как на скрине?
MuDaCk
Apprentice
Apprentice
Posts: 393
Joined: 10.10.2006 0:03
Contact:

Re: Moongate

Post by MuDaCk »

Я имею ввиду, что показал всё, что мне выводит скрипт твой.
My name is Игорёшка Image
Пишу скрипты за едуImage
yuras
Novice
Novice
Posts: 142
Joined: 11.01.2011 10:34

Re: Moongate

Post by yuras »

окошко, которое было открыто в момент запуска скрипта тоже что и на приложенном скрине? а какой шард?скинь лс..
MuDaCk
Apprentice
Apprentice
Posts: 393
Joined: 10.10.2006 0:03
Contact:

Re: Moongate

Post by MuDaCk »

yuras wrote: NumGumpRadiobutton(0, 100, 1);
NumGumpButton(0, 1);
100 менять из диапазона return_value в радиобуте
Всё получилось. пробовал менять на другие цифры и норм портуется). Спасибо.
My name is Игорёшка Image
Пишу скрипты за едуImage
Post Reply