I have found my mistake. For those who will encounter this problem in the future: SetHasDialog only works with dialogs setted through DB_Dialogs, and not trough "Default Dialog" character parameter. From what I've seen so far, it seems that you should avoid using "Default Dialog" completely.