version 1.42 | | version 1.43 |
---|
| | |
/* | | /* |
* static char *rcsid_time_c = | | * static char *rcsid_time_c = |
* "$Id: time.c,v 1.42 2002/08/14 04:31:07 mwedel Exp $"; | | * "$Id: time.c,v 1.43 2002/11/26 08:48:20 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
static void stop_arrow (object *op) | | static void stop_arrow (object *op) |
{ | | { |
#ifdef PLUGINS | | |
/* GROS: Handle for plugin stop event */ | | /* GROS: Handle for plugin stop event */ |
if(op->event_hook[EVENT_STOP] != NULL) | | if(op->event_hook[EVENT_STOP] != NULL) |
{ | | { |
| | |
if (findPlugin(op->event_plugin[k])>=0) | | if (findPlugin(op->event_plugin[k])>=0) |
((PlugList[findPlugin(op->event_plugin[k])].eventfunc) (&CFP)); | | ((PlugList[findPlugin(op->event_plugin[k])].eventfunc) (&CFP)); |
} | | } |
#endif | | |
if (op->inv) { | | if (op->inv) { |
object *payload = op->inv; | | object *payload = op->inv; |
remove_ob (payload); | | remove_ob (payload); |
| | |
if(EXIT_PATH(head)) { | | if(EXIT_PATH(head)) { |
if(op->above->type==PLAYER) | | if(op->above->type==PLAYER) |
{ | | { |
#ifdef PLUGINS | | |
/* GROS: Handle for plugin TRIGGER event */ | | /* GROS: Handle for plugin TRIGGER event */ |
if(op->event_hook[EVENT_TRIGGER] != NULL) | | if(op->event_hook[EVENT_TRIGGER] != NULL) |
{ | | { |
| | |
} | | } |
if (rtn_script!=0) return; | | if (rtn_script!=0) return; |
} | | } |
#endif | | |
enter_exit(op->above, head); | | enter_exit(op->above, head); |
} | | } |
else | | else |
| | |
free_object(head); | | free_object(head); |
return; | | return; |
} | | } |
#ifdef PLUGINS | | |
/* GROS: Handle for plugin TRIGGER event */ | | /* GROS: Handle for plugin TRIGGER event */ |
if(op->event_hook[EVENT_TRIGGER] != NULL) | | if(op->event_hook[EVENT_TRIGGER] != NULL) |
{ | | { |
| | |
} | | } |
if (rtn_script!=0) return; | | if (rtn_script!=0) return; |
} | | } |
#endif | | |
transfer_ob(tmp,EXIT_X(head),EXIT_Y(head),0,head); | | transfer_ob(tmp,EXIT_X(head),EXIT_Y(head),0,head); |
} | | } |
else | | else |
{ | | { |
/* Random teleporter */ | | /* Random teleporter */ |
#ifdef PLUGINS | | |
/* GROS: Handle for plugin TRIGGER event */ | | /* GROS: Handle for plugin TRIGGER event */ |
if(op->event_hook[EVENT_TRIGGER] != NULL) | | if(op->event_hook[EVENT_TRIGGER] != NULL) |
{ | | { |
| | |
} | | } |
if (rtn_script!=0) return; | | if (rtn_script!=0) return; |
} | | } |
#endif | | |
teleport(head, TELEPORTER, tmp); | | teleport(head, TELEPORTER, tmp); |
} | | } |
} | | } |
| | |
if(op->above!=NULL) { | | if(op->above!=NULL) { |
if(EXIT_PATH(op)) { | | if(EXIT_PATH(op)) { |
if(op->above->type==PLAYER) { | | if(op->above->type==PLAYER) { |
#ifdef PLUGINS | | |
/* GROS: Handle for plugin TRIGGER event */ | | /* GROS: Handle for plugin TRIGGER event */ |
if(op->event_hook[EVENT_TRIGGER] != NULL) | | if(op->event_hook[EVENT_TRIGGER] != NULL) |
{ | | { |
| | |
} | | } |
if (rtn_script!=0) return; | | if (rtn_script!=0) return; |
} | | } |
#endif | | |
player=op->above; | | player=op->above; |
for(walk=op->inv;walk!=NULL;walk=walk->below) | | for(walk=op->inv;walk!=NULL;walk=walk->below) |
apply_changes_to_player(player,walk); | | apply_changes_to_player(player,walk); |
| | |
} | | } |
return 1; | | return 1; |
} | | } |
#ifdef PLUGINS | | |
/* GROS: Handle for plugin time event */ | | /* GROS: Handle for plugin time event */ |
if(op->event_hook[EVENT_TIME] != NULL) | | if(op->event_hook[EVENT_TIME] != NULL) |
{ | | { |
| | |
if (findPlugin(op->event_plugin[k])>=0) | | if (findPlugin(op->event_plugin[k])>=0) |
((PlugList[findPlugin(op->event_plugin[k])].eventfunc) (&CFP)); | | ((PlugList[findPlugin(op->event_plugin[k])].eventfunc) (&CFP)); |
} | | } |
#endif | | |
switch(op->type) { | | switch(op->type) { |
case ROD: | | case ROD: |
case HORN: | | case HORN: |