vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17 <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38 <title>ParserLib Documentation</title>
39 <style type="text/css">
40 body { font-family: Arial,Helvetica,sans-serif;
41 }
42 </style>
43 </head>
44  
45  
46 <body style="background-color: rgb(144, 240, 240); color: rgb(0, 0, 0);" alink="#ee0000" link="#0000ee" vlink="#551a8b">
47  
48  
49  
50  
51  
52  
53  
54 <h2><a name="ToC"></a>Table of Contents</h2>
55  
56  
57  
58  
59  
60  
61  
62 <h3><a href="#Introduction_">Introduction</a></h3>
63  
64  
65  
66  
67  
68  
69  
70 <h3><a href="#Supported_Events_">Supported Events</a></h3>
71  
72  
73  
74  
75  
76  
77  
78 <h3><a href="#How_To_Use">How to use</a></h3>
79  
80  
81  
82  
83  
84  
85  
86 <h3><a href="#Example">Example</a></h3>
87  
88  
89  
90  
91  
92  
93  
94 <h3><a href="#Optimizer">Optimizer</a><br>
95 </h3>
96 <h3><a href="#API">API</a></h3>
97  
98  
99  
100  
101  
102  
103  
104 <h3><a href="#Variable_Description">Variable
105 Description</a></h3>
106  
107  
108  
109  
110  
111  
112  
113 <br>
114  
115  
116  
117  
118  
119  
120  
121 <br>
122  
123  
124  
125  
126  
127  
128  
129 <br>
130  
131  
132  
133  
134  
135  
136  
137 <h4><a name="Introduction_"></a>Introduction</h4>
138  
139  
140  
141  
142  
143  
144  
145 <br>
146  
147  
148  
149  
150  
151  
152  
153 ParserLib is an embedded library which does all the combat message
154 parsing and converting them into meaningful information.<br>
155  
156  
157  
158  
159  
160  
161  
162 <br>
163  
164  
165  
166  
167  
168  
169  
170 To use ParserLib, your addon register events to ParserLib like this:<br>
171  
172  
173  
174  
175  
176  
177  
178 <br>
179  
180  
181  
182  
183  
184  
185  
186 <br>
187  
188  
189  
190  
191  
192  
193  
194 <pre>local parser = ParserLib:GetInstance("1.1')<br>parser:RegisterEvent("MyAddon", "CHAT_MSG_COMBAT_SELF_HIT", "MyAddonEventHandler")</pre>
195  
196  
197  
198  
199  
200  
201  
202 <br>
203  
204  
205  
206  
207  
208  
209  
210 <br>
211  
212  
213  
214  
215  
216  
217  
218 Very similar to what you do to frame:RegisterEvent(), when the
219 registered event is fired, ParserLib will call your registered handler,
220 but instead of arg1, it passes a table as the second parameter:<br>
221  
222  
223  
224  
225  
226  
227  
228 <br>
229  
230  
231  
232  
233  
234  
235  
236 <pre>function MyAddonEventHandler(event, info)<br> if info.type == "hit" then ChatFrame1:AddMessage( info.source .. " hit " .. info.victim .. " for " .. info.damount .. "damage!" ) end<br>end</pre>
237  
238  
239  
240  
241  
242  
243  
244 All ParserLib do is convert the arg1 into a table, for now you'll still
245 need to know which event to register. <br>
246  
247  
248  
249  
250  
251  
252  
253 <br>
254  
255  
256  
257  
258  
259  
260  
261 So&nbsp;what's the benefits for using ParserLib?<br>
262  
263  
264  
265  
266  
267  
268  
269 <ul>
270  
271  
272  
273  
274  
275  
276  
277 <li>By dynamically sorting the patterns in a special way,
278 ParserLib works on all
279 localizations. No worrying about:</li>
280  
281  
282  
283  
284  
285  
286  
287  
288  
289  
290  
291  
292  
293 <ul>
294  
295  
296  
297  
298  
299  
300  
301 <li>"Greater Heal critically" being parsed as spell name for
302 "Your %s heals you for %d."</li>
303  
304  
305  
306  
307  
308  
309  
310 <li>"you" being parsed as victim name for "%s hits %s for %s."</li>
311  
312  
313  
314  
315  
316  
317  
318 <li>"30 mana from Someone's Blessing of Wisdom" being parsed
319 as buff name for "%s gains %s."</li>
320  
321  
322  
323  
324  
325  
326  
327  
328  
329  
330  
331  
332  
333 </ul>
334  
335  
336  
337  
338  
339  
340  
341 <li>Minimal memory usage, if you don't register any event then
342 almost only the raw codes are loaded.</li>
343  
344  
345  
346  
347  
348  
349  
350  
351  
352  
353  
354  
355  
356 <ul>
357  
358  
359  
360  
361  
362  
363  
364 <li>Multiple client addons share the same instance of
365 ParserLib.</li>
366  
367  
368  
369  
370  
371  
372  
373  
374  
375  
376  
377  
378  
379 </ul>
380  
381  
382  
383  
384  
385  
386  
387  
388  
389  
390  
391  
392  
393 <ul>
394  
395  
396  
397  
398  
399  
400  
401 <li>Only listen to an event when a client registers for it.</li>
402  
403  
404  
405  
406  
407  
408  
409  
410  
411  
412  
413  
414  
415 </ul>
416  
417  
418  
419  
420  
421  
422  
423  
424  
425  
426  
427  
428  
429 <ul>
430  
431  
432  
433  
434  
435  
436  
437 <li>Load event-pattern list only when the event is actually
438 fired.</li>
439  
440  
441  
442  
443  
444  
445  
446 <li>Load pattern table only when that pattern is required to
447 parse.</li>
448  
449  
450  
451  
452  
453  
454  
455 <li>Recycles tables by using CompostLib.</li>
456  
457  
458  
459  
460  
461  
462  
463  
464  
465  
466  
467  
468  
469 </ul>
470  
471  
472  
473  
474  
475  
476  
477 <li>Better Efficiency</li>
478  
479  
480  
481  
482  
483  
484  
485  
486  
487  
488  
489  
490  
491 <ul>
492  
493  
494  
495  
496  
497  
498  
499 <li>ParserLib knows what event will fire what patterns, and
500 only parse through the possible patterns.</li>
501  
502  
503  
504  
505  
506  
507  
508 <li>When there are multiple client addons, the patterns are
509 only parsed once. Without using a common library, everyone will have to
510 do their own parsing, which is a waste of resource.</li>
511  
512  
513  
514  
515  
516  
517  
518  
519  
520  
521  
522  
523  
524 </ul>
525  
526  
527  
528  
529  
530  
531  
532 </ul>
533  
534  
535  
536  
537  
538  
539  
540 <br>
541  
542  
543  
544  
545  
546  
547  
548 <a href="#ToC">Back to top</a>
549 <h4><a name="Supported_Events_"></a>Supported
550 Events</h4>
551  
552  
553  
554  
555  
556  
557  
558 Click the link to see what patterns will be fired from the event. <br>
559  
560  
561  
562  
563  
564  
565  
566 (They''re still not very complete though, I'm working hard on it.)<br>
567  
568  
569  
570  
571  
572  
573  
574 <br>
575  
576  
577  
578  
579  
580  
581  
582 <a href="#Currently_supported">Currently supported</a><br>
583  
584  
585  
586  
587  
588  
589  
590 <a href="#Planned_to_support_in_the_future">Planned to
591 support in the future</a><br>
592  
593  
594  
595  
596  
597  
598  
599 <a href="#Wont_be_supported">Won't be supported</a><br>
600  
601  
602  
603  
604  
605  
606  
607 <br>
608  
609  
610  
611  
612  
613  
614  
615 <br>
616  
617  
618  
619  
620  
621  
622  
623 <br>
624  
625  
626  
627  
628  
629  
630  
631 <span style="font-weight: bold;"><a name="Currently_supported"></a>Currently supported</span><br>
632  
633  
634  
635  
636  
637  
638  
639 <br>
640  
641  
642  
643  
644  
645  
646  
647 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_CREATURE_VS_CREATURE_HITS">CHAT_MSG_COMBAT_CREATURE_VS_CREATURE_HITS</a><br>
648  
649  
650  
651  
652  
653  
654  
655 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_CREATURE_VS_CREATURE_MISSES">CHAT_MSG_COMBAT_CREATURE_VS_CREATURE_MISSES</a><br>
656  
657  
658  
659  
660  
661  
662  
663 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_CREATURE_VS_PARTY_HITS">CHAT_MSG_COMBAT_CREATURE_VS_PARTY_HITS</a><br>
664  
665  
666  
667  
668  
669  
670  
671 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_CREATURE_VS_PARTY_MISSES">CHAT_MSG_COMBAT_CREATURE_VS_PARTY_MISSES</a><br>
672  
673  
674  
675  
676  
677  
678  
679 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_CREATURE_VS_SELF_HITS">CHAT_MSG_COMBAT_CREATURE_VS_SELF_HITS</a><br>
680  
681  
682  
683  
684  
685  
686  
687 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_CREATURE_VS_SELF_MISSES">CHAT_MSG_COMBAT_CREATURE_VS_SELF_MISSES</a><br>
688  
689  
690  
691  
692  
693  
694  
695 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_FACTION_CHANGE">CHAT_MSG_COMBAT_FACTION_CHANGE</a><br>
696  
697  
698  
699  
700  
701  
702  
703 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_FRIENDLYPLAYER_HITS">CHAT_MSG_COMBAT_FRIENDLYPLAYER_HITS</a><br>
704  
705  
706  
707  
708  
709  
710  
711 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_FRIENDLYPLAYER_MISSES">CHAT_MSG_COMBAT_FRIENDLYPLAYER_MISSES</a><br>
712  
713  
714  
715  
716  
717  
718  
719 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_FRIENDLY_DEATH">CHAT_MSG_COMBAT_FRIENDLY_DEATH</a><br>
720  
721  
722  
723  
724  
725  
726  
727 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_HONOR_GAIN">CHAT_MSG_COMBAT_HONOR_GAIN</a><br>
728  
729  
730  
731  
732  
733  
734  
735 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_HOSTILEPLAYER_HITS">CHAT_MSG_COMBAT_HOSTILEPLAYER_HITS</a><br>
736  
737  
738  
739  
740  
741  
742  
743 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_HOSTILEPLAYER_MISSES">CHAT_MSG_COMBAT_HOSTILEPLAYER_MISSES</a><br>
744  
745  
746  
747  
748  
749  
750  
751 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_HOSTILE_DEATH">CHAT_MSG_COMBAT_HOSTILE_DEATH</a><br>
752  
753  
754  
755  
756  
757  
758  
759 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_PARTY_HITS">CHAT_MSG_COMBAT_PARTY_HITS</a><br>
760  
761  
762  
763  
764  
765  
766  
767 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_PARTY_MISSES">CHAT_MSG_COMBAT_PARTY_MISSES</a><br>
768  
769  
770  
771  
772  
773  
774  
775 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_PET_HITS">CHAT_MSG_COMBAT_PET_HITS</a><br>
776  
777  
778  
779  
780  
781  
782  
783 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_PET_MISSES">CHAT_MSG_COMBAT_PET_MISSES</a><br>
784  
785  
786  
787  
788  
789  
790  
791 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_SELF_HITS">CHAT_MSG_COMBAT_SELF_HITS</a><br>
792  
793  
794  
795  
796  
797  
798  
799 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_SELF_MISSES">CHAT_MSG_COMBAT_SELF_MISSES</a><br>
800  
801  
802  
803  
804  
805  
806  
807 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_XP_GAIN">CHAT_MSG_COMBAT_XP_GAIN</a><br>
808  
809  
810  
811  
812  
813  
814  
815 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_AURA_GONE_OTHER">CHAT_MSG_SPELL_AURA_GONE_OTHER</a><br>
816  
817  
818  
819  
820  
821  
822  
823 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_AURA_GONE_SELF">CHAT_MSG_SPELL_AURA_GONE_SELF</a><br>
824  
825  
826  
827  
828  
829  
830  
831 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_AURA_GONE_PARTY">CHAT_MSG_SPELL_AURA_GONE_PARTY</a><br>
832  
833  
834  
835  
836  
837  
838  
839 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_BREAK_AURA">CHAT_MSG_SPELL_BREAK_AURA</a><br>
840  
841  
842  
843  
844  
845  
846  
847 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_CREATURE_VS_CREATURE_BUFF">CHAT_MSG_SPELL_CREATURE_VS_CREATURE_BUFF</a><br>
848  
849  
850  
851  
852  
853  
854  
855 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_CREATURE_VS_CREATURE_DAMAGE">CHAT_MSG_SPELL_CREATURE_VS_CREATURE_DAMAGE</a><br>
856  
857  
858  
859  
860  
861  
862  
863 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_CREATURE_VS_PARTY_BUFF">CHAT_MSG_SPELL_CREATURE_VS_PARTY_BUFF</a><br>
864  
865  
866  
867  
868  
869  
870  
871 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_CREATURE_VS_PARTY_DAMAGE">CHAT_MSG_SPELL_CREATURE_VS_PARTY_DAMAGE</a><br>
872  
873  
874  
875  
876  
877  
878  
879 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_CREATURE_VS_SELF_BUFF">CHAT_MSG_SPELL_CREATURE_VS_SELF_BUFF</a><br>
880  
881  
882  
883  
884  
885  
886  
887 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_CREATURE_VS_SELF_DAMAGE">CHAT_MSG_SPELL_CREATURE_VS_SELF_DAMAGE</a><br>
888  
889  
890  
891  
892  
893  
894  
895 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_DAMAGESHIELDS_ON_OTHERS">CHAT_MSG_SPELL_DAMAGESHIELDS_ON_OTHERS</a><br>
896  
897  
898  
899  
900  
901  
902  
903 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_DAMAGESHIELDS_ON_SELF">CHAT_MSG_SPELL_DAMAGESHIELDS_ON_SELF</a><br>
904  
905  
906  
907  
908  
909  
910  
911 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_FAILED_LOCALPLAYER">CHAT_MSG_SPELL_FAILED_LOCALPLAYER</a><br>
912  
913  
914  
915  
916  
917  
918  
919 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_FRIENDLYPLAYER_BUFF">CHAT_MSG_SPELL_FRIENDLYPLAYER_BUFF</a><br>
920  
921  
922  
923  
924  
925  
926  
927 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_FRIENDLYPLAYER_DAMAGE">CHAT_MSG_SPELL_FRIENDLYPLAYER_DAMAGE</a><br>
928  
929  
930  
931  
932  
933  
934  
935 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_HOSTILEPLAYER_BUFF">CHAT_MSG_SPELL_HOSTILEPLAYER_BUFF</a><br>
936  
937  
938  
939  
940  
941  
942  
943 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_HOSTILEPLAYER_DAMAGE">CHAT_MSG_SPELL_HOSTILEPLAYER_DAMAGE</a><br>
944  
945  
946  
947  
948  
949  
950  
951 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_ITEM_ENCHANTMENTS">CHAT_MSG_SPELL_ITEM_ENCHANTMENTS</a><br>
952  
953  
954  
955  
956  
957  
958  
959 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PARTY_BUFF">CHAT_MSG_SPELL_PARTY_BUFF</a><br>
960  
961  
962  
963  
964  
965  
966  
967 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PARTY_DAMAGE">CHAT_MSG_SPELL_PARTY_DAMAGE</a><br>
968  
969  
970  
971  
972  
973  
974  
975 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PERIODIC_CREATURE_BUFFS">CHAT_MSG_SPELL_PERIODIC_CREATURE_BUFFS</a><br>
976  
977  
978  
979  
980  
981  
982  
983 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PERIODIC_CREATURE_DAMAGE">CHAT_MSG_SPELL_PERIODIC_CREATURE_DAMAGE</a><br>
984  
985  
986  
987  
988  
989  
990  
991 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PERIODIC_FRIENDLYPLAYER_BUFFS">CHAT_MSG_SPELL_PERIODIC_FRIENDLYPLAYER_BUFFS</a><br>
992  
993  
994  
995  
996  
997  
998  
999 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PERIODIC_FRIENDLYPLAYER_DAMAGE">CHAT_MSG_SPELL_PERIODIC_FRIENDLYPLAYER_DAMAGE</a><br>
1000  
1001  
1002  
1003  
1004  
1005  
1006  
1007 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_BUFFS">CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_BUFFS</a><br>
1008  
1009  
1010  
1011  
1012  
1013  
1014  
1015 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_DAMAGE">CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_DAMAGE</a><br>
1016  
1017  
1018  
1019  
1020  
1021  
1022  
1023 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PERIODIC_PARTY_BUFFS">CHAT_MSG_SPELL_PERIODIC_PARTY_BUFFS</a><br>
1024  
1025  
1026  
1027  
1028  
1029  
1030  
1031 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PERIODIC_PARTY_DAMAGE">CHAT_MSG_SPELL_PERIODIC_PARTY_DAMAGE</a><br>
1032  
1033  
1034  
1035  
1036  
1037  
1038  
1039 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PERIODIC_SELF_BUFFS">CHAT_MSG_SPELL_PERIODIC_SELF_BUFFS</a><br>
1040  
1041  
1042  
1043  
1044  
1045  
1046  
1047 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PERIODIC_SELF_DAMAGE">CHAT_MSG_SPELL_PERIODIC_SELF_DAMAGE</a><br>
1048  
1049  
1050  
1051  
1052  
1053  
1054  
1055 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PET_BUFF">CHAT_MSG_SPELL_PET_BUFF</a><br>
1056  
1057  
1058  
1059  
1060  
1061  
1062  
1063 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_PET_DAMAGE">CHAT_MSG_SPELL_PET_DAMAGE</a><br>
1064  
1065  
1066  
1067  
1068  
1069  
1070  
1071 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_SELF_BUFF">CHAT_MSG_SPELL_SELF_BUFF</a><br>
1072  
1073  
1074  
1075  
1076  
1077  
1078  
1079 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_SELF_DAMAGE">CHAT_MSG_SPELL_SELF_DAMAGE</a><br>
1080  
1081  
1082  
1083  
1084  
1085  
1086  
1087 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SPELL_TRADESKILLS">CHAT_MSG_SPELL_TRADESKILLS</a><br>
1088  
1089  
1090  
1091  
1092  
1093  
1094  
1095 <br>
1096  
1097  
1098  
1099  
1100  
1101  
1102  
1103 <br>
1104  
1105  
1106  
1107  
1108  
1109  
1110  
1111 <a style="font-weight: bold;" name="Planned_to_support_in_the_future"></a><span style="font-weight: bold;">Planned to support in the future</span><br>
1112  
1113  
1114  
1115  
1116  
1117  
1118  
1119 <br>
1120  
1121  
1122  
1123  
1124  
1125  
1126  
1127 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_COMBAT_MISC_INFO">CHAT_MSG_COMBAT_MISC_INFO</a><br>
1128  
1129  
1130  
1131  
1132  
1133  
1134  
1135 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_SKILL">CHAT_MSG_SKILL</a><br>
1136  
1137  
1138  
1139  
1140  
1141  
1142  
1143 <a href="http://www.wowwiki.com/Patterns_fired_from_each_CHAT_MSG_events#CHAT_MSG_LOOT">CHAT_MSG_LOOT</a><br>
1144  
1145  
1146  
1147  
1148  
1149  
1150  
1151 <br>
1152  
1153  
1154  
1155  
1156  
1157  
1158  
1159 <a style="font-weight: bold;" name="Wont_be_supported"></a><span style="font-weight: bold;">Won't be supported</span><br>
1160  
1161  
1162  
1163  
1164  
1165  
1166  
1167 <br>
1168  
1169  
1170  
1171  
1172  
1173  
1174  
1175 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG">CHAT_MSG</a><br>
1176  
1177  
1178  
1179  
1180  
1181  
1182  
1183 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_AFK">CHAT_MSG_AFK</a><br>
1184  
1185  
1186  
1187  
1188  
1189  
1190  
1191 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_BG_SYSTEM_ALLIANCE">CHAT_MSG_BG_SYSTEM_ALLIANCE</a><br>
1192  
1193  
1194  
1195  
1196  
1197  
1198  
1199 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_BG_SYSTEM_HORDE">CHAT_MSG_BG_SYSTEM_HORDE</a><br>
1200  
1201  
1202  
1203  
1204  
1205  
1206  
1207 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_BG_SYSTEM_NEUTRAL">CHAT_MSG_BG_SYSTEM_NEUTRAL</a><br>
1208  
1209  
1210  
1211  
1212  
1213  
1214  
1215 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_CHANNEL">CHAT_MSG_CHANNEL</a><br>
1216  
1217  
1218  
1219  
1220  
1221  
1222  
1223 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_CHANNEL_JOIN">CHAT_MSG_CHANNEL_JOIN</a><br>
1224  
1225  
1226  
1227  
1228  
1229  
1230  
1231 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_CHANNEL_LEAVE">CHAT_MSG_CHANNEL_LEAVE</a><br>
1232  
1233  
1234  
1235  
1236  
1237  
1238  
1239 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_CHANNEL_LIST">CHAT_MSG_CHANNEL_LIST</a><br>
1240  
1241  
1242  
1243  
1244  
1245  
1246  
1247 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_CHANNEL_NOTICE">CHAT_MSG_CHANNEL_NOTICE</a><br>
1248  
1249  
1250  
1251  
1252  
1253  
1254  
1255 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_CHANNEL_NOTICE_USER">CHAT_MSG_CHANNEL_NOTICE_USER</a><br>
1256  
1257  
1258  
1259  
1260  
1261  
1262  
1263 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_COMBAT_ERROR">CHAT_MSG_COMBAT_ERROR</a><br>
1264  
1265  
1266  
1267  
1268  
1269  
1270  
1271 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_DND">CHAT_MSG_DND</a><br>
1272  
1273  
1274  
1275  
1276  
1277  
1278  
1279 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_EMOTE">CHAT_MSG_EMOTE</a><br>
1280  
1281  
1282  
1283  
1284  
1285  
1286  
1287 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_GUILD">CHAT_MSG_GUILD</a><br>
1288  
1289  
1290  
1291  
1292  
1293  
1294  
1295 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_IGNORED">CHAT_MSG_IGNORED</a><br>
1296  
1297  
1298  
1299  
1300  
1301  
1302  
1303 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_MONSTER_EMOTE">CHAT_MSG_MONSTER_EMOTE</a><br>
1304  
1305  
1306  
1307  
1308  
1309  
1310  
1311 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_MONSTER_SAY">CHAT_MSG_MONSTER_SAY</a><br>
1312  
1313  
1314  
1315  
1316  
1317  
1318  
1319 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_MONSTER_WHISPER">CHAT_MSG_MONSTER_WHISPER</a><br>
1320  
1321  
1322  
1323  
1324  
1325  
1326  
1327 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_MONSTER_YELL">CHAT_MSG_MONSTER_YELL</a><br>
1328  
1329  
1330  
1331  
1332  
1333  
1334  
1335 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_OFFICER">CHAT_MSG_OFFICER</a><br>
1336  
1337  
1338  
1339  
1340  
1341  
1342  
1343 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_PARTY">CHAT_MSG_PARTY</a><br>
1344  
1345  
1346  
1347  
1348  
1349  
1350  
1351 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_RAID">CHAT_MSG_RAID</a><br>
1352  
1353  
1354  
1355  
1356  
1357  
1358  
1359 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_SAY">CHAT_MSG_SAY</a><br>
1360  
1361  
1362  
1363  
1364  
1365  
1366  
1367 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_SYSTEM">CHAT_MSG_SYSTEM</a><br>
1368  
1369  
1370  
1371  
1372  
1373  
1374  
1375 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_TEXT_EMOTE">CHAT_MSG_TEXT_EMOTE</a><br>
1376  
1377  
1378  
1379  
1380  
1381  
1382  
1383 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_WHISPER">CHAT_MSG_WHISPER</a><br>
1384  
1385  
1386  
1387  
1388  
1389  
1390  
1391 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_WHISPER_INFORM">CHAT_MSG_WHISPER_INFORM</a><br>
1392  
1393  
1394  
1395  
1396  
1397  
1398  
1399 <a href="http://www.wowwiki.com/Events_C_%28Cancel%2C_Character%2C_Chat%2C_Cinematic%2C_Clear%2C_Close%2C_Confirm%2C_Corpse%2C_Craft%2C_Current%2C_Cursor%2C_CVar%29#CHAT_MSG_YELL">CHAT_MSG_YELL</a><br>
1400  
1401  
1402  
1403  
1404  
1405  
1406  
1407 <br>
1408  
1409  
1410  
1411  
1412  
1413  
1414  
1415 <br>
1416  
1417  
1418  
1419  
1420  
1421  
1422  
1423 <a href="documentation.html#ToC">Back to top</a><br>
1424  
1425  
1426  
1427  
1428  
1429  
1430  
1431 <h4><a name="How_To_Use"></a>How To Use</h4>
1432  
1433  
1434  
1435  
1436  
1437  
1438  
1439 <br>
1440  
1441  
1442  
1443  
1444  
1445  
1446  
1447 1. Put both CompostLib and ParserLib folder in your addon.<br>
1448  
1449  
1450  
1451  
1452  
1453  
1454  
1455 2. Add CompostLib&nbsp;and ParserLib to .toc so it looks like this:<br>
1456  
1457  
1458  
1459  
1460  
1461  
1462  
1463 <pre> ## Interface: 11000<br> ## Title: MyAddOn<br> ## Notes: A ParserLib client addon.<br> CompostLib\CompostLib.lua<br> ParserLib\ParserLib.lua<br> SimpleCombatLog.xml<br></pre>
1464  
1465  
1466  
1467  
1468  
1469  
1470  
1471 3. In your lua file, get an instance of ParserLib by calling the
1472 ParserLib:GetInstance() method. <br>
1473  
1474  
1475  
1476  
1477  
1478  
1479  
1480 <pre> local parser = ParserLib:GetInstance("1.1")</pre>
1481  
1482  
1483  
1484  
1485  
1486  
1487  
1488 &nbsp;&nbsp;&nbsp; Where the "1.1" is the major version
1489 number (variable <span style="font-style: italic;">vmajor</span>)
1490 which can be found at the top of ParserLib.lua<br>
1491  
1492  
1493  
1494  
1495  
1496  
1497  
1498 <br>
1499  
1500  
1501  
1502  
1503  
1504  
1505  
1506 4. To listen to an event, do not Frame:RegisterEvent(), instead
1507 register the events to ParserLib:<br>
1508  
1509  
1510  
1511  
1512  
1513  
1514  
1515 <br>
1516  
1517  
1518  
1519  
1520  
1521  
1522  
1523 <pre> parser:RegisterEvent("MyAddOn", "CHAT_MSG_COMBAT_SELF_HITS", "MyAddOn_OnParserEvent")</pre>
1524  
1525  
1526  
1527  
1528  
1529  
1530  
1531 <pre></pre>
1532  
1533  
1534  
1535  
1536  
1537  
1538  
1539 5. Now define your event handler, ParserLib will call it when the
1540 registered event occurs.<br>
1541  
1542  
1543  
1544  
1545  
1546  
1547  
1548 <pre> function MyAddOn_OnParserEvent(event, info)<br> -- check info.type to know what's inside info.<br> -- do whatever you want with the data.<br> end</pre>
1549  
1550  
1551  
1552  
1553  
1554  
1555  
1556 <span style="font-family: monospace;"><br>
1557  
1558  
1559  
1560  
1561  
1562  
1563  
1564 </span><br>
1565  
1566  
1567  
1568  
1569  
1570  
1571  
1572 6. info is a table which contains parsed information. To know what
1573 information you can get from the table, check the info.type variable,
1574 detailed description for each type is <a href="#Variable_Description">here</a>.<br>
1575  
1576  
1577  
1578  
1579  
1580  
1581  
1582 &nbsp;&nbsp;&nbsp; &nbsp;<br>
1583  
1584  
1585  
1586  
1587  
1588  
1589  
1590 NOTE: ParserLib recycles the info table to reduce memory usage, if you
1591 want to do something with the table after the event handler, make sure
1592 you store them in your own data structure.<br>
1593  
1594  
1595  
1596  
1597  
1598  
1599  
1600 <br style="font-weight: bold;">
1601  
1602  
1603  
1604  
1605  
1606  
1607  
1608 <span style="font-weight: bold;">
1609 Let me say it again, the info table will be CLEARED after the event
1610 handler has finished. </span><br>
1611  
1612  
1613  
1614  
1615  
1616  
1617  
1618 <h3>
1619 YOU ARE EXPECTED TO COPY DOWN THE VARIABLES YOU NEED BEFORE THE END OF
1620 YOUR EVENT HANDLER.</h3>
1621  
1622  
1623  
1624  
1625  
1626  
1627  
1628 <br>
1629  
1630  
1631  
1632  
1633  
1634  
1635  
1636 <br>
1637  
1638  
1639  
1640  
1641  
1642  
1643  
1644 <br>
1645  
1646  
1647  
1648  
1649  
1650  
1651  
1652 <a href="documentation.html#ToC">Back to top</a><br>
1653  
1654  
1655  
1656  
1657  
1658  
1659  
1660 <h4><a name="Example"></a>Example</h4>
1661  
1662  
1663  
1664  
1665  
1666  
1667  
1668 <br>
1669  
1670  
1671  
1672  
1673  
1674  
1675  
1676 <pre> function MyAddOn_OnParserEvent(event, info)<br> if info.type == "hit" then<br> if info.source == ParserLib_SELF then info.source = "you" end<br> if info.victim == ParserLib_SELF then info.source = "you" end<br> if info.skill == ParserLib_MELEE then info.skill = "melee" end<br> ChatFrame1:AddMessage(info.source .. " hits " .. info.victim .. " with " .. info.skill .. " for " .. info.amount)<br> end<br> end<br> <br> parser = ParserLib:GetInstance("1.1")<br> parser:AddEventHandler("MyAddOn", "CHAT_MSG_COMBAT_SELF_HITS", "MyAddOn_OnParserEvent")<br> parser:AddEventHandler("MyAddOn", "CHAT_MSG_COMBAT_PET_HITS", "MyAddOn_OnParserEvent")<br> parser:AddEventHandler("MyAddOn", "CHAT_MSG_SPELL_SELF_DAMAGE", "MyAddOn_OnParserEvent")<br> parser:AddEventHandler("MyAddOn", "CHAT_MSG_SPELL_PET_DAMAGE", "MyAddOn_OnParserEvent")<br> parser:AddEventHandler("MyAddOn", "CHAT_MSG_SPELL_PERIODIC_CREATURE_DAMAGE", "MyAddOn_OnParserEvent")<br> parser:AddEventHandler("MyAddOn", "CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_DAMAGE", "MyAddOn_OnParserEvent")<br><span style="font-family: Courier New,Courier,monospace;"></span></pre>
1677  
1678  
1679  
1680  
1681  
1682  
1683  
1684 Now you got yourself an addon which will report melee and spell hits of
1685 you and your pet!<br>
1686  
1687  
1688  
1689  
1690  
1691  
1692  
1693 <br>
1694 <a href="documentation.html#ToC">Back to top</a><br>
1695 <br>
1696 <br>
1697 <h4><a name="Optimizer"></a>Optimizer</h4>
1698 &nbsp;&nbsp;&nbsp; ParserLib currently includes a file called <span style="font-style: italic;">optimizer-enUS.lua</span>, it can increase the parsing speed of ParserLib by around 20~30% on english locaization. By looking at the source code of <span style="font-style: italic;">optimizer-enUS.lua, </span>you
1699 can easily create an optimizer file for other localizations. Basically
1700 the optimizer is simply a table which contains 'keyword string' for the
1701 patterns in WoW. For example the keyword 'hit' in
1702 COMBATHITSCHOOLOTHEROTHER (%s hits %s for %d %s damage.). &nbsp;The
1703 optimizer is completely optional, ParserLib works fine without any
1704 optimizer, just that the existance of an optimizer for your
1705 localization can increase the parsing speed.<br>
1706 &nbsp;&nbsp;&nbsp; To load an optimizer, simply include that file on your .toc, so it looks like this:<br>
1707 <pre> ## Interface: 11000<br> ## Title: MyAddOn<br> ## Notes: A ParserLib client addon.<br> CompostLib\CompostLib.lua<br> ParserLib\ParserLib.lua<br> ParserLib\optimizer-enUS.lua<br> SimpleCombatLog.xml</pre>
1708 &nbsp;&nbsp;&nbsp; Note that the optimizer is global, which means if
1709 someone added an optimizer table which has the wrong keyword, it could
1710 mess out ParserLib which will affect all the ParserLib clients. This is
1711 not good so this part will probably get reworked, for now I suggest you
1712 don't try to add your own optimizer file, but optimizer-enUS.lua should
1713 work fine.<br>
1714  
1715  
1716  
1717  
1718  
1719  
1720  
1721 <br>
1722  
1723  
1724  
1725  
1726  
1727  
1728  
1729 <a href="documentation.html#ToC">Back to top</a><br>
1730  
1731  
1732  
1733  
1734  
1735  
1736  
1737 <h4><a name="API"></a>API</h4>
1738 <ul>
1739 <li>RegisterEvent(addonID, event, handler) :
1740 Register an event with the event handler.</li>
1741 </ul>
1742 <ul>
1743 <li>UnregisterEvent(addonID, event) :
1744 Unregister an event for the addonID.</li>
1745 </ul>
1746 <ul>
1747 <li>UnregisterAllEvents(addonID) :
1748 Unregister all events for the addonID.</li>
1749 </ul>
1750 <ul>
1751 <li>Deformat(text, pattern) : Use this to parse for custom patterns which is not supported by ParserLib.</li>
1752 </ul>
1753 <span style="font-family: monospace;"></span>
1754 <pre> attacker, victim, amount, element = parser:Deformat("Rophy hits Pig for 500 fire damage.", COMBATHITSCHOOLOTHEROTHER)</pre>
1755  
1756  
1757  
1758  
1759  
1760  
1761  
1762  
1763  
1764  
1765  
1766  
1767  
1768  
1769 <br>
1770  
1771  
1772  
1773  
1774  
1775  
1776  
1777 <a href="documentation.html#ToC">Back to top</a><br>
1778  
1779  
1780  
1781  
1782  
1783  
1784  
1785 <br>
1786  
1787  
1788  
1789  
1790  
1791  
1792  
1793 <h4><a name="Variable_Description"></a>Variable
1794 Description</h4>
1795  
1796  
1797  
1798  
1799  
1800  
1801  
1802 The table passed to your event handler will always contains a variable
1803 called <span style="font-style: italic;"><span style="font-weight: bold;">type</span></span>,<span style="font-style: italic;"> </span>which you can
1804 check to know what other variables are stored in the table.<br>
1805  
1806  
1807  
1808  
1809  
1810  
1811  
1812 <br>
1813  
1814  
1815  
1816  
1817  
1818  
1819  
1820 <a name="type"></a>
1821 'type' is one of the following strings:<br>
1822  
1823  
1824  
1825  
1826  
1827  
1828  
1829 <br>
1830  
1831  
1832  
1833  
1834  
1835  
1836  
1837 <table style="text-align: left; width: 100px;" border="0" cellpadding="4" cellspacing="4">
1838  
1839  
1840  
1841  
1842  
1843  
1844  
1845 <tbody>
1846  
1847  
1848  
1849  
1850  
1851  
1852  
1853 <tr>
1854  
1855  
1856  
1857  
1858  
1859  
1860  
1861 <td><a href="documentation.html#hit">hit </a></td>
1862  
1863  
1864  
1865  
1866  
1867  
1868  
1869 <td><a href="documentation.html#heal">heal </a></td>
1870  
1871  
1872  
1873  
1874  
1875  
1876  
1877 <td><a href="documentation.html#miss">miss </a></td>
1878  
1879  
1880  
1881  
1882  
1883  
1884  
1885 <td><a href="documentation.html#death">death </a></td>
1886  
1887  
1888  
1889  
1890  
1891  
1892  
1893 <td><a href="documentation.html#debuff">debuff</a></td>
1894  
1895  
1896  
1897  
1898  
1899  
1900  
1901 </tr>
1902  
1903  
1904  
1905  
1906  
1907  
1908  
1909 <tr>
1910  
1911  
1912  
1913  
1914  
1915  
1916  
1917 <td><a href="documentation.html#buff">buff</a></td>
1918  
1919  
1920  
1921  
1922  
1923  
1924  
1925 <td><a href="documentation.html#fade">fade</a></td>
1926  
1927  
1928  
1929  
1930  
1931  
1932  
1933 <td><a href="documentation.html#cast">cast</a></td>
1934  
1935  
1936  
1937  
1938  
1939  
1940  
1941 <td><a href="documentation.html#dispel">dispel</a></td>
1942  
1943  
1944  
1945  
1946  
1947  
1948  
1949 <td><a href="documentation.html#extraattack">extraattack</a></td>
1950  
1951  
1952  
1953  
1954  
1955  
1956  
1957 </tr>
1958  
1959  
1960  
1961  
1962  
1963  
1964  
1965 <tr>
1966  
1967  
1968  
1969  
1970  
1971  
1972  
1973 <td><a href="documentation.html#gain">gain</a></td>
1974  
1975  
1976  
1977  
1978  
1979  
1980  
1981 <td><a href="documentation.html#drain">drain</a></td>
1982  
1983  
1984  
1985  
1986  
1987  
1988  
1989 <td><a href="documentation.html#leech">leech</a></td>
1990  
1991  
1992  
1993  
1994  
1995  
1996  
1997 <td><a href="documentation.html#interrupt">interrupt</a></td>
1998  
1999  
2000  
2001  
2002  
2003  
2004  
2005 <td><a href="documentation.html#fail">fail</a></td>
2006  
2007  
2008  
2009  
2010  
2011  
2012  
2013 </tr>
2014  
2015  
2016  
2017  
2018  
2019  
2020  
2021 <tr>
2022  
2023  
2024  
2025  
2026  
2027  
2028  
2029 <td><a href="documentation.html#environment">environment</a></td>
2030  
2031  
2032  
2033  
2034  
2035  
2036  
2037 <td><a href="documentation.html#honor">honor</a></td>
2038  
2039  
2040  
2041  
2042  
2043  
2044  
2045 <td><a href="documentation.html#experience">experience</a></td>
2046  
2047  
2048  
2049  
2050  
2051  
2052  
2053 <td><a href="documentation.html#reputation">reputation</a></td>
2054  
2055  
2056  
2057  
2058  
2059  
2060  
2061 <td><a href="documentation.html#feedpet">feedpet</a></td>
2062  
2063  
2064  
2065  
2066  
2067  
2068  
2069 </tr>
2070  
2071  
2072  
2073  
2074  
2075  
2076  
2077 <tr>
2078  
2079  
2080  
2081  
2082  
2083  
2084  
2085 <td><a href="documentation.html#enchant">enchant</a></td>
2086  
2087  
2088  
2089  
2090  
2091  
2092  
2093 <td><a href="documentation.html#create">create</a></td>
2094  
2095  
2096  
2097  
2098  
2099  
2100  
2101 <td><a href="#durability">durability</a></td>
2102  
2103  
2104  
2105  
2106  
2107  
2108  
2109 <td></td>
2110  
2111  
2112  
2113  
2114  
2115  
2116  
2117 <td></td>
2118  
2119  
2120  
2121  
2122  
2123  
2124  
2125 </tr>
2126  
2127  
2128  
2129  
2130  
2131  
2132  
2133  
2134  
2135  
2136  
2137  
2138  
2139 </tbody>
2140 </table>
2141  
2142  
2143  
2144  
2145  
2146  
2147  
2148 <br>
2149  
2150  
2151  
2152  
2153  
2154  
2155  
2156 <br>
2157  
2158  
2159  
2160  
2161  
2162  
2163  
2164 <a href="documentation.html#ToC">Back to top</a><br>
2165  
2166  
2167  
2168  
2169  
2170  
2171  
2172 <br>
2173  
2174  
2175  
2176  
2177  
2178  
2179  
2180 <br>
2181  
2182  
2183  
2184  
2185  
2186  
2187  
2188 Normally all the variables are&nbsp;<span style="font-weight: bold;">string tokens</span> parsed
2189 from the combat message, with a few exceptions:<br>
2190  
2191  
2192  
2193  
2194  
2195  
2196  
2197 <br>
2198  
2199  
2200  
2201  
2202  
2203  
2204  
2205 <ul>
2206  
2207  
2208  
2209  
2210  
2211  
2212  
2213 <li><span style="font-weight: bold; font-style: italic;">source</span>,
2214 <span style="font-weight: bold; font-style: italic;">victim</span>, <span style="font-weight: bold;">sourceGained</span> might be a numeric constant <span style="font-weight: bold;">ParserLib_SELF</span>,
2215 which means it's you.</li>
2216  
2217  
2218  
2219  
2220  
2221  
2222  
2223 <li><span style="font-weight: bold; font-style: italic;">skill</span>
2224 might be the numeric constant <span style="font-weight: bold;">ParserLib_MELEE</span>
2225 for melee, or <span style="font-weight: bold;">ParserLib_DAMAGESHIELD</span>
2226 for damage shields.</li>
2227  
2228  
2229  
2230  
2231  
2232  
2233  
2234 <li><span style="font-style: italic; font-weight: bold;">amount</span>
2235 and its variations (<span style="font-weight: bold; font-style: italic;">amountGained</span>,
2236 <span style="font-weight: bold; font-style: italic;">amountRaidPenality</span>
2237 etc ) are numbers.</li>
2238  
2239  
2240  
2241  
2242  
2243  
2244  
2245 <li><span style="font-style: italic; font-weight: bold;">missType</span>
2246 is one of the following strings:&nbsp;<span style="font-weight: bold;">miss</span>, <span style="font-weight: bold;">dodge</span>, <span style="font-weight: bold;">block</span>, <span style="font-weight: bold;">deflect</span>, <span style="font-weight: bold;">immune</span>, <span style="font-weight: bold;">evade</span>, <span style="font-weight: bold;">parry</span>, <span style="font-weight: bold;">resist</span>, <span style="font-weight: bold;">reflect</span>, <span style="font-weight: bold;">absorb</span></li>
2247  
2248  
2249  
2250  
2251  
2252  
2253  
2254 <li><span style="font-weight: bold; font-style: italic;">damageType</span>
2255 is one of the following strings: <span style="font-weight: bold;">drown</span>,
2256 <span style="font-weight: bold;">fall</span>, <span style="font-weight: bold;">exhaust</span>, <span style="font-weight: bold;">fire</span>, <span style="font-weight: bold;">lava</span>, <span style="font-weight: bold;">slime</span>.</li>
2257  
2258  
2259  
2260  
2261  
2262  
2263  
2264 <li>Variables starting with&nbsp;<span style="font-style: italic;"><span style="font-weight: bold;">is</span></span><span style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;</span></span>are
2265 booleans, for example <span style="font-style: italic; font-weight: bold;">isDOT</span>,
2266 <span style="font-weight: bold; font-style: italic;">isCrit</span>,
2267 <span style="font-style: italic; font-weight: bold;">isItem</span>
2268 etc.</li>
2269  
2270  
2271  
2272  
2273  
2274  
2275  
2276 </ul>
2277  
2278  
2279  
2280  
2281  
2282  
2283  
2284 <span style="font-weight: bold;"><span style="font-style: italic;"><span style="font-style: italic;"><span style="font-weight: bold;"></span></span></span><span style="font-weight: bold;"></span></span><br>
2285  
2286  
2287  
2288  
2289  
2290  
2291  
2292 Here is the list of all possible <span style="font-style: italic;"><span style="font-weight: bold;">type</span></span>,
2293 with the variables associated with them, a starting @ means that
2294 variable may not exist, depends on the combat message parsed.<br>
2295  
2296  
2297  
2298  
2299  
2300  
2301  
2302 <br>
2303  
2304  
2305  
2306  
2307  
2308  
2309  
2310 The list is in the following format:<br>
2311  
2312  
2313  
2314  
2315  
2316  
2317  
2318 <pre><span style="font-weight: bold;">TYPE </span>: simple description.<br><span style="font-style: italic;">* example combat message.</span><br> <span style="font-weight: bold;">Variable : value</span><br> <span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;">@OptionalVariable : value</span></span></span><span style="font-weight: bold;"><br><br></span></pre>
2319  
2320  
2321  
2322  
2323  
2324  
2325  
2326 <br>
2327  
2328  
2329  
2330  
2331  
2332  
2333  
2334 <br>
2335  
2336  
2337  
2338  
2339  
2340  
2341  
2342 <br>
2343  
2344  
2345  
2346  
2347  
2348  
2349  
2350 <br>
2351  
2352  
2353  
2354  
2355  
2356  
2357  
2358 <span style="font-weight: bold;"><a name="hit"></a>hit</span>
2359 : including melee/spell/skill hits, crits, dots.<br>
2360  
2361  
2362  
2363  
2364  
2365  
2366  
2367 <span style="font-style: italic;">* Your Shadow Bolt crits
2368 Pig for 50 shadow damage. (30 resisted)</span><br>
2369  
2370  
2371  
2372  
2373  
2374  
2375  
2376 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source
2377 </span>: ParserLib_YOU<br>
2378  
2379  
2380  
2381  
2382  
2383  
2384  
2385 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim
2386 </span>: "Pig"<br>
2387  
2388  
2389  
2390  
2391  
2392  
2393  
2394 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill
2395 </span>: "Shadow Bolt"<br>
2396  
2397  
2398  
2399  
2400  
2401  
2402  
2403 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">amount
2404 : </span>50<br>
2405  
2406  
2407  
2408  
2409  
2410  
2411  
2412 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">element
2413 : </span>"shadow"<br>
2414  
2415  
2416  
2417  
2418  
2419  
2420  
2421 &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold;">isCrit : </span>true<br>
2422  
2423  
2424  
2425  
2426  
2427  
2428  
2429 &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold;">isDOT : </span>false<br>
2430  
2431  
2432  
2433  
2434  
2435  
2436  
2437 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">isCrushing</span> : false<br>
2438  
2439  
2440  
2441  
2442  
2443  
2444 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">isGlancing</span> : false<br>
2445  
2446  
2447  
2448  
2449  
2450  
2451 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amountAbsorb</span> : nil<br>
2452  
2453  
2454  
2455  
2456  
2457  
2458 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amountBlock</span> : nil<br>
2459  
2460  
2461  
2462  
2463  
2464  
2465 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amountResist</span> : 30<br>
2466  
2467  
2468  
2469  
2470  
2471  
2472 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amountVulnerable</span> : nil<br>
2473  
2474  
2475  
2476  
2477  
2478  
2479  
2480 <br>
2481  
2482  
2483  
2484  
2485  
2486  
2487  
2488 <br>
2489  
2490  
2491  
2492  
2493  
2494  
2495  
2496 <br>
2497  
2498  
2499  
2500  
2501  
2502  
2503  
2504 <a href="#type">Back to list</a><br>
2505  
2506  
2507  
2508  
2509  
2510  
2511  
2512 <br>
2513  
2514  
2515  
2516  
2517  
2518  
2519  
2520 <span style="font-weight: bold;"><a name="heal"></a>heal
2521 : </span>including heals and HoTs.<br>
2522  
2523  
2524  
2525  
2526  
2527  
2528  
2529 <span style="font-style: italic;">* You gains 50 health
2530 from Priest's Renew.</span><br>
2531  
2532  
2533  
2534  
2535  
2536  
2537  
2538 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source</span>
2539 : "Priest"<br>
2540  
2541  
2542  
2543  
2544  
2545  
2546  
2547 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
2548 : ParserLib_YOU<br>
2549  
2550  
2551  
2552  
2553  
2554  
2555  
2556 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
2557 : "Renew"<br>
2558  
2559  
2560  
2561  
2562  
2563  
2564  
2565 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">amount</span>
2566 : 50<br>
2567  
2568  
2569  
2570  
2571  
2572  
2573  
2574 &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold;">isCrit</span> : false<br>
2575  
2576  
2577  
2578  
2579  
2580  
2581  
2582 &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold;">isDOT</span> : true<br>
2583  
2584  
2585  
2586  
2587  
2588  
2589  
2590 &nbsp;&nbsp; <br>
2591  
2592  
2593  
2594  
2595  
2596  
2597  
2598 <br>
2599  
2600  
2601  
2602  
2603  
2604  
2605  
2606 <a href="documentation.html#type">Back to list</a><br>
2607  
2608  
2609  
2610  
2611  
2612  
2613  
2614 &nbsp;&nbsp;&nbsp; <br>
2615  
2616  
2617  
2618  
2619  
2620  
2621  
2622 <span style="font-weight: bold;"><a name="miss"></a>miss</span>
2623 : Including miss, dodge, block, deflect, immune, evade, parry, resist,
2624 reflect, absorb.<br>
2625  
2626  
2627  
2628  
2629  
2630  
2631  
2632 <span style="font-style: italic;">* Warrior's Overpower
2633 was parried by Flamewaker.</span><br>
2634  
2635  
2636  
2637  
2638  
2639  
2640  
2641 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source</span>
2642 : "Warrior"<br>
2643  
2644  
2645  
2646  
2647  
2648  
2649  
2650 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
2651 : "Flamewaker"<br>
2652  
2653  
2654  
2655  
2656  
2657  
2658  
2659 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
2660 : "Overpower"<br>
2661  
2662  
2663  
2664  
2665  
2666  
2667  
2668 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">missType</span>
2669 : "parry" (This is a fixed string, not parsed)<br>
2670  
2671  
2672  
2673  
2674  
2675  
2676  
2677 &nbsp;&nbsp;&nbsp; <br>
2678  
2679  
2680  
2681  
2682  
2683  
2684  
2685 <br>
2686  
2687  
2688  
2689  
2690  
2691  
2692  
2693 <br>
2694  
2695  
2696  
2697  
2698  
2699  
2700  
2701 <a href="documentation.html#type">Back to list</a><br>
2702  
2703  
2704  
2705  
2706  
2707  
2708  
2709 <br>
2710  
2711  
2712  
2713  
2714  
2715  
2716  
2717 <span style="font-weight: bold;"><a name="death"></a>death</span><br>
2718  
2719  
2720  
2721  
2722  
2723  
2724  
2725 <span style="font-style: italic;">* Rophy is slain by
2726 Bigpotato!</span><br>
2727  
2728  
2729  
2730  
2731  
2732  
2733  
2734 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
2735 : "Rophy"<br>
2736  
2737  
2738  
2739  
2740  
2741  
2742  
2743 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">source</span>
2744 : "Bigpotato"<br>
2745  
2746  
2747  
2748  
2749  
2750  
2751  
2752 &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold;">isItem</span> : nil<br>
2753  
2754  
2755  
2756  
2757  
2758  
2759  
2760 <br>
2761  
2762  
2763  
2764  
2765  
2766  
2767  
2768 <span style="font-style: italic;">* Magma Totem IV is
2769 destroyed.</span><br style="font-style: italic;">
2770  
2771  
2772  
2773  
2774  
2775  
2776  
2777 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
2778 : "Magma Totem IV"<br>
2779  
2780  
2781  
2782  
2783  
2784  
2785  
2786 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">source</span>
2787 : nil<br>
2788  
2789  
2790  
2791  
2792  
2793  
2794  
2795 &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold;">isItem</span> : true<br>
2796  
2797  
2798  
2799  
2800  
2801  
2802  
2803 <br>
2804  
2805  
2806  
2807  
2808  
2809  
2810  
2811 <br>
2812  
2813  
2814  
2815  
2816  
2817  
2818  
2819 <a href="documentation.html#type">Back to list</a><br>
2820  
2821  
2822  
2823  
2824  
2825  
2826  
2827 <br>
2828  
2829  
2830  
2831  
2832  
2833  
2834  
2835 <span style="font-weight: bold;"><a name="debuff"></a>debuff</span><br>
2836  
2837  
2838  
2839  
2840  
2841  
2842  
2843 <span style="font-style: italic;">* Peter is afflicted by
2844 Shadow Vulnerability (2).</span><br>
2845  
2846  
2847  
2848  
2849  
2850  
2851  
2852 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
2853 : "Peter"<br>
2854  
2855  
2856  
2857  
2858  
2859  
2860  
2861 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
2862 : "<span style="font-style: italic;">Shadow Vulnerability</span>"<br>
2863  
2864  
2865  
2866  
2867  
2868  
2869  
2870 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amountRank</span>
2871 : 2&nbsp;<span style="font-weight: bold;"></span><br>
2872  
2873  
2874  
2875  
2876  
2877  
2878  
2879 &nbsp;&nbsp;&nbsp; <br>
2880  
2881  
2882  
2883  
2884  
2885  
2886  
2887 <br>
2888  
2889  
2890  
2891  
2892  
2893  
2894  
2895 <a href="documentation.html#type">Back to list</a><br>
2896  
2897  
2898  
2899  
2900  
2901  
2902  
2903 <br>
2904  
2905  
2906  
2907  
2908  
2909  
2910  
2911 <span style="font-weight: bold;"><a name="buff"></a>buff</span><br>
2912  
2913  
2914  
2915  
2916  
2917  
2918  
2919 <span style="font-style: italic;">* Rophy gains Power
2920 Word: Shield.</span><br>
2921  
2922  
2923  
2924  
2925  
2926  
2927  
2928 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
2929 : "Rophy"<br>
2930  
2931  
2932  
2933  
2934  
2935  
2936  
2937 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
2938 : "Power Word: Shield"<br>
2939  
2940  
2941  
2942  
2943  
2944  
2945  
2946 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amountRank</span>
2947 : nil<br>
2948  
2949  
2950  
2951  
2952  
2953  
2954  
2955 <br>
2956  
2957  
2958  
2959  
2960  
2961  
2962  
2963 <br>
2964  
2965  
2966  
2967  
2968  
2969  
2970  
2971 <a href="documentation.html#type">Back to list</a><br>
2972  
2973  
2974  
2975  
2976  
2977  
2978  
2979 <br>
2980  
2981  
2982  
2983  
2984  
2985  
2986  
2987 <a name="fade"></a><span style="font-weight: bold;">fade</span> : this might be
2988 buff or debuff, can't be distinguished by the message.<br>
2989  
2990  
2991  
2992  
2993  
2994  
2995  
2996 <span style="font-style: italic;">* Cheap Shot fades from
2997 Alterac Ram.</span><br>
2998  
2999  
3000  
3001  
3002  
3003  
3004  
3005 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
3006 : "Alterac Ram"<br>
3007  
3008  
3009  
3010  
3011  
3012  
3013  
3014 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
3015 : "Cheap Shot"<br>
3016  
3017  
3018  
3019  
3020  
3021  
3022  
3023 &nbsp;&nbsp;&nbsp; <br>
3024  
3025  
3026  
3027  
3028  
3029  
3030  
3031 <br>
3032  
3033  
3034  
3035  
3036  
3037  
3038  
3039 <br>
3040  
3041  
3042  
3043  
3044  
3045  
3046  
3047 <a href="documentation.html#type">Back to list</a><br>
3048  
3049  
3050  
3051  
3052  
3053  
3054  
3055 <br>
3056  
3057  
3058  
3059  
3060  
3061  
3062  
3063 <span style="font-weight: bold;"><a name="cast"></a>cast</span>
3064 : note that this includes "cast" and "perform".<br>
3065  
3066  
3067  
3068  
3069  
3070  
3071  
3072 <span style="font-style: italic;">* Doggy casts Growl on
3073 Mirefin Oracle.</span><br>
3074  
3075  
3076  
3077  
3078  
3079  
3080  
3081 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source</span>
3082 : "Doggy"<br>
3083  
3084  
3085  
3086  
3087  
3088  
3089  
3090 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
3091 : "Growl"<br>
3092  
3093  
3094  
3095  
3096  
3097  
3098  
3099 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">victim</span>
3100 : "Mirefin Oracle" &nbsp;<br>
3101  
3102  
3103  
3104  
3105  
3106  
3107  
3108 &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold;">isBegin</span> :
3109 nil&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
3110 &nbsp; &lt;- only one will exist between isBegin and victim.<br>
3111  
3112  
3113  
3114  
3115  
3116  
3117  
3118 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">isPerform</span>
3119 : nil<br>
3120  
3121  
3122  
3123  
3124  
3125  
3126  
3127 <br>
3128  
3129  
3130  
3131  
3132  
3133  
3134  
3135 <span style="font-style: italic;">* Rophy performs Opening
3136 on Onyxia's Gate.</span><br>
3137  
3138  
3139  
3140  
3141  
3142  
3143  
3144 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source</span>
3145 : "Rophy"<br>
3146  
3147  
3148  
3149  
3150  
3151  
3152  
3153 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
3154 : "Opening"<br>
3155  
3156  
3157  
3158  
3159  
3160  
3161  
3162 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">victim</span>
3163 : "Onyxia's Gate"<br>
3164  
3165  
3166  
3167  
3168  
3169  
3170  
3171 <span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;isBegin</span>
3172 : nil&nbsp;<br>
3173  
3174  
3175  
3176  
3177  
3178  
3179  
3180 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">isPerform</span>
3181 : true<br>
3182  
3183  
3184  
3185  
3186  
3187  
3188  
3189 <br style="font-style: italic;">
3190  
3191  
3192  
3193  
3194  
3195  
3196  
3197 <span style="font-style: italic;">* Stormpike Mountaineer
3198 begins to perform Shoot.</span><br>
3199  
3200  
3201  
3202  
3203  
3204  
3205  
3206 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source</span>
3207 : "Stormpike Mountaineer"<br>
3208  
3209  
3210  
3211  
3212  
3213  
3214  
3215 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
3216 : "Shoot"<br>
3217  
3218  
3219  
3220  
3221  
3222  
3223  
3224 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">victim</span>
3225 : nil<br>
3226  
3227  
3228  
3229  
3230  
3231  
3232  
3233 &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold;">isBegin</span> : true<br>
3234  
3235  
3236  
3237  
3238  
3239  
3240  
3241 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">isPerform</span>
3242 : true<br>
3243  
3244  
3245  
3246  
3247  
3248  
3249  
3250 <br>
3251  
3252  
3253  
3254  
3255  
3256  
3257  
3258 <br>
3259  
3260  
3261  
3262  
3263  
3264  
3265  
3266 <br>
3267  
3268  
3269  
3270  
3271  
3272  
3273  
3274 <a href="documentation.html#type">Back to list</a><br>
3275  
3276  
3277  
3278  
3279  
3280  
3281  
3282 <br>
3283  
3284  
3285  
3286  
3287  
3288  
3289  
3290 <span style="font-weight: bold;"><a name="gain"></a>gain</span>
3291 <br>
3292  
3293  
3294  
3295  
3296  
3297  
3298  
3299 * <span style="font-style: italic;">You gain 10 Mana from
3300 Pally's Blessing of Wisdom.</span><br>
3301  
3302  
3303  
3304  
3305  
3306  
3307  
3308 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source</span>
3309 : "Pally"<br>
3310  
3311  
3312  
3313  
3314  
3315  
3316  
3317 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
3318 : ParserLib_YOU<br>
3319  
3320  
3321  
3322  
3323  
3324  
3325  
3326 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
3327 : "Blessing of Wisdim"<br>
3328  
3329  
3330  
3331  
3332  
3333  
3334  
3335 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">amount</span>
3336 : 10<br>
3337  
3338  
3339  
3340  
3341  
3342  
3343  
3344 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">attribute</span>
3345 : "Mana"<br>
3346  
3347  
3348  
3349  
3350  
3351  
3352  
3353 <br>
3354  
3355  
3356  
3357  
3358  
3359  
3360  
3361 <br>
3362  
3363  
3364  
3365  
3366  
3367  
3368  
3369 <a href="documentation.html#type">Back to list</a><br>
3370  
3371  
3372  
3373  
3374  
3375  
3376  
3377 <br>
3378  
3379  
3380  
3381  
3382  
3383  
3384  
3385 <span style="font-weight: bold;"><a name="drain"></a>drain</span><br>
3386  
3387  
3388  
3389  
3390  
3391  
3392  
3393 <span style="font-style: italic;">* Hunter's Viper Sting
3394 drains 277 Mana from Priest.</span><br>
3395  
3396  
3397  
3398  
3399  
3400  
3401  
3402 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source</span>
3403 : "Hunter"<br>
3404  
3405  
3406  
3407  
3408  
3409  
3410  
3411 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
3412 : "Priest"<br>
3413  
3414  
3415  
3416  
3417  
3418  
3419  
3420 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
3421 : "Viper Sting"<br>
3422  
3423  
3424  
3425  
3426  
3427  
3428  
3429 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">amount</span>
3430 : 277<br>
3431  
3432  
3433  
3434  
3435  
3436  
3437  
3438 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">attribute</span>
3439 : "Mana"<br>
3440  
3441  
3442  
3443  
3444  
3445  
3446  
3447 <br>
3448  
3449  
3450  
3451  
3452  
3453  
3454  
3455 <br>
3456  
3457  
3458  
3459  
3460  
3461  
3462  
3463 <a href="documentation.html#type">Back to list</a><br>
3464  
3465  
3466  
3467  
3468  
3469  
3470  
3471 &nbsp;&nbsp;&nbsp; <br>
3472  
3473  
3474  
3475  
3476  
3477  
3478  
3479 <span style="font-weight: bold;"><a name="leech"></a>leech</span><br>
3480  
3481  
3482  
3483  
3484  
3485  
3486  
3487 <span style="font-style: italic;">* Your Drain Mana drains
3488 140 Mana from Mage. You gain 140 Mana.</span><br>
3489  
3490  
3491  
3492  
3493  
3494  
3495  
3496 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source</span>
3497 : ParserLib_YOU<br>
3498  
3499  
3500  
3501  
3502  
3503  
3504  
3505 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
3506 : "Mage"<br>
3507  
3508  
3509  
3510  
3511  
3512  
3513  
3514 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
3515 : "Drain Mana"<br>
3516  
3517  
3518  
3519  
3520  
3521  
3522  
3523 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">amount</span>
3524 : 140<br>
3525  
3526  
3527  
3528  
3529  
3530  
3531  
3532 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">attribute</span>
3533 : "Mana"<br>
3534  
3535  
3536  
3537  
3538  
3539  
3540  
3541 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">sourceGained:</span>
3542 ParserLib_YOU<br>
3543  
3544  
3545  
3546  
3547  
3548  
3549  
3550 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">amountGained:</span>
3551 140<br>
3552  
3553  
3554  
3555  
3556  
3557  
3558  
3559 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">attributeGained:</span>
3560 "Mana"<br>
3561  
3562  
3563  
3564  
3565  
3566  
3567  
3568 &nbsp;&nbsp;&nbsp; <br>
3569  
3570  
3571  
3572  
3573  
3574  
3575  
3576 <br>
3577  
3578  
3579  
3580  
3581  
3582  
3583  
3584 <a href="documentation.html#type">Back to list</a><br>
3585  
3586  
3587  
3588  
3589  
3590  
3591  
3592 <span style="font-weight: bold;"></span><br>
3593  
3594  
3595  
3596  
3597  
3598  
3599  
3600 <span style="font-weight: bold;"><a name="dispel"></a>dispel</span>
3601 : There are two kinds of message so I'll show two examples here.<br>
3602  
3603  
3604  
3605  
3606  
3607  
3608  
3609 <span style="font-style: italic;">* Seasoned Guardian's
3610 Sap is removed.</span><br>
3611  
3612  
3613  
3614  
3615  
3616  
3617  
3618 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
3619 : "Seasoned Guardian"<br>
3620  
3621  
3622  
3623  
3624  
3625  
3626  
3627 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
3628 "Sap"<br>
3629  
3630  
3631  
3632  
3633  
3634  
3635  
3636 &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold;">isFailed</span> : false<br>
3637  
3638  
3639  
3640  
3641  
3642  
3643  
3644 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">source</span>
3645 : nil<br>
3646  
3647  
3648  
3649  
3650  
3651  
3652  
3653 <br>
3654  
3655  
3656  
3657  
3658  
3659  
3660  
3661 <span style="font-style: italic;">* Nino fails to dispel
3662 Librabear's Gehennas' Curse.<br>
3663  
3664  
3665  
3666  
3667  
3668  
3669  
3670 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
3671 : "Librabear"<br>
3672  
3673  
3674  
3675  
3676  
3677  
3678  
3679 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
3680 : "Gehennas' Curse"<br>
3681  
3682  
3683  
3684  
3685  
3686  
3687  
3688 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">isFailed</span>
3689 : true<br>
3690  
3691  
3692  
3693  
3694  
3695  
3696  
3697 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">source</span>
3698 : "Nino"<br>
3699  
3700  
3701  
3702  
3703  
3704  
3705  
3706 </span>&nbsp;&nbsp;&nbsp; <br>
3707  
3708  
3709  
3710  
3711  
3712  
3713  
3714 &nbsp;&nbsp;&nbsp; <br>
3715  
3716  
3717  
3718  
3719  
3720  
3721  
3722 <a href="documentation.html#type">Back to list</a><br>
3723  
3724  
3725  
3726  
3727  
3728  
3729  
3730 <br>
3731  
3732  
3733  
3734  
3735  
3736  
3737  
3738 <span style="font-weight: bold;"><a name="extraattack"></a>extraattack</span><br>
3739  
3740  
3741  
3742  
3743  
3744  
3745  
3746 <span style="font-style: italic;">* Rophy gains 2 extra
3747 attacks through Windfury Attack.</span><br>
3748  
3749  
3750  
3751  
3752  
3753  
3754  
3755 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
3756 : "Rophy"<br>
3757  
3758  
3759  
3760  
3761  
3762  
3763  
3764 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill
3765 </span>: "Windfury Attack"<br>
3766  
3767  
3768  
3769  
3770  
3771  
3772  
3773 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">amount</span>
3774 : 2<br>
3775  
3776  
3777  
3778  
3779  
3780  
3781  
3782 &nbsp;&nbsp;&nbsp; <br>
3783  
3784  
3785  
3786  
3787  
3788  
3789  
3790 <br>
3791  
3792  
3793  
3794  
3795  
3796  
3797  
3798 <br>
3799  
3800  
3801  
3802  
3803  
3804  
3805  
3806 <a href="documentation.html#type">Back to list</a><br>
3807  
3808  
3809  
3810  
3811  
3812  
3813  
3814 &nbsp;&nbsp;&nbsp; <br>
3815  
3816  
3817  
3818  
3819  
3820  
3821  
3822 <span style="font-weight: bold;"><a name="environment"></a>environment</span>
3823 : falling, fire, lava dmg etc<br>
3824  
3825  
3826  
3827  
3828  
3829  
3830  
3831 <span style="font-style: italic;">* Rophy suffers 468 points of fire damage. (298 absorbed)</span><br>
3832  
3833  
3834  
3835  
3836  
3837  
3838  
3839 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
3840 : "Rophy"<br>
3841  
3842  
3843  
3844  
3845  
3846  
3847  
3848 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">amount</span>
3849 :&nbsp;<span style="font-style: italic;">468</span><br>
3850  
3851  
3852  
3853  
3854  
3855  
3856  
3857 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">damageType</span>
3858 : "<span style="font-style: italic;">fire</span>"&nbsp;&nbsp;&nbsp; <br>
3859  
3860  
3861  
3862  
3863  
3864  
3865  
3866 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amountAbsorb</span> :&nbsp;<span style="font-style: italic;">298</span><br>
3867  
3868  
3869  
3870  
3871  
3872  
3873 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amountBlock</span> : nil<br>
3874  
3875  
3876  
3877  
3878  
3879  
3880 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amountResist</span> : nil<br>
3881  
3882  
3883  
3884  
3885  
3886  
3887 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amountVulnerable</span> : nil<br>
3888  
3889  
3890  
3891  
3892  
3893  
3894 <br>
3895  
3896  
3897  
3898  
3899  
3900  
3901  
3902 <br>
3903  
3904  
3905  
3906  
3907  
3908  
3909  
3910 <a href="documentation.html#type">Back to list</a><br>
3911  
3912  
3913  
3914  
3915  
3916  
3917  
3918 <br>
3919  
3920  
3921  
3922  
3923  
3924  
3925  
3926 <span style="font-weight: bold;"><a name="honor"></a>honor</span>
3927 : Two examples here.<br>
3928  
3929  
3930  
3931  
3932  
3933  
3934  
3935 <span style="font-style: italic;">* You have been awarded
3936 198 honor points.</span><br>
3937  
3938  
3939  
3940  
3941  
3942  
3943  
3944 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amount</span>
3945 : 198<br>
3946  
3947  
3948  
3949  
3950  
3951  
3952  
3953 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">source</span>
3954 : nil<br>
3955  
3956  
3957  
3958  
3959  
3960  
3961  
3962 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">sourceRank</span>
3963 : nil<br>
3964  
3965  
3966  
3967 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">isDishonor</span> : nil <br>
3968  
3969  
3970  
3971  
3972  
3973  
3974  
3975 <br>
3976  
3977  
3978  
3979  
3980  
3981  
3982  
3983 <span style="font-style: italic;">* Nino dies, honorable
3984 kill Rank: Stone Guard (Estimated Honor Points: 80)</span><br>
3985  
3986  
3987  
3988  
3989  
3990  
3991  
3992 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amount</span>
3993 : 80<br>
3994  
3995  
3996  
3997  
3998  
3999  
4000  
4001 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">source</span>
4002 : "Nino"<br>
4003  
4004  
4005  
4006  
4007  
4008  
4009  
4010 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">sourceRank</span>
4011 : "Stone Guard" &nbsp;&lt;-- if source exists then sourceRank
4012 exists too.<br>
4013  
4014  
4015  
4016 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">isDishonor</span> : nil<br>
4017  
4018  
4019  
4020 <br>
4021  
4022  
4023  
4024 * Someone dies, dishonorable kill.<br>
4025  
4026  
4027  
4028 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amount</span> : nil<br>
4029  
4030  
4031  
4032 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">source</span> : "Someone"<br>
4033  
4034  
4035  
4036 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">sourceRank</span> &nbsp;nil<br>
4037  
4038  
4039  
4040 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">isDishonor</span> :
4041 true&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
4042 &nbsp;&nbsp;&nbsp; &lt;-- amount is nil if and only if&nbsp;isDishonor
4043 is true, <span style="font-weight: bold;"></span><br>
4044  
4045  
4046  
4047  
4048  
4049  
4050  
4051 &nbsp;&nbsp;&nbsp; <br>
4052  
4053  
4054  
4055  
4056  
4057  
4058  
4059 <span style="font-weight: bold;"><br>
4060  
4061  
4062  
4063  
4064  
4065  
4066  
4067 </span><a href="documentation.html#type">Back to list</a><br>
4068  
4069  
4070  
4071  
4072  
4073  
4074  
4075 <br>
4076  
4077  
4078  
4079  
4080  
4081  
4082  
4083 <span style="font-weight: bold;"><a name="experience"></a>experience</span>
4084 : This one is complicated, most of the time you just need to look for <span style="font-weight: bold; font-style: italic;">amount</span>
4085 though.<br>
4086  
4087  
4088  
4089  
4090  
4091  
4092  
4093 <span style="font-style: italic;">* Mob dies, you gain 300
4094 experience. (+160 exp Rested bonus, -20 raid penalty)</span><br>
4095  
4096  
4097  
4098  
4099  
4100  
4101  
4102 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">amount</span>
4103 : 300<br>
4104  
4105  
4106  
4107  
4108  
4109  
4110  
4111 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">source</span>
4112 : "Mob"<br>
4113  
4114  
4115  
4116  
4117  
4118  
4119  
4120 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">victim</span>
4121 : nil &nbsp;&nbsp;&nbsp;&nbsp;
4122 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
4123 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
4124 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;-
4125 if nil then it's you who got the exp.<br>
4126  
4127  
4128  
4129  
4130  
4131  
4132  
4133 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">bonusAmount</span>
4134 : "+160" &nbsp;&nbsp;&nbsp;&nbsp; &lt;- Note that
4135 this is a string with '+', not a number.<br>
4136  
4137  
4138  
4139  
4140  
4141  
4142  
4143 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">bonusType</span>
4144 : "Rested" &nbsp;&nbsp;&nbsp;
4145 &nbsp;&nbsp;&nbsp;&lt;- if bonusAmount exists then this
4146 exists too.<br>
4147  
4148  
4149  
4150  
4151  
4152  
4153  
4154 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">penaltyAmount</span>
4155 : nil<br>
4156  
4157  
4158  
4159  
4160  
4161  
4162  
4163 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">penaltyType</span>
4164 : nil<br>
4165  
4166  
4167  
4168  
4169  
4170  
4171  
4172 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amountRaidPenalty</span>
4173 : 20<br>
4174  
4175  
4176  
4177  
4178  
4179  
4180  
4181 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amountGroupBonus</span>
4182 : nil<br>
4183  
4184  
4185  
4186  
4187  
4188  
4189  
4190 <br>
4191  
4192  
4193  
4194  
4195  
4196  
4197  
4198 <span style="font-style: italic;">* Someone gains 200
4199 experience.<br>
4200  
4201  
4202  
4203  
4204  
4205  
4206  
4207 </span>&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">amount</span> : 200<br>
4208  
4209  
4210  
4211  
4212  
4213  
4214  
4215 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">victim</span>
4216 : "Someone"<br>
4217  
4218  
4219  
4220  
4221  
4222  
4223  
4224 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">(all
4225 others are nil)</span><br>
4226  
4227  
4228  
4229  
4230  
4231  
4232  
4233 (This is the only pattern which has a victim, I have never seen it, but
4234 it exists anyway.)<span style="font-style: italic;"><br>
4235  
4236  
4237  
4238  
4239  
4240  
4241  
4242 </span>&nbsp;&nbsp;&nbsp; <br>
4243  
4244  
4245  
4246  
4247  
4248  
4249  
4250 <span style="font-weight: bold;"><br>
4251  
4252  
4253  
4254  
4255  
4256  
4257  
4258 Note: </span>the message of exp gained&nbsp;by discovering
4259 an area is fired by <span style="font-weight: bold;">CHAT_MSG_SYSTEM</span>,
4260 which will NOT be supported by ParserLib.<br>
4261  
4262  
4263  
4264  
4265  
4266  
4267  
4268 <span style="font-weight: bold;"><br>
4269  
4270  
4271  
4272  
4273  
4274  
4275  
4276 </span><a href="documentation.html#type">Back to list</a><br>
4277  
4278  
4279  
4280  
4281  
4282  
4283  
4284 <span style="font-weight: bold;"><br>
4285  
4286  
4287  
4288  
4289  
4290  
4291  
4292 <a name="reputation"></a>reputation<br>
4293  
4294  
4295  
4296  
4297  
4298  
4299  
4300 <br>
4301  
4302  
4303  
4304  
4305  
4306  
4307  
4308 </span><span style="font-style: italic;">* Your
4309 reputation with Undercity has slightly increased. (50 reputation gained)</span><br>
4310  
4311  
4312  
4313  
4314  
4315  
4316  
4317 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">faction</span>
4318 : "Undercity"<br>
4319  
4320  
4321  
4322  
4323  
4324  
4325  
4326 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amount</span>
4327 : 50 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
4328 &lt;- if amount exists then rank is nil.<br>
4329  
4330  
4331  
4332  
4333  
4334  
4335  
4336 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">rank</span>
4337 : nil<br>
4338  
4339  
4340  
4341  
4342  
4343  
4344  
4345 &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold;">isNegative</span> : nil
4346 &nbsp;&nbsp;&nbsp; &lt;- make sure you check this.<br>
4347  
4348  
4349  
4350  
4351  
4352  
4353  
4354 <br>
4355  
4356  
4357  
4358  
4359  
4360  
4361  
4362 * You are now Friendly with Steamwheedle Cartel.<br>
4363  
4364  
4365  
4366  
4367  
4368  
4369  
4370 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">faction</span>
4371 : "Steamwheedle Cartel"<br>
4372  
4373  
4374  
4375  
4376  
4377  
4378  
4379 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">amount</span>
4380 : nil<br>
4381  
4382  
4383  
4384  
4385  
4386  
4387  
4388 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">rank</span>
4389 : "Friendly" &nbsp;&nbsp;&lt;- if rank exists then amount
4390 is nil.<br>
4391  
4392  
4393  
4394  
4395  
4396  
4397  
4398 &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold;">isNegative</span> : nil<br>
4399  
4400  
4401  
4402  
4403  
4404  
4405  
4406 <br>
4407  
4408  
4409  
4410  
4411  
4412  
4413  
4414 &nbsp;&nbsp;&nbsp; <br>
4415  
4416  
4417  
4418  
4419  
4420  
4421  
4422 <span style="font-weight: bold;"><br>
4423  
4424  
4425  
4426  
4427  
4428  
4429  
4430 </span><a href="documentation.html#type">Back to list</a><br>
4431  
4432  
4433  
4434  
4435  
4436  
4437  
4438 <br>
4439  
4440  
4441  
4442  
4443  
4444  
4445  
4446 <span style="font-weight: bold;"><a name="feedpet"></a>feedpet</span><br>
4447  
4448  
4449  
4450  
4451  
4452  
4453  
4454 * Hunter's pet begins eating a Moist Cornbread.<br>
4455  
4456  
4457  
4458  
4459  
4460  
4461  
4462 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span> : "Hunter"<br>
4463  
4464  
4465  
4466  
4467  
4468  
4469  
4470 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">item</span> : "Moist Cornbread"<br>
4471  
4472  
4473  
4474  
4475  
4476  
4477  
4478 <br>
4479  
4480  
4481  
4482  
4483  
4484  
4485  
4486 <br>
4487  
4488  
4489  
4490  
4491  
4492  
4493  
4494 <br>
4495  
4496  
4497  
4498  
4499  
4500  
4501  
4502 <br>
4503  
4504  
4505  
4506  
4507  
4508  
4509  
4510 <a href="documentation.html#type">Back to list</a>&nbsp;&nbsp;&nbsp;
4511 <br>
4512  
4513  
4514  
4515  
4516  
4517  
4518  
4519 &nbsp;&nbsp;&nbsp; <br>
4520  
4521  
4522  
4523  
4524  
4525  
4526  
4527 <span style="font-weight: bold;"><a name="enchant"></a>enchant</span><br>
4528  
4529  
4530  
4531  
4532  
4533  
4534  
4535 * Rophy casts Scope (+7 Damage) on&nbsp;Mondain's Precisely
4536 Calibrated Boomstick.<br>
4537  
4538  
4539  
4540  
4541  
4542  
4543  
4544 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source</span>
4545 : "Rophy"<br>
4546  
4547  
4548  
4549  
4550  
4551  
4552  
4553 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
4554 : "Mondain"<br>
4555  
4556  
4557  
4558  
4559  
4560  
4561  
4562 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
4563 : "Scope (+7 Damage)"<br>
4564  
4565  
4566  
4567  
4568  
4569  
4570  
4571 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">item</span>
4572 : "Precisely Calibrated Boomstick"<br>
4573  
4574  
4575  
4576  
4577  
4578  
4579  
4580 &nbsp;&nbsp;&nbsp; <br>
4581  
4582  
4583  
4584  
4585  
4586  
4587  
4588 <br>
4589  
4590  
4591  
4592  
4593  
4594  
4595  
4596 <br>
4597  
4598  
4599  
4600  
4601  
4602  
4603  
4604 <a href="documentation.html#type">Back to list</a><br>
4605  
4606  
4607  
4608  
4609  
4610  
4611  
4612 &nbsp;&nbsp;&nbsp; <br>
4613  
4614  
4615  
4616  
4617  
4618  
4619  
4620 <span style="font-weight: bold;"><a name="fail"></a>fail</span><br>
4621  
4622  
4623  
4624  
4625  
4626  
4627  
4628 <span style="font-style: italic;">* You fail to cast
4629 Immune Charm/Fear/Polymorph: Item is not ready yet.</span><br>
4630  
4631  
4632  
4633  
4634  
4635  
4636  
4637 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source</span>
4638 : ParserLib_SELF<br>
4639  
4640  
4641  
4642  
4643  
4644  
4645  
4646 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
4647 : "<span style="font-style: italic;">Immune
4648 Charm/Fear/Polymorph"</span><br>
4649  
4650  
4651  
4652  
4653  
4654  
4655  
4656 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">reason</span>
4657 : "<span style="font-style: italic;">Item is not ready yet"</span><br>
4658  
4659  
4660  
4661  
4662  
4663  
4664  
4665 <br>
4666  
4667  
4668  
4669  
4670  
4671  
4672  
4673 <br>
4674  
4675  
4676  
4677  
4678  
4679  
4680  
4681 <br>
4682  
4683  
4684  
4685  
4686  
4687  
4688  
4689 <a href="documentation.html#type">Back to list</a><br>
4690  
4691  
4692  
4693  
4694  
4695  
4696  
4697 <br>
4698  
4699  
4700  
4701  
4702  
4703  
4704  
4705 <span style="font-weight: bold;"><a name="interrupt"></a>interrupt</span><br>
4706  
4707  
4708  
4709  
4710  
4711  
4712  
4713 <span style="font-style: italic;">* Bigpotato interrupts
4714 Scholomance Neophyte's Shadow Bolt.</span><br>
4715  
4716  
4717  
4718  
4719  
4720  
4721  
4722 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source</span>
4723 : "Bigpotato"<br>
4724  
4725  
4726  
4727  
4728  
4729  
4730  
4731 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span>
4732 : "Scholomance Neophyte"<br>
4733  
4734  
4735  
4736  
4737  
4738  
4739  
4740 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span>
4741 : "Shadow Bolt"<br>
4742  
4743  
4744  
4745  
4746  
4747  
4748  
4749 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
4750  
4751  
4752  
4753  
4754  
4755  
4756  
4757 <br>
4758  
4759  
4760  
4761  
4762  
4763  
4764  
4765 <br>
4766  
4767  
4768  
4769  
4770  
4771  
4772  
4773 <a href="documentation.html#type">Back to list</a><br>
4774  
4775  
4776  
4777  
4778  
4779  
4780  
4781 <br>
4782  
4783  
4784  
4785  
4786  
4787  
4788  
4789 <br>
4790  
4791  
4792  
4793  
4794  
4795  
4796  
4797 <span style="font-weight: bold;"><a name="create"></a>create</span><br>
4798  
4799  
4800  
4801  
4802  
4803  
4804  
4805 <span style="font-style: italic;">* You create Blinding
4806 Powder.</span><br>
4807  
4808  
4809  
4810  
4811  
4812  
4813  
4814 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source</span>
4815 : ParserLib_SELF<br>
4816  
4817  
4818  
4819  
4820  
4821  
4822  
4823 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">item</span>
4824 : "Blinding Powder"<br>
4825  
4826  
4827  
4828  
4829  
4830  
4831  
4832 <br>
4833  
4834  
4835  
4836  
4837  
4838  
4839  
4840 <a href="documentation.html#type">Back to list</a><br>
4841  
4842  
4843 <br>
4844  
4845  
4846 <br>
4847  
4848  
4849 <span style="font-weight: bold;"><a name="durability"></a>durability</span><br>
4850  
4851  
4852 <span style="font-style: italic;">* Ragnaros casts Melt Weapon on Dragonx: Bloodlord's Defender damaged.</span><br>
4853  
4854  
4855 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">source</span> : "Ragnaros"<br>
4856  
4857  
4858 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">skill</span> : "Melt Weapon"<br>
4859  
4860  
4861 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">victim</span> : ParserLib_SELF<br>
4862  
4863  
4864 &nbsp;&nbsp;&nbsp; @<span style="font-weight: bold;">item</span>: "Bloodlord's Defender"<br>
4865  
4866  
4867 &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">isAllItems</span> :
4868 false &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
4869 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
4870 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;- if isAllItems true then
4871 item will be nil<br>
4872  
4873  
4874 <a href="documentation.html#type">Back to list</a><br>
4875  
4876  
4877 <br>
4878  
4879  
4880  
4881  
4882  
4883  
4884  
4885 </body>
4886 </html>