Manual:DIL Manual/stop fighting()

From DikuMUD Wiki
< Manual:DIL Manual
Revision as of 13:08, 27 May 2020 by Nove (talk | contribs) (XML import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
---~---~---~---~---~---~---~---~---


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