Difference between revisions of "Manual:DIL Manual/stop fighting()"

From DikuMUD Wiki
Jump to navigation Jump to search
(XML import)
 
(No difference)

Latest revision as of 13:08, 27 May 2020


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
---~---~---~---~---~---~---~---~---


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