SphereCommunity
Wrestling .stun command - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Requests (/Forum-Script-Requests)
+--- Thread: Wrestling .stun command (/Thread-Wrestling-stun-command)



Wrestling .stun command - Snaigel - 02-03-2017 01:04 AM

Any simple script to use wrestling for doing stuns?? like with a command .stun


RE: Wrestling .stun command - xwerswoodx - 02-04-2017 02:24 AM

http://wiki.sphere.torfo.org/index.php?title=@Hit
http://wiki.sphere.torfo.org/index.php?title=CHARDEF#Others
http://wiki.sphere.torfo.org/index.php?title=EVENTS

Code:
[FUNCTION STUN]
IF (!(<ISEVENT.e_stun>) && (<Wrestling> > 90.0))
  EVENTS +e_stun
  SYSMESSAGE You activated stun.
ELIF (<ISEVENT.e_stun>)
  EVENTS -e_stun
  SYSMESSAGE You deactivated stun.  
ENDIF

[EVENTS e_stun]
On=@Hit
IF !(<ARGO>)
  IF (rand(100) < 20)
    SRC.TAG.NOMOVETILL <EVAL <SERV.TIME> + 10>
    SRC.SAYUA @0481,,1 * Stunned *
  ENDIF
ENDIF