DBM - Deadly Boss Mods (DBM-Core)

DBM - Deadly Boss Mods (DBM-Core)

522M Downloads

Good afternoon, I want to make a pull button in my addon, is there a way to call a function from your addon?

DygDyg opened this issue ยท 4 comments

commented

Good afternoon, I want to make a pull button in my addon, is there a way to call a function from your addon?

commented

Can always do this;

SendAddonMessage("D4", "PT\t" .. pullTime)

Where pullTime is the time in seconds.

Edit: InstanceID is not needed :)

commented

Be aware that DBM will ignore pull sync from players not permitted to send them though (not assist/leader) Locally DBM prevents sending those syncs as well but has protections in place to ensure other addons that don't have those protections are ignored if user doesn't have appropriate permission

Only rule exception is syncs are never ignored from a tank if in a group finder group IsInGroup(2) in that case accepting PTs from tank is law

commented

/script SendAddonMessage("D4", "PT\t" .. 10)

I tried using the chat, but it gives an error. I'm new to writing Addons, what am I doing wrong?

Message: [string "SendAddonMessage("D4", "PT\t" .. 10)"]:1: attempt to call global 'SendAddonMessage' (a nil value)

commented

Apologies;

C_ChatInfo.SendAddonMessage("D4", "PT\t" .. 10, "RAID")