Changeset 300
- Timestamp:
- 09/25/03 04:20:24 (8 years ago)
- Location:
- trunk/plugins/en
- Files:
-
- 2 edited
-
action_complex_attack.tcl (modified) (1 diff)
-
action_complex_hands.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/action_complex_attack.tcl
r201 r300 1 1 ## bMotion plugin: attack 2 # 3 # $Id$ 2 4 3 # 5 4 5 # $Id$ 6 7 # 8 9 10 6 11 ############################################################################### 12 7 13 # This is a bMotion plugin 14 8 15 # Copyright (C) James Michael Seward 2000-2002 16 9 17 # 18 10 19 # This program is covered by the GPL, please refer the to LICENCE file in the 20 11 21 # distribution; further information can be found in the headers of the scripts 22 12 23 # in the modules directory. 24 13 25 ############################################################################### 26 27 14 28 15 29 bMotion_plugin_add_action_complex "attacks" "^attacks (.+) with " 100 bMotion_plugin_complex_action_attack "en" 16 30 31 32 17 33 proc bMotion_plugin_complex_action_attack { nick host handle channel text } { 18 if {![bMotion_interbot_me_next $channel]} { return 0 } 34 35 if {![bMotion_interbot_me_next $channel]} { return 1 } 36 19 37 set damage [rand 1500] 38 20 39 regexp -nocase "^attacks (.+) with (.+)" $text matches who item 40 21 41 set who [bMotionGetRealName $who] 42 22 43 regexp -nocase "(an?|the|some|his|her) (.+)" $item matches blah item 44 23 45 bMotion_plugins_settings_set "complex:attacks" "who" "" "" $who 46 24 47 bMotion_plugins_settings_set "complex:attacks" "item" "" "" $item 48 25 49 bMotion_plugins_settings_set "complex:attacks" "score" "" "" $damage 26 bMotionDoAction $channel $nick "%VAR{attack_responses}" 50 51 bMotionDoAction $channel $nick "%VAR{attack_responses}" 52 return 1 27 53 } 28 54 55 56 29 57 set attack_responses { 58 30 59 "%% attacks %SETTING{complex:attacks:who:_:_} with '%SETTING{complex:attacks:item:_:_}' for %SETTING{complex:attacks:score:_:_} damage." 60 31 61 "%SETTING{complex:attacks:who:_:_} takes %SETTING{complex:attacks:score:_:_} damage from %OWNER{%%} '%SETTING{complex:attacks:item:_:_}'" 62 32 63 "%SETTING{complex:attacks:who:_:_} is tremendously damaged by the %SETTING{complex:attacks:item:_:_} and takes %SETTING{complex:attacks:score:_:_} damage!" 64 33 65 "MISS!" 66 34 67 "%SETTING{complex:attacks:who:_:_} is immune to '%SETTING{complex:attacks:item:_:_}'" 68 35 69 "%SETTING{complex:attacks:who:_:_} absorbs the damage and gains %SETTING{complex:attacks:score:_:_} HP!" 70 36 71 } 37 72 bMotion_abstract_register "attack_responses" -
trunk/plugins/en/action_complex_hands.tcl
r201 r300 1 1 ## bMotion complex plugin: hands 2 2 3 # 4 3 5 # $Id$ 6 4 7 # 5 8 9 10 6 11 ############################################################################### 12 7 13 # This is a bMotion plugin 14 8 15 # Copyright (C) James Michael Seward 2000-2002 16 9 17 # 18 10 19 # This program is covered by the GPL, please refer the to LICENCE file in the 20 11 21 # distribution; further information can be found in the headers of the scripts 22 12 23 # in the modules directory. 24 13 25 ############################################################################### 14 26 27 28 15 29 bMotion_plugin_add_action_complex "hands" "(hands|gives) %botnicks " 100 bMotion_plugin_complex_action_hands "en" 16 30 31 32 17 33 proc bMotion_plugin_complex_action_hands { nick host handle channel text } { 34 18 35 global botnicks 36 19 37 if {[regexp -nocase "(hands|gives) $botnicks (a|an|the|some)? (.+)" $text bling act bot preposition item]} { 38 20 39 bMotion_putloglev d * "bMotion: Got handed !$item! by $nick in $channel" 21 40 41 42 22 43 #Coffee 44 23 45 if [regexp -nocase "(cup of )?coffee" $item] { 46 24 47 bMotion_plugin_complex_action_hands_coffee $channel $nick 25 return 1 48 49 return 1 50 26 51 } 27 52 53 54 28 55 #hug 56 29 57 if [regexp -nocase "^hug" $item] { 58 30 59 if [bMotion_plugin_check_depend "action_complex:hugs"] { 60 31 61 bMotion_plugin_complex_action_hugs $nick $host $handle $channel "" 62 32 63 return 1 64 33 65 } 66 34 67 } 35 68 69 70 36 71 # Tissues 72 37 73 if [regexp -nocase "((box of)|a)? tissues?" $item] { 74 38 75 bMotion_plugin_complex_action_hands_tissues $channel $nick 39 return 1 76 77 return 1 78 40 79 } 41 80 81 82 42 83 # Body paint 84 43 85 if [regexp -nocase "(chocolate|strawberry) (sauce|bodypaint|body paint|body-paint)" $item] { 86 44 87 bMotion_plugin_complex_action_hands_bodypaint $channel $nick 45 return 1 88 89 return 1 90 46 91 } 47 92 93 94 48 95 # pie 96 49 97 if [regexp -nocase "pie" $item] { 98 50 99 bMotion_plugin_complex_action_hands_pie $channel $nick 51 return 1 100 101 return 1 102 52 103 } 53 104 105 106 54 107 #spliff 108 55 109 if [regexp -nocase "(spliff|joint|bong|pipe|dope|gear|pot)" $item] { 110 56 111 bMotion_plugin_complex_action_hands_spliff $channel $nick $handle 57 return 1 112 113 return 1 114 58 115 } 59 116 117 118 60 119 #dildo 120 61 121 if [regexp -nocase "(dildo|vibrator|cucumber|banana|flute)" $item bling item2] { 122 62 123 if [bMotion_plugin_check_depend "action_complex:hands_dildo"] { 124 63 125 bMotion_plugin_complex_action_hands_dildo $channel $nick $item $item2 126 64 127 } 65 return 1 128 129 return 1 130 66 131 } 132 67 133 #end of "hands dildo" 68 134 135 136 69 137 #catch everything else 138 70 139 bMotionDoAction $channel $item "%VAR{hand_generic}" 140 71 141 142 72 143 #we'll add it to our random things list for this session too 144 73 145 bMotion_abstract_add "sillyThings" $item 146 return 1 74 147 } 148 75 149 #end of "hands" handler 76 } 150 151 } 152 153 154 77 155 78 156 79 157 # supporting functions 80 158 159 160 81 161 ##### COFFEE 162 82 163 proc bMotion_plugin_complex_action_hands_coffee { channel nick } { 164 83 165 global got 166 84 167 set coffeeNick [bMotion_plugins_settings_get "complexaction:hands" "coffee_nick" "" ""] 168 85 169 bMotion_putloglev 1 * "bMotion: ...and it's a cup of coffee... mmmmmmm" 170 86 171 if {$coffeeNick != ""} { 172 87 173 bMotion_putloglev 1 * "bMotion: But I already have one :/" 174 88 175 bMotionDoAction $channel $nick "%%: thanks anyway, but I'm already drinking the one $coffeeNick gave me :)" 176 89 177 return 1 90 } 178 179 } 180 91 181 driftFriendship $nick 2 182 92 183 bMotionDoAction $channel "" "%VAR{thanks}" 184 93 185 bMotionDoAction $channel "" "mmmmm..." 186 94 187 bMotionDoAction $channel "" "/drinks the coffee %VAR{smiles}" 188 95 189 bMotion_plugins_settings_set "complexaction:hands" "coffee_nick" "" "" $nick 190 96 191 bMotion_plugins_settings_set "complexaction:hands" "coffee_channel" "" "" $channel 192 97 193 utimer 45 { bMotion_plugin_complex_action_hands_finishcoffee } 194 98 195 return 1 99 } 196 197 } 198 199 100 200 101 201 proc bMotion_plugin_complex_action_hands_finishcoffee { } { 202 102 203 global mood 204 103 205 set coffeeChannel [bMotion_plugins_settings_get "complexaction:hands" "coffee_channel" "" ""] 206 104 207 bMotionDoAction $coffeeChannel "" "/finishes the coffee" 208 105 209 bMotionDoAction $coffeeChannel "" "mmmm... thanks :)" 210 106 211 incr mood(happy) 1 212 107 213 bMotion_plugins_settings_set "complexaction:hands" "coffee_nick" "" "" "" 108 } 214 215 } 216 217 218 109 219 110 220 111 221 ##### TISSUES 112 222 223 224 113 225 proc bMotion_plugin_complex_action_hands_tissues { channel nick } { 226 114 227 bMotion_putloglev 1 * "bMotion: ...and it's a box of tissues! ~rarr~" 228 115 229 global mood 230 116 231 if {$mood(horny) < -3} { 232 117 233 bMotion_putloglev 1 * "bMotion: But i'm not in the mood" 234 118 235 bMotionDoAction $channel "" "$nick: thanks, but i'm not in the mood for that right now :(" 119 } 236 237 } 238 239 120 240 121 241 set tissuesNick [bMotion_plugins_settings_get "complexaction:hands" "tissues_nick" "" ""] 242 122 243 if {$tissuesNick != ""} { 244 123 245 bMotion_putloglev 1 * "bMotion: But I already have one :/" 246 124 247 bMotionDoAction $channel "" "$nick: thanks anyway, but I'm already using the tissues $tissuesNick gave me :) *uNF*" 125 } 248 249 } 250 251 126 252 127 253 driftFriendship $nick 2 254 128 255 bMotionDoAction $channel "" "%VAR{thanks}" 256 129 257 bMotionDoAction $channel $nick "/locks %himherself in the bathroom" 258 130 259 bMotion_plugins_settings_set "complexaction:hands" "tissues_nick" "" "" $nick 260 131 261 bMotion_plugins_settings_set "complexaction:hands" "tissues_channel" "" "" $channel 132 262 263 264 133 265 #TODO: this mood stuff is OLD 266 134 267 incr mood(lonely) -1 268 135 269 incr mood(horny) -1 270 136 271 incr mood(happy) 2 137 272 273 274 138 275 utimer 90 bMotion_plugin_complex_action_hands_finishtissues 139 } 276 277 } 278 279 140 280 141 281 proc bMotion_plugin_complex_action_hands_finishtissues { } { 282 142 283 global mood 284 143 285 set tissuesChannel [bMotion_plugins_settings_get "complexaction:hands" "tissues_channel" "" ""] 286 144 287 bMotionDoAction $tissuesChannel "" "uNF *squeaky* *boing* *squirt*" 288 145 289 bMotionDoAction $tissuesChannel "" "/finishes using the tissues" 290 146 291 bMotion_plugins_settings_set "complexaction:hands" "tissues_nick" "" "" "" 147 292 293 294 148 295 #TODO: this mood stuff is OLD 296 149 297 incr mood(happy) 1 298 150 299 incr mood(horny) -2 151 } 300 301 } 302 303 304 152 305 153 306 154 307 ###### BODY PAINT 155 308 309 310 156 311 proc bMotion_plugin_complex_action_hands_bodypaint { channel nick } { 312 157 313 bMotion_putloglev 1 * "bMotion: Ooh ooh body paint!" 314 158 315 if {![bMotionLike $nick]} { 316 159 317 frightened $nick $channel 318 160 319 return 0 161 } 320 321 } 322 323 162 324 163 325 global bMotionInfo 326 164 327 driftFriendship $nick 2 328 165 329 if {$bMotionInfo(gender) == "male"} { 330 166 331 bMotionDoAction $channel $nick "/applies it to %%" 332 167 333 bMotionDoAction $channel $nick "/licks it off" 334 168 335 return 0 169 } 336 337 } 338 339 170 340 171 341 #female 342 172 343 set bodyPaintNick [bMotion_plugins_settings_get "complexaction:hands" "paint_nick" "" ""] 173 344 345 346 174 347 if {$bodyPaintNick != ""} { 348 175 349 bMotion_putloglev 1 * "bMotion: But I'm already wearing some" 350 176 351 bMotionDoAction $channel $bodyPaintNick "Thanks $nick but I'm already waiting for %% to lick some body paint off me" 352 177 353 return 0 178 } 354 355 } 356 357 179 358 180 359 bMotionDoAction $channel $nick "/smears it over herself and waits for %% to come and lick it off" 360 181 361 bMotion_plugins_settings_set "complexaction:hands" "paint_nick" "" "" $nick 362 182 363 bMotion_plugins_settings_set "complexaction:hands" "paint_channel" "" "" $channel 364 183 365 utimer 60 bMotion_plugin_complex_action_hands_finishPaint 366 184 367 return 0 185 } 368 369 } 370 371 186 372 187 373 proc bMotion_plugin_complex_action_hands_finishPaint { } { 374 188 375 set bodyPaintNick [bMotion_plugins_settings_get "complexaction:hands" "paint_nick" "" ""] 376 189 377 set bodyPaintChannel [bMotion_plugins_settings_get "complexaction:hands" "paint_channel" "" ""] 378 190 379 bMotionDoAction $bodyPaintChannel $bodyPaintNick "/gets bored of waiting for %% and licks the body paint off by herself instead" 380 191 381 bMotion_plugins_settings_set "complexaction:hands" "paint_nick" "" "" "" 382 192 383 bMotionGetHorny 384 193 385 bMotionGetLonely 194 } 386 387 } 388 389 195 390 196 391 ##### PIE 197 392 393 394 198 395 proc bMotion_plugin_complex_action_hands_pie { channel nick } { 396 199 397 driftFriendship $nick 1 398 200 399 bMotion_putloglev 1 * "bMotion: ah ha, pie :D" 400 201 401 bMotionGetHappy 402 202 403 bMotionGetUnLonely 404 203 405 bMotionDoAction $channel $nick ":D%|thanks %%%|/eats pie" 406 204 407 return 0 205 } 408 409 } 410 411 206 412 207 413 ##### SPLIFF 208 414 415 416 209 417 proc bMotion_plugin_complex_action_hands_spliff { channel nick handle } { 418 210 419 global mood 211 420 421 212 422 driftFriendship $nick 1 423 213 424 bMotion_putloglev 1 * "bMotion: ... and it's mind-altering drugs! WOOHOO!" 425 214 426 bMotion_putloglev 1 * "bMotion: ...... wheeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...." 427 215 428 incr mood(stoned) 2 429 216 430 checkmood $nick $channel 431 217 432 bMotionDoAction $channel $nick "%VAR{smokes}" 433 218 434 return 0 219 } 435 436 } 437 438 220 439 221 440 # abstracts 441 222 442 set hand_generic { 443 223 444 "%VAR{thanks}" 445 224 446 "%REPEAT{3:6:m} %%" 447 225 448 "Do I want this?" 449 226 450 "Just what I've always wanted %VAR{smiles}" 227 } 451 452 }
Note: See TracChangeset
for help on using the changeset viewer.
