|
Post by seanofdead on Aug 1, 2016 20:43:26 GMT
Sorry placed original thread in wrong location!
Hello I am trying to write a simple script for clash of clans to type in message box from already saved words? For example I want the bot to click the chat box then type hi then send. Then type join my clan and send. In that specific order. But I'm not sure what the function would be to have the script first be able to type saved words but be able to locate the list of saved words and then send.
What would the function be to type a defined set of words? Any help would be appreciated thanks.
|
|
|
Post by AnkuLua on Aug 1, 2016 23:18:59 GMT
|
|
|
Post by seanofdead on Aug 2, 2016 0:16:09 GMT
ankuluaUser So something like this would allow me to type hello once the chatbox is clicked and then send the message correct? function type([PSMRL,]hello)
if (existsClick("chatbox.png", 0)) then
wait(4)
end existsClick("sendmessage.png", 0)
wait(2) end end EDIT: Also would I need to create this function for every word I want typed and sent? Or can I have it grab from a notepad of saved words and go down the list with them? Thanks for your help!
|
|
|
Post by AnkuLua on Aug 2, 2016 2:40:43 GMT
No. type is a function provided by AnkuLua
Just use it as following
if (existsClick("chatbox.png", 0)) then type("hello") end
|
|