Toilet2.dcgi (917B)
1 #!/bin/sh 2 3 . config 4 echo Toilet2 > $savegame/room 5 . functions 6 . maps 7 8 gotkey="no" 9 [ -f "$inventory/.elvesarehere" ] && gotkey="yes" 10 11 case "$gotkey" in 12 yes) map_toilet2_unlocked ;; 13 *) map_toilet2_locked ;; 14 esac 15 16 _msg "## TOILET 2 (T2)" 17 18 case "$gotkey" in 19 yes) 20 if ! [ -f "$inventory/.sawratintoilet2" ]; then 21 _msg "You see a rat disappear into the shower drain!" 22 printf 1 > "$inventory/.sawratintoilet2" 23 fi 24 25 if [ -f "$inventory/.sawratintoilet2" ]; then 26 _msg "You have to catch this rat you saw." 27 fi 28 29 _msg "You are in one of the toilets. 30 31 You see a toilet, sink, and a shower." 32 33 _msg "On the top of the toilet you see" 34 list_items_to take "$toilet2" 35 36 _msg "[1|Inspect toilet|$path/t2-toilet.dcgi|server|port] 37 [1|Inspect shower|$path/t2-shower.dcgi|server|port]" 38 ;; 39 *) 40 _msg "The toilet is taken." 41 ;; 42 esac 43 44 _msg "[1|Check inventory|$path/inventory.dcgi|server|port]" 45 46 navigation