;'God - Take Item' skill

TargetID = GetUserFlag(#USERID, 45)

If TargetID <> 0
	Item=GetUserMessage(#USERID)
	If GetItemID(Item) > 0
		Item = GetItemID(ITEM)
	EndIf
	If HasItem(TargetID, Item) = 1
		TakeItem(TargetID, Item)
		SendMessageToUser(TargetID,GetUserName(#USERID)+": An item has been taken from your inventory.",#MSG_SERVER)
		SendMessageToUser(#USERID,"Item removed.",#MSG_SERVER)
	Else
		SendMessageToUser(#USERID,GetUserName(TargetID)+" doesn't have that item.",#MSG_SERVER)
	EndIf
Else
	SendMessageToUser(#USERID,"No target has been given!",#MSG_CRITCAL)
EndIf

Continue = 1