
Сообщение от
Plimutrok
Не срабатывает даже когда таймера нету, если нажать вручную после таймера то работает, а макросом нет
Странно т.к именно эта API вызывается при клике (когда вручную тыкаешь)
PHP код:
StaticPopupDialogs["RESURRECT"] = {
StartDelay = GetCorpseRecoveryDelay,
delayText = RESURRECT_REQUEST_TIMER,
text = RESURRECT_REQUEST,
button1 = ACCEPT,
button2 = DECLINE,
OnShow = function(self)
self.timeleft = GetCorpseRecoveryDelay() + 60;
end,
OnAccept = function(self)
AcceptResurrect();
end,
OnCancel = function(self)
DeclineResurrect();
if ( UnitIsDead("player") and not UnitIsControlling("player") ) then
StaticPopup_Show("DEATH");
end
end,
timeout = 60,
whileDead = 1,
cancels = "DEATH",
interruptCinematic = 1,
notClosableByLogout = 1,
hideOnEscape = 1,
noCancelOnReuse = 1
}