Changeset 892 for trunk

Show
Ignore:
Timestamp:
02/20/08 12:58:35 (11 months ago)
Author:
james
Message:

hands/friendship stuff

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/output.tcl

    r891 r892  
    746746                } 
    747747 
    748  
    749748                #get their handle 
    750749                set handle [nick2hand $user $channel] 
     
    830829                        } 
    831830                        "friend" { 
    832                                 if {[getFriendshipHandle $user] >= 50} { 
     831                                if {[getFriendshipHandle $handle] >= 50} { 
    833832                                        bMotion_putloglev 4 * "ruser:  accept: friend" 
    834833                                        lappend acceptable $handle 
     
    837836                        } 
    838837                        "enemy" { 
    839                                 if {[getFriendshipHandle $user] < 50} { 
     838                                if {[getFriendshipHandle $handle] < 50} { 
    840839                                        bMotion_putloglev 4 * "ruser:  accept: enemy" 
    841840                                        lappend acceptable $handle 
  • trunk/plugins/en/action_complex_hands.tcl

    r891 r892  
    7373 
    7474                #catch everything else 
     75 
     76                #check to see if it's a nick 
     77                # we won't check handles as people will probably just tab-complete nicks 
     78                if [onchan $item $channel] { 
     79                        if [bMotionIsFriend $item] { 
     80                                if [bMotionLike $item] { 
     81                                        # we REALLY like them 
     82                                        bMotionDoAction $channel $nick "%VAR{hand_sex_person}" 
     83                                        driftFriendship $nick 5 
     84                                        return 1 
     85                                } 
     86                                bMotionDoAction $channel $nick "%VAR{hand_like_person}" 
     87                                driftFriendship $nick 3 
     88                                return 1 
     89                        } else { 
     90                                bMotionDoAction $channel $nick "%VAR{hand_dislike_person}" 
     91                                driftFriendship $nick -3 
     92                                return 1 
     93                        } 
     94                } 
     95 
     96                # not a nick, let's carry on with the generic stuff 
    7597                bMotion_abstract_add "sillyThings" $item 
    7698 
     
    257279 
    258280bMotion_abstract_register "hand_like" { 
    259   "mmm %%" 
     281  "%REPEAT{3:10:m} %%" 
    260282  "/plays with %hisher %%" 
    261283  "%VAR{smiles}%|/shares with %2" 
    262284  "%VAR{smiles}%|/shares with %ruser{friend}" 
    263285  "i like these" 
     286        "ooh! %VAR{smiles}" 
     287        "my favourite!" 
     288        "%2++" 
     289        "%VAR{thanks}" 
     290        "just what i've always wanted %VAR{smiles}" 
    264291} 
    265292 
     
    269296  "/throws it at %ruser{enemy}" 
    270297  "/jams it up %hisher arse%|that's what i think of that." 
    271 } 
    272  
     298        "/jams it up %2%|do not want" 
     299        "do not want" 
     300        "/wipes %hisher %VAR{bodypart} with it" 
     301        "erk not %%" 
     302        "thanks very much%|except I hate these" 
     303        "do i want this?" 
     304} 
     305 
     306bMotion_abstract_register "hand_sex_person" { 
     307        "oof" 
     308        "%REPEAT{3:8:m}" 
     309        "%VAR{hand_like_person}" 
     310} 
     311 
     312bMotion_abstract_register "hand_like_person" { 
     313        "%VAR{smiles}" 
     314        "i like %%%|they are my friend %VAR{smiles}" 
     315} 
     316 
     317bMotion_abstract_register "hand_dislike_person" { 
     318        "ugh" 
     319        "meh" 
     320        "do not want" 
     321        "do not like" 
     322        "i don't like %%" 
     323        "get it off me %VAR{unsmiles}" 
     324        "%VAR{unsmiles}" 
     325        "%% is not my friend %VAR{unsmiles}" 
     326        "but %% is nasty to me %VAR{unsmiles}" 
     327} 
  • trunk/plugins/en/action_complex_smacks.tcl

    r826 r892  
    2424    bMotionGetSad 
    2525    bMotionGetUnLonely 
    26     driftFriendship $nick -2 
     26    driftFriendship $nick -5 
    2727    bMotionDoAction $channel $nick "%VAR{slapped}" 
    2828    return 1