Manual:DIL Manual killedit - Seifert69/DikuMUD3 GitHub Wiki
Function: killedit ; This function is used to kill the editor on a PC if it needs to stop editing before the PC is done editing. An example of when this is needed is when a player is killed while editing or is transfered away from a place where he was editing. You can let them finish but it may be wierd for a person to finish posting in one room while in another. Example ---~---~---~---~---~---~---~---~---
dilbegin editextra (arg:string);
code
{
interrupt (SFB_DEAD,self==activator,int_quit);
beginedit (self);
wait(SFB_EDIT,self==activator) ;
temp := textformat(argument);
addextra (self.outside.extra ,{"graphitee"},temp);
quit;
:int_quit:
killedit;
quit;
}
dilend
---~---~---~---~---~---~---~---~---
---~---~---~---~---~---~---~---~---