FANDOM


InGame commands created by Taz.

Using "RC_Core.rcm"

; Date/Time: 6:53:34 PM on 10/7/2010
; By Naddaz on TAZCO


;-------------------------------------------------------------------------------

; Example '/heal' command for GMs
Function Heal()
	Player = Actor()
;--------------------------------
;Check if player is still alive
;-------------------------------
PHealth% = Attribute(Player, "Health")
;If (PHealth <= 1)
;OutPut(Player, "You are dead and can not use that command", 200, 23, 213)
;Return
 ;Endif
 ;------------------------
;end player health check
;--------------------------
         DeleteActorEffect(Player, "Dead") ;debug add if player gets stuck with death icon
	; Check player is a GM
	If (PlayerIsGM(Player))
		; Set health to maximum
		Max = MaxAttribute(Player, "Health")
		SetAttribute(Player, "Health", Max)
    Else
         OutPut(Player, "You are not a GM", 255, 0, 0)
    Return
 	EndIf
 
 	; Done
 	Return
 
 End Function
 ;------------------------------------------------------------------------------------

Function Mana() ; give full mana
    Player = Actor()
;--------------------------------
;Check if player is still alive
;-------------------------------
PHealth% = Attribute(Player, "Health")
If (PHealth <= 1)
OutPut(Player, "You are dead and can not use that command", 200, 23, 213)
Return
Endif
;------------------------
;end player health check
;--------------------------

    If (PlayerIsGM(Player))
        Maxmp% = MaxAttribute(Player, "Mana")
        SetAttribute(Player, "Mana", Maxmp)
     Else
     OutPut(Player, "You are not a GM", 255, 0, 0)
    Return
     EndIf
 End Function
 ;-------------------------------------------------------------------------