#GumpReplyCnt
- Set by
exevent GumpReply- uo.dll
GumpReplyCnt
Also searchable as: #GumpReplyCnt · GumpReplyCnt · gump reply count · gump click
#GumpReplyCnt goes up by one every time the client answers a gump the server sent: when you click one of
its buttons, and when exevent GumpReply answers one. Compare it with the value
you read before to know that an answer went out; #GumpReply then holds that answer.
The first time a script reads #GumpReplyCnt, EasyUO Reforged puts a small hook into the client that records
the answers. It stays until the client closes, and every later run, or another EasyUO Reforged, uses the same
one, so the number keeps counting from where it was. Use the difference, not the number itself.
Without a client, or where the hook can’t be put in, it counts the answers exevent GumpReply sent in this run.
Example
Section titled “Example”Wait until you click a button in a gump, then show what the click sent:
set %n #GumpReplyCntevent sysmessage Click a button in the gump.set %t #SCnt + 60repeat wait 5until #GumpReplyCnt <> %n || #SCnt > %tif #GumpReplyCnt <> %n display ok You sent: #GumpReplyhalt