;'God - Give Item' skill

TargetID = GetUserFlag(#USERID, 45)

If TargetID <> 0
	ITEM=GetUserMessage(#USERID)
	If GetItemID(ITEM) > 0
		ITEM = GetItemID(ITEM)
	EndIf
	GiveItem(TargetID, ITEM)
	SendMessageToUser(TargetID,GetUserName(#USERID)+": An item has been added to your inventory.",#MSG_SERVER)
	SendMessageToUser(#USERID,"Item given.",#MSG_SERVER)
Else
	SendMessageToUser(#USERID,"No target has been given!",#MSG_CRITCAL)
EndIf

Continue = 1