Advertisement
Bukz

Mini-MPL Script Concept

Mar 6th, 2011
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.67 KB | None | 0 0
  1. alias stats_names [Frags: Gibs: Headshots: Slashes: Splats: Ratio: TKs: Flags: Deaths: Suicides:]
  2. alias guns [Knife: Pistol: Carbine: Shotgun: SMG: Sniper: AR: " " " " Akimbo:]
  3. alias accuracy_dump [
  4.   loop adl 10 [
  5.     if (|| (= $adl 7) (= $adl 8)) [] [
  6.       alias shots_landed (div (at (pstat_weap (findcn $curname)) (+ (* $adl 2) 1)) (at $weapons_dmg $adl))
  7.       echo (at $guns $adl) (curaccuracy (findcn $curname) $adl)
  8.       echo (concatword $shots_landed / (at (pstat_weap (findcn $curname)) (* $adl 2)))
  9.       echo ""
  10.     ]
  11.   ]
  12. ]
  13. addcheck_si [accuracy_dump]
  14. alias stats_aliases_2 [fragged_stat gibbed_stat headshot_stat slashed_stat splattered_stat ratio_stat tk_stat flag_stat death_stat suicide_stat]
  15. alias make_stats_aliases [
  16.   loop msal 10 [alias (at $stats_aliases_2 $msal) 0]
  17. ]
  18. make_stats_aliases
  19. addcheck_msa [make_stats_aliases]
  20. alias kills [fragged gibbed headshot slashed splattered]
  21. alias collect_stats [
  22.   loop csl 5 [
  23.     if_conline_has (format "you %1" (at $kills $csl)) but_not "teammate" [
  24.       if (= $csl 0) [] [
  25.         += (at $stats_aliases_2 $csl) 1
  26.       ]
  27.     ] []
  28.     if_conline_has (format "you %1" (at $kills $csl)) and_also "teammate" [
  29.       += tk_stat 1
  30.     ] []
  31.   ]
  32.   if_conline_has "you suicided!" [if (strcmp (at $conline 0) "you") [+= suicide_stat 1] []] []
  33.   alias ratio_stat (curratio (findcn $curname))
  34.   alias flag_stat (at (pstat_score (findcn $curname)) 0)
  35.   alias fragged_stat (at (pstat_score (findcn $curname)) 1)
  36.   alias death_stat (at (pstat_score (findcn $curname)) 2)
  37. ]
  38. add2conloop [collect_stats]
  39. alias dumpstats [
  40.   accuracy_dump
  41.   loop dsl 10 [echo (at $stats_names $dsl) (getalias (at $stats_aliases_2 $dsl))]
  42. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement