EZ Server

General Category => General Discussion => Topic started by: Bogreaper on September 22, 2017, 12:22:44 am



Title: Macro EZStats (/say hp, /say aa)
Post by: Bogreaper on September 22, 2017, 12:22:44 am
Here is a little macro that I hope helps someone.

As you know, due to the way EZServer does some of the custom items the server holds a different number for your max hps than your client reports.
Because of this you can do a /say hp and see what is the value the server has for your total hps.
You can also do this for your unspent AAs

If you run a number of characters you sometimes just want a quick little /xxxxx and see what everyones AAs or maxhps are.

Well here you go.

/bcaa //macro ezstats
/bcaa //macro ezstats hp
or
/bcaa //macro ezstats aa

This will have each each character you have logged in report in /rsay (raid) what the results of both /say hp and /say aa, or either/or which is specified.

Also,  if you are not familiar with Events in macroquest, this is a very simple example on how you can use them.

Peace
Bogreaper
------------- Begin Macro ---------------------


| =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   EZStats
   By BogReaper ( Bogreaper@gmail.com ) Sept 22nd 2017
   
   Hope you enjoy, and may the Bog be with you.
  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|


#turbo
#Event  ezstats "Max HP: #1#"
#Event  ezstats "Unspent AA: #1#"

Sub Main
   /declare timeez int local
   /if (${Param0.Length}>0) {
      /if (${Param0.Equal[HP]}) {
         /delay ${Math.Rand[10]}
         /say hp
         /for timeez 1 to 20
            /doevents ezstats
            /delay 1
         /next timeez
      } else /if (${Param0.Equal[AA]}) {
         /delay ${Math.Rand[10]}
         /say aa
         /for timeez 1 to 20
            /doevents ezstats
            /delay 1
         /next timeez
      }
   } else {
      /delay ${Math.Rand[10]}
      /say hp
      /for timeez 1 to 20
         /doevents ezstats
         /delay 1
      /next timeez
      /delay ${Math.Rand[10]}
      /delay ${Math.Rand[10]}
      /say aa
      /for timeez 1 to 20
         /doevents ezstats
         /delay 1
      /next timeez
   }
/return

Sub Event_ezstats(Line, numberish)
    /if (${Line.Find[Max HP]}) {
      /rsay Max HP: ${numberish}
    } else /if (${Line.Find[Unspent AA]}) {
      /rsay Unspent AA: ${numberish}
    }
   /delay 1
/return

--------- End Macro --------------


PS, I use a couple of Random duration delays in here, so that you wont have 24 characters all doing /rsay at the same time, and getting a disconnect from the server..


Title: Re: Macro EZStats (/say hp, /say aa)
Post by: synthaxx_17 on September 22, 2017, 01:40:35 am
Thanks Bog!

Will make it easier to check all of them at once.