Thread Tools Display Modes
04-24-09, 07:38 AM   #1
markushe
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 31
How to start boss timer

Hi,

I'm currently working on some Ulduar bossmods and ran into one problem.
What ist the correct way of "manually" starting the encounter timer in the bossmod window? It does start when I get into combat with the registered boss, but some encounters start with yells or different mobs.

Dispatching the "START" event doesn't seem to work.
Do I have to call "RDX.StartEncounter(...)" with a script?

Thanks for your help.
  Reply With Quote
04-25-09, 10:22 AM   #2
Brainn
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 263
to start the bossmod from a yell i did the following:

-add Basic Events(OMNI/MSG)
-add Event: Simple
--Bind to Event: MSG
--Find Message: The time to strike (example for Yogg-Saron, replace with specific boss yell, doesnt need to be the full yell)
--Dispatch Event: PULL
-add Event: Scripted
--Bind to Event: PULL
--Script: RDX.StartEncounter()
--Dispatch Event: NOOP (you have to dispatch an event even if it is not used for anything)

also if you are on yoggi the following will help:

Custom Script Feature:
Code:
function YoggUnregisterKeepers()
  RDX.UnregisterEncounter("bm_BM_Ulduarthorim");
  RDX.UnregisterEncounter("bm_BM_Ulduarhodir");
  RDX.UnregisterEncounter("bm_BM_Ulduarmimiron");
  RDX.UnregisterEncounter("bm_BM_Ulduarfreya");
end

BossmodEvents:Bind("ACTIVATE", nil, YoggUnregisterKeepers, encid);
the four keepers stand around in his room, so everytime you mouseover them the encounter switches, really annoing
if you use this script i would not recommend you to activate the yogg-saron encounter via mouse-over registering sara, she stands in the room all the time and you can accidently mouseover her while running arround in the upper hall wich would completely disable the mods for the keepers.
  Reply With Quote
04-25-09, 11:48 AM   #3
markushe
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 31
Thanks for your help.
So I was right about using RDX.StartEncounter. Just Didn't have a chance to try it.

Thanks also for the Yogg-Script. I'll try it out tonight.
  Reply With Quote
04-26-09, 09:03 AM   #4
markushe
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 31
It works

Ok. I tried it last night and after some additional "research" I finally git it to work.

I didn't know exactly what name I have to pass when calling UnregisterEncounter. I looked into the bossmode code and figured it out myself.
But your litte script really helped as a start. Thanks again.

For anyone who is trying something similar I'll provide what I know now .

When calling UnregisterEncounter you have to pass the encounter id and it always looks like this:

bm_ + {the name of the package your bossmod is in} + {the name of the Bossmod object}

so for example:

My package ist called: MerdonsBossmods
My Freya Bossmod object is called: Bossmod_Ulduar_Freya

So the encounter id would be:
bm_MerdonsBossmodsBossmod_Ulduar_Freya

I also found a way to still mouseover activate Yogg-Saron by simply checking which zone I am in.
Here is what I have now:

Code:
function YoggUnregisterKeepers()

    if(GetSubZoneText() ~= "The Descent into Madness") then 
        return;
    end
      
    RDX.UnregisterEncounter("bm_MerdonsBossmodsBossmod_Ulduar_Thorim");
    RDX.UnregisterEncounter("bm_MerdonsBossmodsBossmod_Ulduar_Hodir");
    DX.UnregisterEncounter("bm_MerdonsBossmodsBossmod_Ulduar_Mimiron");
    RDX.UnregisterEncounter("bm_MerdonsBossmodsBossmod_Ulduar_Freya");
    DEFAULT_CHAT_FRAME:AddMessage("RDX Bossmods: Unregistering Keepers for Yogg-Saron fight");
end

BossmodEvents:Bind("ACTIVATE", nil, YoggUnregisterKeepers, encid);
  Reply With Quote

WoWInterface » Featured Projects » OpenRDX » OpenRDX Community » OpenRDX: Community Chat » How to start boss timer


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off