Open OhnkytaBlabdey opened 6 years ago
one more question. does the packet contains all the StoC information? i mean information such as select hint, and the contained cards/options/positions or so, that can be selected...
Them add handler for game messages. Must send response if required.
YGOPro don't send all informations for an "operation for user" in one STOC message. For example, this script will send MSG_HINT
and MSG_SELECT_CARD
.
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c83764718.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,e,tp)
So the bot need to get information from those messages both.
What are these functions used for? Can these functions response to the server directly?