take.dcgi (982B)
1 #!/bin/sh 2 3 . config 4 . functions 5 6 case "$(basename $2)" in 7 Plate_of_Bolognese_Sauce) 8 #rm -f "$toilet1/.notyet" 9 rm -f "$hipster/obese/.takingashit" 10 ;; 11 12 Keychain_with_a_key) 13 if [ -f "$bedroom1/.notyet" ]; then 14 _msg '"Umm, that is not something you should be taking..." 15 16 The girls do not let you take the keys.' 17 18 _msg "[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]" 19 return 20 fi 21 _msg "The girls smile at you and let you take it." 22 ;; 23 24 Water|Vomit) 25 _msg "You use the plastic bag and fill it up with $(basename $2). 26 [1|Exit|$path/$(cat $savegame/room).dcgi|server|port]" 27 mv "$inventory/Plastic_bag" "$inventory/Plastic_bag_of_$(basename $2)" 28 return 29 ;; 30 31 shower|toilet) 32 _msg "The thing is built into the house. You don't manage to pick it up." 33 _msg "[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]" 34 return 35 ;; 36 esac 37 38 take_item "$2" 39 40 cat <<EOM 41 42 You took the $(basename $2). 43 44 [1|Exit|$path/$(cat $savegame/room).dcgi|server|port] 45 EOM