Jump to content
Alloder.pro: about Allods with love
Search In
  • More options...
Find results that contain...
Find results in...

New program for writers

We turn from quantity to quality and tell you how we will supplement the Allods Team program with rewards in rubles.

More

The new Updater

Let us to introduce the new addon updater software and to share the details

Read more

Alloder 2.0

We have started the process of project evolve, and this relates not only, and not even primarily of the site's view

Read more

нотификатор


icreator
 Share

Recommended Posts

AONotifications.zip

ссылка на програмку - внизу страницы

вот как я слала сообщения в WhisperWindow

Code:
function LogToChatWWVT(valuedText, name)

local sender = name or ADDONname --- object.GetName(avatar.GetId())

if not common.IsWString(sender) then sender = userMods.ToWString(sender) end

local senderId = avatar.IsExist() and avatar.GetId()

local chatType = CHAT_TYPE_NOTICE --- -1 ---CHAT_TYPE_NOTICE ---CHAT_TYPE_WHISPER --- = -1 --- от аддонов

local recipient = sender

userMods.SendEvent("EVENT_CHAT_MESSAGE_WITH_OBJECTS", { msg = valuedText, chatType = chatType, sender = sender, isEcho=true, isAlive=true, recipient = recipient, senderId = senderId})

end

Link to comment
Share on other sites

если надо отследить системное сообщение то

Code:
function OnEventMatchMakingTeleportRequest( eventParams ) 

LogInfo("0|Вас пригласили присоедениться к сражению")

end

function OnEventChatMessage( params )

if params.chatType == CHAT_TYPE_NOTICE then

LogInfo("1|Кто-то шепчет вам")

end

end

common.RegisterEventHandler( OnEventMatchMakingTeleportRequest, "EVENT_MATCH_MAKING_EVENT_TELEPORT_REQUEST" )

common.RegisterEventHandler( OnEventChatMessage, "EVENT_CHAT_MESSAGE" )

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use