Manual:DIL Manual/stop fighting()

From DikuMUD Wiki
Jump to navigation Jump to search


Function:  stop_fighting( ch: unitptr, vict : unitptr ) ;
  ch
         unitptr - person you are stoping the fighting for
  vict
         unitptr - person you are removing from the fighting or null for everyone
This function can be used to cancel combat in a room or with two people.
The following example copied to a player will stop any fight the player is in.
Example:

---~---~---~---~---~---~---~---~---
dilbegin stop_combat();
code
{
stop_fighting(self,null);
quit;
}
dilend
---~---~---~---~---~---~---~---~---


---~---~---~---~---~---~---~---~---