The command below is not changing the route, can anyone help?
def onReceivePrivateMessage(name, text):
if (name not in allowedNames):
return
elif ("Logout" in text):
script.Logout()
elif ("Until" in text):
time = text.split()[-1]
script.LogoutUntil(time)
elif ("Base" in text):
script.GetWay() != to_base:
script.StatusMessage('Back to base...')
ChangeWay(to_base)
elif ("Hunt" in text):
script.GetWay() != to_hunt:
script.StatusMessage('Back to hunt...')
ChangeWay(to_hunt)