When I call FindTalk; in my script, it will check and solve talking randoms, right?
What if I call it like this:
SCAR Code:if(FindTalk)then
What will happen then? Will it find randoms, or solve randoms?
When I call FindTalk; in my script, it will check and solve talking randoms, right?
What if I call it like this:
SCAR Code:if(FindTalk)then
What will happen then? Will it find randoms, or solve randoms?
Rather put if(Findname)then FindTalk;
FindTalk solves most of talking randoms.
FindName; Cheks for player nickname on the screen.
no no,
FindTalk does both
it already calls FindName inside that function
it returns true if a random has been found and solved
Join the Official SRL IRC channel. Learn how to Here.
Alright, so FindName will just check for my name being on the screen? What if someone says my name? Will it register as a random being there and start acting accordingly?
if someoen calls your name and you have an auto replier he will reply but this depends on what you do after he finds your name.
FindTalk; handles all TalkingRandoms for you. Call it 2 times a second at least. Use something like FTWait instead of regular Wait; this function waits and performs FindTalk;
Technically speaking:
FindTalk scan the mainscreen for the BitmapMask of your Players.Nick. If found it will:
- Move the Mouse to the middle of the text it found the BitmapMask.
- Check for the UpText Talk-To
- If found Performs right-click, thus unfolding the popup menu
- The Menutext after Talk-To is OCR'ed using GetTextAtEx. We now know which Random is talking to us! (Talk-To Sandwich Lady)
- We call the solver in question
If a legit Player addresses you (i.e. types out your Players.Nick), the mouse will move over the spoken text, but it wont find any Talk-To uptext, so action is canceled. A timestamp is placed in the ChatLog.txt + the name of the Legit.
SRL is a Library of routines made by the SRL community written for the Program Simba.We produce Scripts for the game Runescape.
There are currently 1 users browsing this thread. (0 members and 1 guests)