;'God - Set Endurance' skill

TargetID = GetUserFlag(#USERID, 45)

If TargetID <> 0
	If FindString(GetUserMessage(#USERID),"*",0) > 0
		Index = FindString(GetUserMessage(#USERID),"*",0)
		String = Substring(GetUserMessage(#USERID),Index+1,Len(GetUserMessage(#USERID))-Index)
		If GetUserAccess(#USERID) = 10
			SetUserEndurance(TargetID,String)
			SendMessageToUser(#USERID,GetUserName(TargetID)+" now has "+GetUserEndurance(TargetID)+" endurance.",#MSG_SERVER)
		EndIf
	Else
		If GetUserAccess(#USERID) = 10
			SetUserEnduranceBonus(TargetID,GetUserMessage(#USERID))
			SendMessageToUser(#USERID,GetUserName(TargetID)+" now has "+GetUserEnduranceBonus(TargetID)+" bonus endurance.",#MSG_SERVER)
		EndIf
	EndIf
Else
	SendMessageToUser(#USERID,"No target has been given!",#MSG_CRITCAL)
EndIf

Continue = 1