*L201 [ MUMPS-EVENTS ] access room-event, result (me, who, type, vnum) *secure* 37 "when a god is trying to access smth" instance of the one who tries to access room | mob | obj relating vnum (result = 1 allows access; 0 does not) account global-event, override (me, aid) *secure* 57 "just before someone gets into the account menu" account id Note: * overriding closes the connection * if you set the variable , it is output when overriding arrive room-event (me, who) 49 "just when a moveto mob has arrived at its destination" mob instance which moved home | dest assist room-event, override (me, who, friend, vict) 0 "just before the assist and its echos are executed" instance of the one who wants to assist the instance which you want to assist the opponent attack room-event, override (me, who, vict) 1 "just after 'hit' or 'kill'" actor instance oponent instance combat_hit, normal, spell, izkill combat_hit: you receive this throughout the fight normal: other than above spell: a spell which just went through wizkill: when trying to wizkill someone bash room-event, override (me,mode,[dest],[success]) 53 "trigger on bash" actor 1: just issued, before player is checked command 2: just before bash is started target char instance 3: bash done, but not bashed yet target char instance 0: bash will fail 1: target moved 2: bash will succeed 4: bash recovers its senses ( and are set to "" in other cases) cast room-event, override (me, who, spell, [vict|obj|target]) 51 "just before a spell is started to cast" 0: after 'spell-exist, spell-known' checks, before target checks 1: after target checks, just before cast-message caster target string (mode 0) target victim instance or "" (mode 1) target object instance or "" (mode 1) spell index number casted room-event [override] (me, who, spell, result, mana, [vict|obj]) 55 "just after the user message, if a spell was canceled or failed. If the spell succeeded (result == 1), the event will be called just before the spell-function is dealt, but after mana is taken." caster target victim instance or "" target object instance or "" spell index number mana loss of caster 1, spell was success [overridable] 0, spell backfired -1, failed (peaceful) -2, failed (nomagic) -3, failed (water) -4, failed (canceled by user) -5, failed (canceled by attacking spell) close room-event, override (me, who, what, mode, exit) 2 "triggers just before something is closed" actor door|object door: name of door object: instance number of object the direction where there door is, else "" comload simple-room-event, override, mute (mode, ..) 45 "just before any action is done" the zone-command (M, F, O, P, G, E, S, D) if M F , * E , *, (pos might not be always set) G , * O P , * S *, D , (action: 0=open, 1=close, 2=lock; dir: 0=N, 1=E, 2=S, 3=W, 4=U, 5=D) Variables marked with (*) are instance numbers and not v-numbers. command room-event, override (me, who, cmd, keyword) 3 "triggers just when a user command is to be executed. For security reasons, the 'change' command is an exception and won't trigger this event." actor instance complete command text (as typed by the user) command keyword exactly like in interpreter.c create mob-event / obj-event / simple-room-event (me, metype) 4 "just when an object/mobile was created" mob | obj | room relating instance/ room vnum NOTE: object/mobile are _not_ yet in a room yet NOTE: a room gets the 'create' event each zone reset cmderr room-event, override (me, who, cmd) 52 "just before the Huh?! is output, after entering an invalid command" actor command entered damage room-event, override (me, who, vict, damage) 50 "just before the hitpoints of vict are decreased, if damage > 0" hitter victim amount of damage dofollow room-event, override (me, who, leader, mode) 63 "just someone starts or stops to follow another char" actor - the one who wants to start/stop to follow leader instance start | stop death room-event, override (me, who, killer) 27 "On Death, just before death-cry and corpse-creation" instance of the soon-to-be-dead ! instance of the killer deathg global-event, override (me, who, killer) -> only triggers for PLAYERS 67 "On Death, just after the 'death'-event" instance of the soon-to-be-dead ! instance of the killer denagage room-event, override (me, who) 56 "just before a character is disengaged from a fight" character drink room-event, override, mute (me, who, what, cmd) 33 "Just before a drink is performed" instance of the actor instance of the object drink|sip drop room-event, override, mute (me, who, what, where) 5 "Just before an item is dropped (does not work for coins)" instance of the actor instance of the object room vnum eat room-event, override, mute (me, who, what, cmd) 32 "Just before an item is eaten" instance of the actor instance of the object eat|taste enter room-event, mute (me, who, dir, from) 6 "Just after a mobile was moved into the new room" instance of actor * dir num from where he came (reversed to the move-dir) * -1 for /go and /at * "enter" or "leave" room vnum of the 'old' room equip room_event, override, mute (me, who, what, where) 7 "just before char changes position" instance of actor instance of the object wear-position number exam room_event, override (me, who, what, mode) 8 "just before something is examined" what is examined (char | obj) the actor who issues the examine the destination instance extract mob_event or obj_event (me, override) 35 "Just before an object or a mobile is going to be extracted from the game lists." This event could be used to remove locks, just before the instance gets deleted (e.g. immortal-eaten, purged or just killed during xp) Any extract events on mobiles can be overridden. For objects only those extract events which trigger when 'eating' or 'purging' can be overridden. Also keep in mind that overriding such events might be VERY BAD and have a good reason to do so. For instance securing boards. * OVERRIDE IS DISABLED * flee room-event, override (me, who, dir) 22 "just before a flee is attempted" instance of the actor direction (0 - 5 => N, E, S, W, U, D) follow room-event, override, mute (me, who, dir, leader) 31 "Just before a follower gets moved to the next room" instance of the follower direction (0 - 5 => N, E, S, W, U, D) instance of the leading char the number of the follower get room-event, override (me, who, what, from) 44 "just before the object is taken" instance of the actor instance of the object which is about to be taken instance of the container or empty give room-event, override (me, who, vict, what) 29 "just before the object is moved (does not work for coins)" instance of actor instance of receiver instance of object or "coins" (if = "coins") gohome mob-event (me) 66 "just before the mobile decides to move back to the original room, after walking somewhere with walkto()" goto room-event, override (me, who, dest) 68 "just before the /go of an immortal is executed" instance of the immortal destination room hear mob-event, override (me, who, text) 10 "Just before a say is echo'ed" instance of talker the text say|yell hour global-event (me, hour) 11 "at hour change" number of the daytime hour hunting room-event, override (me, who, vict) 58 "just before starts to be hunting " character instance of hunter character instance, which will be hunted start => will start hunting found => found victim and is about to hit return => decided to stop the hunt and move home (*) (*) not overridable! lastmove room-event (me, dir, who, num, from, leader, mode) 34 "triggers for a solo char or the last char following a leader, just after the room description was output" direction# the char went | enter | leave instance number of the 'last' char his number in the following line (1 if solo) old room number leader instance move | flee link global-event (me, who, mode) 47 "just before link-loss or reconnect" instance of the one who lost link or reconnected lost|recon lock room-event, override (me, who, what, mode, exit) 12 "triggers just before something is locked" actor door|object door: name of door object: instance number of object the direction where there door is, else "" look room-event, override (me, who, dest) 30 "just before the look echo and after blind/dark checks" actor instance give argument (might be "") menucmd global-event, override (me, aid, state, cmd) *secure* 59 "triggers on command done in the account menu" account index current state typed command Setting will output an echo to the user. move room-event, override, mute (me, who, dir) 13 "When the instance is just about to move. At this time C already did checks for climb, moves, exits.." instance pointer of the actor direction (0 - 5 => N, E, S, W, U, D) enter|leave NOTE: only the leader gets that event. The followers get the follow event moveroll mob-event, override (me) *DISABLED* 42 "triggers when a non-sentinel mobile gets a move-roll" open room-event, override (me, who, what, mode, exit) 14 "triggers just before something is opened" actor door|object door: name of door object: instance number of object the direction where there door is, else "" position room-event (me, who, old, pos, (by)) 41 "Just before the output is sent to the user" the instance who changes position old position ( stand | sit | rest | sleep ) new position ( stand | sit | rest | sleep ) only set when awaked (old == "sleep", pos == "sit") pour room-event, override (me, who, what, into) 62 "just before a successfull pour command" the char instance of the one who issues the command container instance a) pour-into container instance b) "out" put room-event, override (me, who, what, cont) 46 "Just before the item is put into a container" the actor the item instance the container object instance quit global-event, ~override (me, who) 16 "When a player issued a quit and just before the message '... has left the game' is output." instance pointer of actor quit | /rent | link Note: only overridable for == 'quit' range room-event (me, ident) 54 "triggered by $$evrange^%zone()" unique identifier submitted in $$evrange^%zone() remove room-event, override, mute (me, who, what, where) 17 "just before a part of equipment is removed" instance of the actor instance of the object equipment position return global-event, override (me, who, room) 38 "just after the '... has returned.' echo" instance number of the player who returned from idle room to which he returned social room-event, override (me, who, vict, social) 28 "when someone does a social, just before the MUD shows the echos" instance pointer of the social actor instance pointer of target. 0, if not targetted social-string just like in interpreter.c (whine, smile,...) start global-event (me, who) 18 "When a player connected. Just before the instance is moved to a room and before the '... has entered the game.' message" instance pointer of the actor timestamp of the last logon (seconds since 1970-Jan-01) tell mob-event, room-event, override (me, from, text) 19 "triggers just before the tells goes through" (mob-event triggers to the target mob, while room event triggers in the room where the tell is sent from) teller instance receiver text :) NOTE: the mobile will only receive the event if it the variable 'npc_receive_tells' is set. time global-event (me, time) 20 "triggers on daytime change"