Changeset 891 for trunk/plugins/en/complex_love.tcl
- Timestamp:
- 02/17/08 18:54:27 (4 years ago)
- File:
-
- 1 edited
-
trunk/plugins/en/complex_love.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/complex_love.tcl
r770 r891 14 14 ############################################################################### 15 15 16 bMotion_plugin_add_complex "love" "(i )?(think )?(you are|you're )?(love|luv|wov|wuv|luvly|lovely)( you)? %botnicks" 100 bMotion_plugin_complex_love "en" 16 bMotion_plugin_add_complex "love" "i (love|luv|wov|wuv|luvly|lovely) (you,? %botnicks|%botnicks)" 100 bMotion_plugin_complex_love "en" 17 bMotion_plugin_add_complex "love2" "i think (you are|you're) (wuvly|luvly|lovely),? %botnicks" 100 bMotion_plugin_complex_love "en" 18 bMotion_plugin_add_complex "love3" "i think %botnicks is (wuvly|luvly|lovely)" 100 bMotion_plugin_complex_love "en" 17 19 18 20 proc bMotion_plugin_complex_love { nick host handle channel text } { 19 21 global mood 20 22 21 if {![bMotionLike $nick $host]} { 22 frightened $nick $channel 23 return 1 24 } 23 # people we don't like can be told where to shove it 24 # but we'll let them get a bit of friendship as a result 25 if {![bMotionIsFriend $nick]} { 26 bMotionDoAction $channel $nick "%VAR{love_failed}" 27 driftFriendship $nick 4 28 return 1 29 } 25 30 26 driftFriendship $nick 4 31 driftFriendship $nick 8 32 # people of the wrong gender get the platonic treatment 33 if {![bMotionLike $nick $host]} { 34 bMotionDoAction $channel $nick "%VAR{love_like}" 35 return 1 36 } 27 37 28 if {$mood(happy) < 15 && $mood(lonely) < 5} {29 bMotionDoAction $channel [bMotionGetRealName $nick $host] "%VAR{loveresponses}"30 bMotionGetHappy31 bMotionGetUnLonely38 if {$mood(happy) < 15 && $mood(lonely) < 5} { 39 bMotionDoAction $channel [bMotionGetRealName $nick $host] "%VAR{loveresponses}" 40 bMotionGetHappy 41 bMotionGetUnLonely 32 42 bMotion_plugins_settings_set "system" "lastdonefor" $channel "" $nick 33 return 134 } else {35 bMotionDoAction $channel "" "hehe, want to go out on a date someplace? :)"36 set mood(happy) [expr $mood(happy) - 10]43 return 1 44 } else { 45 bMotionDoAction $channel "" "hehe, want to go out on a date someplace? :)" 46 set mood(happy) [expr $mood(happy) - 10] 37 47 bMotion_plugins_settings_set "system" "lastdonefor" $channel "" $nick 38 return 139 }48 return 1 49 } 40 50 } 51 52 bMotion_abstract_register "love_like" { 53 "i love you %%, as a friend" 54 "ok" 55 "/<3 %% as a friend" 56 "%VAR{smiles}" 57 } 58 59 bMotion_abstract_register "love_failed" { 60 "get away from me" 61 "/pushes %% away" 62 "shame, because i think you're a smelly %VAR{bodypart}" 63 "go away" 64 "shove off you %VAR{PROM}" 65 } 66
Note: See TracChangeset
for help on using the changeset viewer.
