AttackTarget=GetUserID(GetUserMessage(#USERID))


;SendMessageToUser(#USERID,"Hall Guardian says, 'Sorry, we are having problems and are being buggy...check back later!'", #MSG_SAY)

;GoTo END


If GetGuildHall(GetUserGuild(#USERID))<>11
	SendMessageToUser(#USERID,"Hall Guardian says, 'You don't own this hall. Get out of here!'", #MSG_SAY)
Else
	If GetUserGuildRank(#USERID)<>#GUILDRANK_LORD
			SendMessageToUser(#USERID,"Hall Guardian says, 'You aren't a Leader of this guild. Get out of here!'", #MSG_SAY)
	Else
		If GetUserFlag(0,14)=1
			SendMessageToUser(#USERID,"Hall Guardian says, 'There are no more Guardians left to summon. Please wait for awhile...'", #MSG_SAY)
			Goto End
		Endif

		If AttackTarget<1
			SendMessageToUser(#USERID,"Hall Guardian says, 'Who in your hall would you like us to kill, master?'", #MSG_SAY)
		Else
			If GetUserMap(AttackTarget)=215
				TargetMap=215
				Goto TargetAttack
			Endif
			If GetUserMap(AttackTarget)=216
				TargetMap=216
				Goto TargetAttack
			Endif
			If GetUserMap(AttackTarget)=217
				TargetMap=217
				Goto TargetAttack
			Endif
			
			SendMessageToUser(#USERID,"Hall Guardian says, 'I'm sorry, but I don't see "+GetUserName(AttackTarget)+" anywhere in this hall...'", #MSG_SAY)

		Endif
	Endif
Endif

Goto End


Label TargetAttack
SetUserFlag(0,14,1)
SendMessageToUser(#USERID,"Hall Guardian says, 'We will kill "+GetUserName(AttackTarget)+"! Attack my fellow Guardians!'", #MSG_SAY)
SendMessageToMap(215,GetUserName(#USERID)+" has commanded the Guardians to kill "+GetUserName(AttackTarget)+"!",#MSG_CRITICAL)
SendMessageToMap(216,GetUserName(#USERID)+" has commanded the Guardians to kill "+GetUserName(AttackTarget)+"!",#MSG_CRITICAL)
SendMessageToMap(217,GetUserName(#USERID)+" has commanded the Guardians to kill "+GetUserName(AttackTarget)+"!",#MSG_CRITICAL)

CreateEffect(1,600,0,#DIR_UP,216,15,8,0,0,0)
SpawnMonster(TargetMap,81,GetUserX(AttackTarget),GetUserY(AttackTarget))
SpawnMonster(TargetMap,81,GetUserX(AttackTarget),GetUserY(AttackTarget))
CreateEffect(1,600,0,#DIR_UP,TargetMap,GetUserX(AttackTarget),GetUserY(AttackTarget),0,0,0)
SetMonsterTarget(TargetMap,8,AttackTarget)
SetMonsterTarget(TargetMap,9,AttackTarget)
SetMonsterTarget(TargetMap,10,AttackTarget)
SetMonsterTarget(TargetMap,11,AttackTarget)
SetMonsterTarget(TargetMap,12,AttackTarget)
SetMonsterTarget(TargetMap,13,AttackTarget)
SetMonsterTarget(TargetMap,14,AttackTarget)
SetMonsterTarget(TargetMap,15,AttackTarget)
Timer(281,5000,AttackTarget,TargetMap,0)
Timer(282,100000,0,0,0)

Label End

Continue = 1