Home

[Package Index | Mudlib Index | Effect Index]

File /d/guilds/wizards/Ankh-Morpork/lecturehalls/lecthall.c

the info field is the same as in the prepare command. left, and learned are those without or with, TMs, respectively.

Inherits

This class inherits the following classes /std/room.c

Includes

This class includes the following files /include/tasks.h

Method index

  • boot_person(object)
    this boots people off the tm list @param person the person to be booted
  • check_audience(object)
    verifies valid audience members
  • clean_up(int)
  • do_adjourn(object *, string, string *, mixed *)
  • do_lecture(object *, string, string, mixed *, string)
    this begins a player lecture.
  • dochek(object)
    this checks for a tm peiodicaly during lecture @param ob the thing being checked
  • event_enter(object, string, object)
    takes care of greetings, and the audience rota.
  • event_exit(object, string, object)
    handles missing persons, and escapees.
  • event_person_say(object, string, string, string)
    this controls the amount of spam, keeping it above a certain minimum
  • finish_lecture()
    this is called at the natural end of a lecture to hand out tms where appropriate.
  • impchek(object)
    tells if someone earned thier tm already or is otherwise ineligible to tm.
  • init_lecture(object)
    This initiates an NPC lecture.
  • lecture_in_progress()
  • maintain_lecture()
    this keeps the lecture going, it handles things like lowered gp, random messages, and a bunch of checks on everything but the kitchen sink
  • nd_lecture()
    This ends any lecture instantly!

Public Functions

These are functions that everyone can access.

.

    boot_person
    void boot_person(object person)
    

    this boots people off the tm list @param person the person to be booted
      check_audience
      int check_audience(object ob)
      

      verifies valid audience members
        clean_up
        int clean_up(int parent)
        
          do_adjourn
          int do_adjourn(object * obs,
                         string sdir,
                         string * indir,
                         mixed * args)
          
            do_lecture
            int do_lecture(object * indirect_obs,
                           string dir_match,
                           string indir_match,
                           mixed * args,
                           string pattern)
            

            this begins a player lecture.
              dochek
              int dochek(object ob)
              

              this checks for a tm peiodicaly during lecture @param ob the thing being checked
                event_enter
                void event_enter(object player,
                                 string mess,
                                 object fromt)
                

                takes care of greetings, and the audience rota.
                  event_exit
                  void event_exit(object player,
                                  string mess,
                                  object fromt)
                  

                  handles missing persons, and escapees.
                    event_person_say
                    void event_person_say(object ob,
                                          string start,
                                          string mess,
                                          string lang)
                    

                    this controls the amount of spam, keeping it above a certain minimum
                      finish_lecture
                      void finish_lecture()
                      

                      this is called at the natural end of a lecture to hand out tms where appropriate. should only be called at the natural end of a lecture.
                        impchek
                        int impchek(object player)
                        

                        tells if someone earned thier tm already or is otherwise ineligible to tm. @param player the player being checked
                          init_lecture
                          int init_lecture(object teacher)
                          

                          This initiates an NPC lecture. @param teacher the npc lecturer. to enable NPC driven lectures and NPC lecturers :) list of properties used by this object : NPC lecture - an npc is currently lecturing. lecture_in_progress - a lecture is in progress. no lecture souls - a flag to turn off default souls. hoarse - added to lecturer at end of talk. lecture notes - an array containing lecture info. has lecture quirks - a flag on npc lecturers, indicates that the NPC has do_quirk() defined. ***************************************************
                            lecture_in_progress
                            int lecture_in_progress()
                            
                              maintain_lecture
                              void maintain_lecture()
                              

                              this keeps the lecture going, it handles things like lowered gp, random messages, and a bunch of checks on everything but the kitchen sink
                                nd_lecture
                                void nd_lecture()
                                

                                This ends any lecture instantly!
Valid HTML 4.01 Transitional
Valid CSS!
Read More