Jump to content

AKtor

Player
  • Content count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About AKtor

  • Rank
    Newcomer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Да, именно такая. Только по ссылке не скачать - редиректит на спам. В целом я и по ISBN пробовал искать, не получилось. Если у тебя выйдет, то буду безгранично благодарен
  2. Hi everybody. The second day I'm googling all over the Internet, but could not find the first edition of the book "World of Warcraft Programming: A Guide and Reference for Creating WoW Addons" with cover attached below. The second edition I met often, but not the first. Could anybody tell me where I can download this book, for example in pdf? Thanks for any help.
  3. Всем привет. Перерыл интернет, гуглил не один час, но так и не смог найти первое издание книги World of Warcraft Programming: A Guide and Reference for Creating WoW Addons вот с такой обложкой. Второе издание под Короля лича встречается часто, а первое не нашел. Может кто нибудь подскажет, где можно скачать эту книгу? Заранее спасибо за любую помощь.
  4. Hi everybody. I try to write an addon. Need to handle some events, for this I created a frame. In the Internet there are many examples of code similar to this one: local frame = CreateFrame("Frame"); frame:RegisterEvent("PLAYER_ENTERING_WORLD"); frame:RegisterEvent("PLAYER_REGEN_DISABLED"); frame:RegisterEvent("PLAYER_REGEN_ENABLED"); frame:SetScript("OnEvent", function(self, event, ...) DEFAULT_CHAT_FRAME:AddMessage("OnEvent"); --[[Message is displayed--]] if event == "PLAYER_ENTERING_WORLD" then DEFAULT_CHAT_FRAME:AddMessage("entering the world"); --[[Condition does not triggers --]] elseif event == "PLAYER_REGEN_DISABLED" then DEFAULT_CHAT_FRAME:AddMessage("entering combat"); --[[Condition does not triggers--]] elseif event == "PLAYER_REGEN_ENABLED" then DEFAULT_CHAT_FRAME:AddMessage("leaving combat"); --[[Condition does not triggers--]] end; end); The frame is created, subscribed to the events, the handler is triggered by these events, but the conditions in the handler do not work. What am I doing wrong? However, everything works if I create a frame through XML, and there I hang a handler function on it. I can stop at this, but curiosity does not give rest - why the above code does not work? Thanks for any help.
×