Hello @Ryan
I think we need a wise action here
How to set Chat conditions (party-union-guild) stop spamming while using it? I think we need to a delay(seconds) option between every sent message.
Also why there is no option for private chat condition rather than using a custom code? I think its very useful.
This was the 1st solution that failed for me. Cuz of those conditions are lacking options.
Then i tried to use a custom code with (time.sleep) like this:
from phBot import *
import phBotChat
import time
player = 'charname'
def player_spawn():
time.sleep(60)
global player
if len(player) > 0:
phBotChat.Private(player, 'message')
log('[%s] Loaded' % __name__)
When using it while botting, The bot stops attacking mobs. Cuz of sleep time.
So whats is the best way to do this?
After that, I tried to use (Wait) in conditions.
like this
The same issue is here. The bot waits for the Wait time so it doesnt attack mobs.
So those three ways ive tried above are not satisfying.
So the conclusion is:
1- Chat conditions needs an option to delay messages. Also adding a private chat option.
2- Sleep.time or Wait - used in condition needs to be fixed anyway so the bot handle and runs it smoothly while botting without stopping char attacks.
I really appreciate ur work. I really mean it.
And im sorry if my way of talking is not decent as it should be.
Thanks in advance.
Hold down CTRL while you select items in the THEN column. It’s freezing because you’re using time.sleep in your Python code. You should change it to see if 10s has passed since the last time it sent a message.