TinTin++ Configs for DiscworldMUD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0 KiB

6 years ago
6 years ago
6 years ago
6 years ago
  1. #NOP == Prompt Update Function ==
  2. #nop colors
  3. #function {tpa_col}
  4. {
  5. #if {"%0" == "invisible"}
  6. #return <178>;
  7. #if {"%0" == "dull red"}
  8. #return <018>;
  9. #if {"%0" == "bright red"}
  10. #return <118>;
  11. #if {"%0" == "wobbling orange"}
  12. #return <fca><188>;
  13. #if {"%0" == "flickering yellow"}
  14. #return <138>;
  15. #return;
  16. }
  17. #ALIAS {update_prompt} {
  18. #nop XP monitor details;
  19. xp_monitor;
  20. #format {prompt_xp} {%Gxp in %s (%Gk/h)} {$session_xp} {$uptime[display]} {$xprate};
  21. #nop TPA monitor details;
  22. #var {prompt_tpa} {};
  23. #if {$tpa_status == 1} {
  24. #format {prompt_tpa} {%cTPA%c} {@tpa_col{$tpa_color}} {<098>};
  25. };
  26. #nop Quota monitor details;
  27. #var {prompt_quota} {};
  28. #if {&quota} {
  29. #format {prompt_quota} {Quota: %s} {@quota_time_left{}};
  30. };
  31. #format {prompt_line} {%+5s %+40s %+15s} {$prompt_tpa} {$prompt_xp} {$prompt_quota};
  32. #showme {$prompt_line} {-1};
  33. }