Phyton ile profil değiştirme yazdım ama eğer komut çalışıyor başka komutunu döndüremiyorum. Yardımcı olurmusunuz? Oluşturmak istediğim, yapıyor> = 1 ise Benzersiz profiline geçebilirsiniz, Test profiline geç. Oluşturduğum komut böyle:
from phBot import *
log(“Eklenti Yüklendi”)
def handle_event(t, data):
if t >= 0:
set_profile(“Unique”)
else:
set_profile(“Test”)
I wrote a profile change with Phyton, but I can’t return any other command if the command is running. Could you help? What I want to create is doing> = 1 If you can switch to the Unique profile, switch to the Test profile. The command I created is like this:
I’m not sure where you’re trying to change the profile. handle_event is for custom events I added support for and you’re trying to change it on every single one. If you want it to change on a unique spawn you need to use:
EVENT_UNIQUE_SPAWN = 0
def handle_event(t, data):
if t == 0:
set_profile('unique')
There is no way to set it back if a unique dies. You would need to scan the monster list.