Converting the exp per kill macro?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

rogue
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Aug 27, 2003 1:33 pm

Converting the exp per kill macro?

Post by rogue » Fri Oct 10, 2003 2:55 pm

What would need to be changed to get the following to work?

It was from the macro depot and used to display the exp gained after each kill but since updating it doesnt work, can anyone help? :)

Code: Select all

sub event_exp 
/delay 1s 
|/echo EVENT FIRED OFF 
/varset v57 $char(exp) 
/varcalc v58 $v57-$v56 
/varcalc v60 100-$char(exp) 
/varcalc v59 $v60/$v58 
  /if n $v58>0 { 
  /echo and you've gained $v58% exp, bringing your total exp to $char(exp)%!! 
  /echo Don't forget, $v60% left till level, with only $v59 of these mobs to kill. 
  /varset v73 0 
  } else { 
  /echo Exp Gain Not Displayed with This Kill, Sorry.. yer still at $char(exp)% sorry.. 
  /varadd v73 1 
  /echo exp has not been calculated for $v73 kill(s).. = (  
  } 
  /varset v56 $char(exp) 
/delay 1s 
|/echo EVENT FIRED OFF 
/varset v67 $char(aa,exp) 
/varcalc v68 $v57-$v56 
/varcalc v70 100-$char(aa,exp) 
/varcalc v69 $v60/$v58 
  /if n $v68>0 { 
  /echo and you've gained $v68% AAxp, bringing your total AAxp to $char(aa,exp)%!! 
  /echo Don't forget, $v70% left till next aa point, with only $v59 of these mobs to kill. 
  /varset v83 0 
  } else { 
  /echo AAxp Gain Not Displayed with This Kill, Sorry.. yer still at $char(aa,exp)% sorry.. 
  /varadd v83 1 
  /echo AAxp has not been calculated for $v83 kill(s).. = (  
  } 
  /varset v66 $char(aa,exp) 
/return

MQSEQ
Hypocrite fag
Posts: 181
Joined: Fri Sep 19, 2003 5:18 pm

Post by MQSEQ » Fri Oct 10, 2003 3:12 pm

There is a post with a simular function:

http://macroquest2.com/phpBB2/viewtopic.php?t=3340