Changeset 891 for trunk/plugins/en/action_complex_hands.tcl
- Timestamp:
- 02/17/08 18:54:27 (4 years ago)
- File:
-
- 1 edited
-
trunk/plugins/en/action_complex_hands.tcl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/action_complex_hands.tcl
r794 r891 17 17 18 18 proc bMotion_plugin_complex_action_hands { nick host handle channel text } { 19 global botnicks19 global botnicks 20 20 if {[regexp -nocase "(hands|gives) $botnicks ((a|an|the|some) )?(.+)" $text bling act bot moo preposition item]} { 21 bMotion_putloglev d * "bMotion: Got handed !$item! by $nick in $channel"22 23 #Coffee21 bMotion_putloglev d * "bMotion: Got handed !$item! by $nick in $channel" 22 23 #Coffee 24 24 if [regexp -nocase "(cup of )?coffee" $item] { 25 bMotion_plugin_complex_action_hands_coffee $channel $nick 26 return 1 27 } 28 29 #hug 30 if [regexp -nocase "^hug" $item] { 31 if [bMotion_plugin_check_depend "action_complex:hugs"] { 32 bMotion_plugin_complex_action_hugs $nick $host $handle $channel "" 33 return 1 34 } 35 } 36 37 # Tissues 38 if [regexp -nocase "((box of)|a)? tissues?" $item] { 39 bMotion_plugin_complex_action_hands_tissues $channel $nick 40 return 1 41 } 42 43 # Body paint 44 if [regexp -nocase "(chocolate|strawberry) (sauce|bodypaint|body paint|body-paint)" $item] { 45 bMotion_plugin_complex_action_hands_bodypaint $channel $nick 46 return 1 47 } 48 49 # pie 50 if [regexp -nocase {\mpie\M} $item] { 51 bMotion_plugin_complex_action_hands_pie $channel $nick 52 return 1 53 } 54 55 #spliff 56 if [regexp -nocase "(spliff|joint|bong|pipe|dope|gear|pot)" $item] { 57 bMotion_plugin_complex_action_hands_spliff $channel $nick $handle 58 return 1 59 } 60 61 #dildo 62 if [regexp -nocase "(dildo|vibrator|cucumber|banana|flute)" $item bling item2] { 63 if [bMotion_plugin_check_depend "action_complex:hands_dildo"] { 64 bMotion_plugin_complex_action_hands_dildo $channel $nick $item $item2 65 } 66 return 1 67 } 68 #end of "hands dildo" 69 70 #catch everything else 71 bMotionDoAction $channel $item "%VAR{hand_generic}" 72 73 #we'll add it to our random things list for this session too 74 bMotion_abstract_add "sillyThings" $item 75 return 1 76 } 77 #end of "hands" handler 25 driftFriendship $nick 5 26 bMotion_plugin_complex_action_hands_coffee $channel $nick 27 return 1 28 } 29 30 #hug 31 if [regexp -nocase "^hug" $item] { 32 if [bMotion_plugin_check_depend "action_complex:hugs"] { 33 driftFriendship $nick 5 34 bMotion_plugin_complex_action_hugs $nick $host $handle $channel "" 35 return 1 36 } 37 } 38 39 # Tissues 40 if [regexp -nocase "((box of)|a)? tissues?" $item] { 41 bMotion_plugin_complex_action_hands_tissues $channel $nick 42 return 1 43 } 44 45 # Body paint 46 if [regexp -nocase "(chocolate|strawberry) (sauce|bodypaint|body paint|body-paint)" $item] { 47 bMotion_plugin_complex_action_hands_bodypaint $channel $nick 48 return 1 49 } 50 51 # pie 52 if [regexp -nocase {\mpie\M} $item] { 53 driftFriendship $nick 5 54 bMotion_plugin_complex_action_hands_pie $channel $nick 55 return 1 56 } 57 58 #spliff 59 if [regexp -nocase "(spliff|joint|bong|pipe|dope|gear|pot)" $item] { 60 driftFriendship $nick 3 61 bMotion_plugin_complex_action_hands_spliff $channel $nick $handle 62 return 1 63 } 64 65 #dildo 66 if [regexp -nocase "(dildo|vibrator|cucumber|banana|flute)" $item bling item2] { 67 if [bMotion_plugin_check_depend "action_complex:hands_dildo"] { 68 bMotion_plugin_complex_action_hands_dildo $channel $nick $item $item2 69 } 70 return 1 71 } 72 #end of "hands dildo" 73 74 #catch everything else 75 bMotion_abstract_add "sillyThings" $item 76 77 set original_item $item 78 set item [string tolower [bMotion_strip_article $item]] 79 regsub "e?s$" $item "" item 80 81 # check if we already know if we don't like this 82 if [bMotion_abstract_contains "_bmotion_dislike" $item] { 83 bMotionDoAction $channel $original_item "%VAR{hand_dislike}" $nick 84 return 1 85 } 86 87 if [bMotion_abstract_contains "_bmotion_like" $item] { 88 bMotionDoAction $channel $original_item "%VAR{hand_like}" $nick 89 return 1 90 } 91 92 if {[rand 100] > 80} { 93 bMotionDoAction $channel $original_item "%VAR{hand_dislike}" $nick 94 bMotion_abstract_add "_bmotion_dislike" $item 95 } else { 96 bMotionDoAction $channel $original_item "%VAR{hand_like}" $nick 97 bMotion_abstract_add "_bmotion_like" $item 98 } 99 return 1 100 } 101 #end of "hands" handler 78 102 } 79 103 … … 83 107 ##### COFFEE 84 108 proc bMotion_plugin_complex_action_hands_coffee { channel nick } { 85 global got86 set coffeeNick [bMotion_plugins_settings_get "complexaction:hands" "coffee_nick""" ""]87 bMotion_putloglev 1 * "bMotion: ...and it's a cup of coffee... mmmmmmm"88 if {$coffeeNick != ""} {89 bMotion_putloglev 1 * "bMotion: But I already have one :/"90 bMotionDoAction $channel $nick "%%: thanks anyway, but I'm already drinking the one $coffeeNick gave me :)"91 return 192 }93 driftFriendship $nick 294 bMotionDoAction $channel "" "%VAR{thanks}"95 bMotionDoAction $channel "" "mmmmm..."96 bMotionDoAction $channel "" "/drinks the coffee %VAR{smiles}"97 bMotion_plugins_settings_set "complexaction:hands" "coffee_nick" "" "" $nick98 bMotion_plugins_settings_set "complexaction:hands" "coffee_channel" "" "" $channel99 utimer 45 { bMotion_plugin_complex_action_hands_finishcoffee }100 return 1109 global got 110 set coffeeNick [bMotion_plugins_settings_get "complexaction:hands" "coffee_nick" "" ""] 111 bMotion_putloglev 1 * "bMotion: ...and it's a cup of coffee... mmmmmmm" 112 if {$coffeeNick != ""} { 113 bMotion_putloglev 1 * "bMotion: But I already have one :/" 114 bMotionDoAction $channel $nick "%%: thanks anyway, but I'm already drinking the one $coffeeNick gave me :)" 115 return 1 116 } 117 driftFriendship $nick 2 118 bMotionDoAction $channel "" "%VAR{thanks}" 119 bMotionDoAction $channel "" "mmmmm..." 120 bMotionDoAction $channel "" "/drinks the coffee %VAR{smiles}" 121 bMotion_plugins_settings_set "complexaction:hands" "coffee_nick" "" "" $nick 122 bMotion_plugins_settings_set "complexaction:hands" "coffee_channel" "" "" $channel 123 utimer 45 { bMotion_plugin_complex_action_hands_finishcoffee } 124 return 1 101 125 } 102 126 103 127 proc bMotion_plugin_complex_action_hands_finishcoffee { } { 104 global mood105 set coffeeChannel [bMotion_plugins_settings_get "complexaction:hands" "coffee_channel" "" ""]128 global mood 129 set coffeeChannel [bMotion_plugins_settings_get "complexaction:hands" "coffee_channel" "" ""] 106 130 bMotionDoAction $coffeeChannel "" "/finishes the coffee" 107 131 bMotionDoAction $coffeeChannel "" "mmmm... thanks :)" 108 incr mood(happy) 1132 incr mood(happy) 1 109 133 bMotion_plugins_settings_set "complexaction:hands" "coffee_nick" "" "" "" 110 134 } … … 114 138 115 139 proc bMotion_plugin_complex_action_hands_tissues { channel nick } { 116 bMotion_putloglev 1 * "bMotion: ...and it's a box of tissues! ~rarr~"117 global mood118 if {$mood(horny) < -3} {119 bMotion_putloglev 1 * "bMotion: But i'm not in the mood"120 bMotionDoAction $channel "" "$nick: thanks, but i'm not in the mood for that right now :("121 }122 123 set tissuesNick [bMotion_plugins_settings_get "complexaction:hands" "tissues_nick" "" ""]124 if {$tissuesNick != ""} {125 bMotion_putloglev 1 * "bMotion: But I already have one :/"126 bMotionDoAction $channel "" "$nick: thanks anyway, but I'm already using the tissues $tissuesNick gave me :) *uNF*"127 }128 129 driftFriendship $nick 2130 bMotionDoAction $channel "" "%VAR{thanks}"131 bMotionDoAction $channel $nick "/locks %himherself in the bathroom"132 bMotion_plugins_settings_set "complexaction:hands" "tissues_nick" "" "" $nick133 bMotion_plugins_settings_set "complexaction:hands" "tissues_channel" "" "" $channel134 135 #TODO: this mood stuff is OLD136 incr mood(lonely) -1137 incr mood(horny) -1138 incr mood(happy) 2139 140 utimer 90 bMotion_plugin_complex_action_hands_finishtissues140 bMotion_putloglev 1 * "bMotion: ...and it's a box of tissues! ~rarr~" 141 global mood 142 if {$mood(horny) < -3} { 143 bMotion_putloglev 1 * "bMotion: But i'm not in the mood" 144 bMotionDoAction $channel "" "$nick: thanks, but i'm not in the mood for that right now :(" 145 } 146 147 set tissuesNick [bMotion_plugins_settings_get "complexaction:hands" "tissues_nick" "" ""] 148 if {$tissuesNick != ""} { 149 bMotion_putloglev 1 * "bMotion: But I already have one :/" 150 bMotionDoAction $channel "" "$nick: thanks anyway, but I'm already using the tissues $tissuesNick gave me :) *uNF*" 151 } 152 153 driftFriendship $nick 2 154 bMotionDoAction $channel "" "%VAR{thanks}" 155 bMotionDoAction $channel $nick "/locks %himherself in the bathroom" 156 bMotion_plugins_settings_set "complexaction:hands" "tissues_nick" "" "" $nick 157 bMotion_plugins_settings_set "complexaction:hands" "tissues_channel" "" "" $channel 158 159 #TODO: this mood stuff is OLD 160 incr mood(lonely) -1 161 incr mood(horny) -1 162 incr mood(happy) 2 163 164 utimer 90 bMotion_plugin_complex_action_hands_finishtissues 141 165 } 142 166 143 167 proc bMotion_plugin_complex_action_hands_finishtissues { } { 144 global mood145 set tissuesChannel [bMotion_plugins_settings_get "complexaction:hands" "tissues_channel" "" ""]146 bMotionDoAction $tissuesChannel "" "uNF *squeaky* *boing* *squirt*"147 bMotionDoAction $tissuesChannel "" "/finishes using the tissues"148 bMotion_plugins_settings_set "complexaction:hands" "tissues_nick" "" "" ""149 150 #TODO: this mood stuff is OLD151 incr mood(happy) 1152 incr mood(horny) -2168 global mood 169 set tissuesChannel [bMotion_plugins_settings_get "complexaction:hands" "tissues_channel" "" ""] 170 bMotionDoAction $tissuesChannel "" "uNF *squeaky* *boing* *squirt*" 171 bMotionDoAction $tissuesChannel "" "/finishes using the tissues" 172 bMotion_plugins_settings_set "complexaction:hands" "tissues_nick" "" "" "" 173 174 #TODO: this mood stuff is OLD 175 incr mood(happy) 1 176 incr mood(horny) -2 153 177 } 154 178 … … 157 181 158 182 proc bMotion_plugin_complex_action_hands_bodypaint { channel nick } { 159 bMotion_putloglev 1 * "bMotion: Ooh ooh body paint!"160 if {![bMotionLike $nick]} {161 frightened $nick $channel162 return 0163 }164 165 global bMotionInfo166 driftFriendship $nick 2167 if {$bMotionInfo(gender) == "male"} {168 bMotionDoAction $channel $nick "/applies it to %%"169 bMotionDoAction $channel $nick "/licks it off"170 return 0171 }172 173 #female174 set bodyPaintNick [bMotion_plugins_settings_get "complexaction:hands" "paint_nick" "" ""]175 176 if {$bodyPaintNick != ""} {177 bMotion_putloglev 1 * "bMotion: But I'm already wearing some"178 bMotionDoAction $channel $bodyPaintNick "Thanks $nick but I'm already waiting for %% to lick some body paint off me"179 return 0180 }181 182 bMotionDoAction $channel $nick "/smears it over herself and waits for %% to come and lick it off"183 bMotion_plugins_settings_set "complexaction:hands" "paint_nick" "" "" $nick184 bMotion_plugins_settings_set "complexaction:hands" "paint_channel" "" "" $channel185 utimer 60 bMotion_plugin_complex_action_hands_finishPaint186 return 0183 bMotion_putloglev 1 * "bMotion: Ooh ooh body paint!" 184 if {![bMotionLike $nick]} { 185 frightened $nick $channel 186 return 0 187 } 188 189 global bMotionInfo 190 driftFriendship $nick 2 191 if {$bMotionInfo(gender) == "male"} { 192 bMotionDoAction $channel $nick "/applies it to %%" 193 bMotionDoAction $channel $nick "/licks it off" 194 return 0 195 } 196 197 #female 198 set bodyPaintNick [bMotion_plugins_settings_get "complexaction:hands" "paint_nick" "" ""] 199 200 if {$bodyPaintNick != ""} { 201 bMotion_putloglev 1 * "bMotion: But I'm already wearing some" 202 bMotionDoAction $channel $bodyPaintNick "Thanks $nick but I'm already waiting for %% to lick some body paint off me" 203 return 0 204 } 205 206 bMotionDoAction $channel $nick "/smears it over herself and waits for %% to come and lick it off" 207 bMotion_plugins_settings_set "complexaction:hands" "paint_nick" "" "" $nick 208 bMotion_plugins_settings_set "complexaction:hands" "paint_channel" "" "" $channel 209 utimer 60 bMotion_plugin_complex_action_hands_finishPaint 210 return 0 187 211 } 188 212 189 213 proc bMotion_plugin_complex_action_hands_finishPaint { } { 190 set bodyPaintNick [bMotion_plugins_settings_get "complexaction:hands" "paint_nick" "" ""]191 set bodyPaintChannel [bMotion_plugins_settings_get "complexaction:hands" "paint_channel" "" ""]192 bMotionDoAction $bodyPaintChannel $bodyPaintNick "/gets bored of waiting for %% and licks the body paint off by herself instead"193 bMotion_plugins_settings_set "complexaction:hands" "paint_nick" "" "" ""194 bMotionGetHorny195 bMotionGetLonely214 set bodyPaintNick [bMotion_plugins_settings_get "complexaction:hands" "paint_nick" "" ""] 215 set bodyPaintChannel [bMotion_plugins_settings_get "complexaction:hands" "paint_channel" "" ""] 216 bMotionDoAction $bodyPaintChannel $bodyPaintNick "/gets bored of waiting for %% and licks the body paint off by herself instead" 217 bMotion_plugins_settings_set "complexaction:hands" "paint_nick" "" "" "" 218 bMotionGetHorny 219 bMotionGetLonely 196 220 } 197 221 … … 199 223 200 224 proc bMotion_plugin_complex_action_hands_pie { channel nick } { 201 driftFriendship $nick 1202 bMotion_putloglev 1 * "bMotion: ah ha, pie :D"203 bMotionGetHappy204 bMotionGetUnLonely205 bMotionDoAction $channel $nick ":D%|thanks %%%|/eats pie"206 return 0225 driftFriendship $nick 1 226 bMotion_putloglev 1 * "bMotion: ah ha, pie :D" 227 bMotionGetHappy 228 bMotionGetUnLonely 229 bMotionDoAction $channel $nick ":D%|thanks %%%|/eats pie" 230 return 0 207 231 } 208 232 … … 210 234 211 235 proc bMotion_plugin_complex_action_hands_spliff { channel nick handle } { 212 global mood213 214 driftFriendship $nick 1215 bMotion_putloglev 1 * "bMotion: ... and it's mind-altering drugs! WOOHOO!"216 bMotion_putloglev 1 * "bMotion: ...... wheeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...."217 incr mood(stoned) 2218 checkmood $nick $channel219 bMotionDoAction $channel $nick "%VAR{smokes}"220 return 0236 global mood 237 238 driftFriendship $nick 1 239 bMotion_putloglev 1 * "bMotion: ... and it's mind-altering drugs! WOOHOO!" 240 bMotion_putloglev 1 * "bMotion: ...... wheeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...." 241 incr mood(stoned) 2 242 checkmood $nick $channel 243 bMotionDoAction $channel $nick "%VAR{smokes}" 244 return 0 221 245 } 222 246 223 247 # abstracts 224 bMotion_abstract_register "hand_generic" 225 bMotion_abstract_batchadd "hand_generic" { 226 "%VAR{thanks}" 227 "%REPEAT{3:6:m} %%" 228 "Do I want this?" 229 "Just what I've always wanted %VAR{smiles}" 230 } 248 bMotion_abstract_register "hand_generic" { 249 "%VAR{thanks}" 250 "%REPEAT{3:6:m} %%" 251 "Do I want this?" 252 "Just what I've always wanted %VAR{smiles}" 253 } 254 255 bMotion_abstract_register "_bmotion_like" 256 bMotion_abstract_register "_bmotion_dislike" 257 258 bMotion_abstract_register "hand_like" { 259 "mmm %%" 260 "/plays with %hisher %%" 261 "%VAR{smiles}%|/shares with %2" 262 "%VAR{smiles}%|/shares with %ruser{friend}" 263 "i like these" 264 } 265 266 bMotion_abstract_register "hand_dislike" { 267 "oh no %%" 268 "/throws it in the bin" 269 "/throws it at %ruser{enemy}" 270 "/jams it up %hisher arse%|that's what i think of that." 271 } 272
Note: See TracChangeset
for help on using the changeset viewer.
