def RequestHatching(self): if self.petname.GetText() == "" or len(self.petname.GetText()) < 4: chat.AppendChat(chat.CHAT_TYPE_INFO, "[Pet-Incubator] Il nome del pet non e' valido.") return if player.GetElk() < 100000: chat.AppendChat(chat.CHAT_TYPE_INFO, ""+str(localeInfo.NumberToMoneyString(100000)) +"yanga ihtiyacınız var.") return questionDialog = uiCommon.QuestionDialog() questionDialog.SetText('Petine "'+self.petname.GetText()+'" ' + localeInfo.PET_TEXTT_8) questionDialog.SetAcceptEvent(ui.__mem_func__(self.evett)) questionDialog.SetCancelEvent(ui.__mem_func__(self.hayirr)) questionDialog.Open() self.questionDialog = questionDialog def evett(self): import chr chr.RequestPetName(self.petname.GetText()) self.questionDialog.Close() self.Close() def hayirr(self): self.questionDialog.Close()