source: trunk/modules/events_support.tcl @ 1143

Revision 937, 2.7 KB checked in by james, 4 years ago (diff)

tidy up header comments

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1# bMotion - event supporting functions
2#
3
4# bMotion - an 'AI' TCL script for eggdrops
5# Copyright (C) James Michael Seward 2000-2008
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful, but
13# WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15# General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20###############################################################################
21
22proc finishdildo {} {
23        global got mood
24
25        set style $got(dildo,style)
26
27        if {$style == "flute"} {
28                cum $got(dildo,channel) $got(dildo,nick)
29                bMotionDoAction $got(dildo,channel) $got(dildo,nick) "%VAR{dildoFluteFinishes}"
30
31                set got(dildo,nick) ""
32                set got(dildo,count) 0
33                incr mood(happy) 1
34                incr mood(horny) -2
35                return 0
36        }
37
38        if {$style == "f_swap"} {
39                bMotionDoAction $got(dildo,channel) $got(dildo,dildo) "%VAR{dildoFemaleFemaleSwap}"
40
41                set got(dildo,style) "normal"
42                utimer 70 finishdildo
43                return 0
44        }
45
46        if {$style == "m_swap"} {
47                bMotionDoAction $got(dildo,channel) $got(dildo,dildo) "%VAR{dildoMaleMaleSwap}"
48
49                set got(dildo,style) "normal"
50                utimer 70 finishdildo
51                return 0
52        }
53
54        cum $got(dildo,channel) $got(dildo,nick)
55        bMotionDoAction $got(dildo,channel) $got(dildo,dildo) "%VAR{dildoFinishes}" $got(dildo,nick)
56        set got(dildo,nick) ""
57        set got(dildo,count) 0
58        incr mood(happy) 1
59        incr mood(horny) -2
60}
61
62
63proc cum {channel nick} {
64        global bMotionInfo
65        global mood
66        if {![bMotionIsFriend $nick]} {
67                bMotionDoAction $channel $nick "%VAR{blehs} I can't cum thinking about someone I don't like"
68                return 0
69        }
70        if {$bMotionInfo(gender) == "male"} {
71                bMotionDoAction $channel $nick "/ejaculates over %%"
72                incr mood(horny) -3
73                incr mood(happy) 2
74                return 0
75        }
76        bMotionDoAction $channel $nick "/makes herself cum thinking about %%"
77        incr mood(horny) -3
78        incr mood(happy) 2
79        return 0
80}
81
82
83proc frightened {nick channel} {
84        global mood
85        bMotionDoAction $channel $nick "%VAR{frightens} %VAR{unsmiles}"
86        incr mood(lonely) -1
87        incr mood(happy) -1
88}
89
90
91proc checkPokemon {which channel} {
92        global bMotionInfo
93        if {$bMotionInfo(pokemon) != [string tolower $which]} {
94                bMotionDoAction $channel $which "/morphs into %%!"
95                set bMotionInfo(pokemon) [string tolower $which]
96        }
97}
98
99
100bMotion_putloglev d * "bMotion: event support module loaded"
Note: See TracBrowser for help on using the repository browser.