Players.c
pdirt/drv/src/Players/Players.c · 811 B
From the archive pDirt-1_tar.gz
Download the archive « Back to the archive contents
EVENT_HANDLER(Player_Marty)
{ char *elf_name = "Ryllin";
static int mob= -1;
elf_pet(elf_name,event,False,&mob);
if (param_s.ret != 1)
return;
if (event == E_ONMISC && param_s.misc == VERB_PUNT)
{ sendf(param_s.plx,"Marty looks at you and blocks your kick.\n");
sendf(param_s.plx,"Marty Holds your foot in a lock and punts you from here to kingdom come'\n");
setup_globals(param_s.pl);
param_s.misc = param_s.pl;
param_s.pl = param_s.plx;
param_s.plx = param_s.misc;
}
Default_Handler(event);
}
EVENT_HANDLER(Default_Handler)
{
switch (event) {
case E_STORE:
break;
case E_EXIT:
#ifdef LOCMIN_CATHEDRAL
used_fountain[mynum] = 0;
#endif
break;
case E_ONINIT:
break;
case E_USER:
break;
}
}