Custom function for Conditions not working

Hi,

I just try make a custom function like this step:

  1. Create a file MyLog.py in the folder Plugins of the phbot Testing
  2. In this file, i did try put follow this code:
import phBot

def MyLog():
	log('Hello World.')
  1. Click reload Plugins
  2. From Conditions phbot, i did build a condition:
    if (in training area) then Wait(5000); Chat General(‘CHECK’); Python (MyLog)

But my result got only: CHECK

So my question is: do the custom function need to whitelist from Ryan? Or did i make any wrong?

Thanks so much

1 Like

If you’re playing TRSRO or VTC yes it would have to be whitelisted

Ah okay, i got it. Please close this topic. Thanks dor your response.