You are not logged in.

1

Sunday, July 13th 2014, 10:54pm

White Hit Counter

In theory, should record ur white hits per second. Triggers on the first white you make. Pauses on leave combat. Resets when u hit reset.

So im not acutally sure this works...any kinds of correctly. GLGS.
Darwec has attached the following file:
  • WhiteCount.zip (1.97 kB - 39 times downloaded - latest: May 20th 2017, 1:40pm)
Darwec R/wd/m :DThe Rogue Guide
EOJs Mems and Shells
The continuous cries for "oh, make things harder on people who don't spend real money" is driving this game into the dirt. This game isn't funded by pay to play players. Its funded by the people who go out and farm all your stats and hard mode gear for you to buy.

bleedingblak

I'm here to troll you

Posts: 1,232

Location: www.youtube.com/user/ihavetourettesxx

Mood: Crying

  • Send private message

2

Monday, July 14th 2014, 11:44pm

Still not sure why it doesn't work properly. Only theory is the the decimal place is off xD


~Fly into the distance, disappear for awhile~

3

Thursday, July 24th 2014, 3:03am

Updated cus it was busted.
Darwec has attached the following file:
  • WhiteCount.zip (1.98 kB - 17 times downloaded - latest: May 20th 2017, 1:49pm)
Darwec R/wd/m :DThe Rogue Guide
EOJs Mems and Shells
The continuous cries for "oh, make things harder on people who don't spend real money" is driving this game into the dirt. This game isn't funded by pay to play players. Its funded by the people who go out and farm all your stats and hard mode gear for you to buy.

bleedingblak

I'm here to troll you

Posts: 1,232

Location: www.youtube.com/user/ihavetourettesxx

Mood: Crying

  • Send private message

4

Thursday, July 24th 2014, 3:41am

SWEEEEEEEEEEET


~Fly into the distance, disappear for awhile~

5

Thursday, July 24th 2014, 3:41am

IGNORE ALL PREVIOUS VERSIONS, THEY WERE BROKEN AS MY MIND.

this version works correctly.
Darwec has attached the following file:
  • WhiteCount.zip (2.02 kB - 89 times downloaded - latest: Jul 28th 2017, 8:49pm)
Darwec R/wd/m :DThe Rogue Guide
EOJs Mems and Shells
The continuous cries for "oh, make things harder on people who don't spend real money" is driving this game into the dirt. This game isn't funded by pay to play players. Its funded by the people who go out and farm all your stats and hard mode gear for you to buy.

6

Saturday, September 13th 2014, 5:38pm

Any chance to make it save its position in my UI ? I have to move it to where I want it on every login..

bleedingblak

I'm here to troll you

Posts: 1,232

Location: www.youtube.com/user/ihavetourettesxx

Mood: Crying

  • Send private message

7

Saturday, September 13th 2014, 9:55pm

when i asked him to do that he said he's too lazy :p


~Fly into the distance, disappear for awhile~

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

8

Sunday, September 14th 2014, 1:47am

Drive-by Add-on Modification

Try the following...

In WhiteCounter.xml, add this to the OnLoad section

Source code

1
2
        this:RegisterEvent("VARIABLES_LOADED");
        this:RegisterEvent("SAVE_VARIABLES");


then in the OnEvent part, add

Source code

1
2
3
4
5
6
7
8
9
10
        if (event == "SAVE_VARIABLES") then
          SaveVariables("WhiteCounter_Position");
        end
        
        if (event == "VARIABLES_LOADED") then
          if (WhiteCounter_Position.x == nil or WhiteCounter_Position.y == nil) then
            WhiteCounter_Position = WhiteCounter_DefaultPos;
          end
          this:SetPos(WhiteCounter_Position.x,WhiteCounter_Position.y);
        end


Finally, in WhiteCounter.lua add this after the variable definitions

Source code

1
2
3
WhiteCounter_DefaultPos = {x = 110, y = 25}
WhiteCounter_Position = {}
SaveVariables("WhiteCounter_Position");


Note, the above has not been tested, nor even compiled.
2013... The year from hell....

9

Sunday, September 14th 2014, 5:19pm

Nope. Now it's always on 110/25.

Could that be because you're saving the empty variable in the lua?
or because you don't actually re-write the variable when the position changes?
So between loading the addon and saving the variables, you don't refill whitecounter_position ?

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

10

Sunday, September 14th 2014, 7:08pm

Well I did say it wasn't tested :)

Anyway, add the following before the call to Saveariables in the OnEvent part of the XML file

Source code

1
WhiteCounter_Position.x,  WhiteCounter_Position.y = this:GetPos()
2013... The year from hell....

11

Wednesday, September 17th 2014, 4:44pm

Uh. No, it's positioned a little different now, but still not saved where I put it at the end.
Is there an event_position_changed or something, which could be used to save it?