TinTin++ setup for Aardwolf MUD
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.

41 lines
1.1 KiB

  1. #CLASS ticking kill
  2. #CLASS ticking open
  3. #event {IAC SB GMCP comm.tick IAC SE}
  4. {
  5. #var ticks 30;
  6. #tic TICKING
  7. {
  8. #math thirst {$GMCP[CHAR][STATUS][thirst] / 10 };
  9. #math hunger {$GMCP[CHAR][STATUS][hunger] / 10 };
  10. #if {$ticks > 0}
  11. {
  12. #math ticks {$ticks - 1}
  13. };
  14. #if {$ticks < 10}
  15. {
  16. #show {Tick:<139> $ticks <099>QUEST: <139>$quest_timer<099> Exp:<139> $GMCP[CHAR][STATUS][tnl] \t <099>T/H:[ $thirst / $hunger] Align:$align} 3
  17. }
  18. {
  19. #show {Tick:<139> $ticks <099>QUEST: <139>$quest_timer<099> Exp:<139> $GMCP[CHAR][STATUS][tnl] \t <099>T/H:[ $thirst / $hunger ] Align:$align} 3
  20. }
  21. } {1}
  22. }
  23. #ACTION {^There are %d minutes remaining until you can go on another quest.$}
  24. {
  25. #IF {"%1"!="$quest_timer"}
  26. {
  27. #var quest_timer %1;
  28. #untic quest_timer;
  29. #tic quest_timer
  30. {
  31. #math quest_timer {$quest_timer - 1};
  32. #if $quest_timer==0 {#untic quest_timer;#var quest_timer <129>READY<099>};
  33. } {60}
  34. }
  35. }
  36. #CLASS ticking close