PoisonAmount=0
WizScrollAmount=0
WizStoneAmount=0
InfectedBloodAmount=0
BloodStoneAmount=0
DreamStoneAmount=0
NightmareClawAmount=0


Label PoisonCheck
If PoisonAmount=5
	Goto WizScrollCheck
Elseif HasItem(#USERID,9)=1
	PoisonAmount=PoisonAmount+1
	TakeItem(#USERID,9)
	Goto PoisonCheck
Else
	Goto ReturnItems
Endif

Label WizScrollCheck
If WizScrollAmount=10
	Goto WizStoneCheck
Elseif HasItem(#USERID,72)=1
	WizScrollAmount=WizScrollAmount+1
	TakeItem(#USERID,72)
	Goto WizScrollCheck
Else
	Goto ReturnItems
Endif




Label WizStoneCheck
If WizStoneAmount=5
	Goto InfectedBloodCheck
Elseif HasItem(#USERID,174)=1
	WizStoneAmount=WizStoneAmount+1
	TakeItem(#USERID,174)
	Goto WizStoneCheck
Else
	Goto ReturnItems
Endif




Label InfectedBloodCheck
If InfectedBloodAmount=5
	Goto BloodStoneCheck
Elseif HasItem(#USERID,119)=1
	InfectedBloodAmount=InfectedBloodAmount+1
	TakeItem(#USERID,119)
	Goto InfectedBloodCheck
Else
	Goto ReturnItems
Endif




Label BloodStoneCheck
If BloodStoneAmount=1
	Goto DreamStoneCheck
Elseif HasItem(#USERID,128)=1
	BloodStoneAmount=BloodStoneAmount+1
	TakeItem(#USERID,128)
	Goto BloodStoneCheck
Else
	Goto ReturnItems
Endif




Label DreamStoneCheck
If DreamStoneAmount=1
	Goto NightmareClawCheck
Elseif HasItem(#USERID,175)=1
	DreamStoneAmount=DreamStoneAmount+1
	TakeItem(#USERID,175)
	Goto DreamStoneCheck
Else
	Goto ReturnItems
Endif




Label NightmareClawCheck
If NightmareClawAmount=2
	Goto Success
Elseif HasItem(#USERID,176)=1
	NightmareClawAmount=NightmareClawAmount+1
	TakeItem(#USERID,176)
	Goto NightmareClawCheck
Else
	Goto ReturnItems
Endif






Label ReturnItems
Goto PoisonReturn

Label PoisonReturn
If PoisonAmount=0
	Goto WizScrollReturn
Else
	PoisonAmount=PoisonAmount-1
	GiveItem(#USERID,9)
Goto PoisonReturn

Label WizScrollReturn
If WizScrollAmount=0
	Goto WizStoneReturn
Else
	WizScrollAmount=WizScrollAmount-1
	GiveItem(#USERID,72)
Goto WizScrollReturn

Label WizStoneReturn
If WizStoneAmount=0
	Goto InfectedBloodReturn
Else
	WizStoneAmount=WizStoneAmount-1
	GiveItem(#USERID,174)
Goto WizStoneReturn

Label InfectedBloodReturn
If InfectedBloodAmount=0
	Goto BloodStoneReturn
Else
	InfectedBloodAmount=InfectedBloodAmount-1
	GiveItem(#USERID,119)
Goto InfectedBloodReturn

Label BloodStoneReturn
If BloodStoneAmount=0
	Goto DreamStoneReturn
Else
	BloodStoneAmount=BloodStoneAmount-1
	GiveItem(#USERID,128)
Goto BloodStoneReturn

Label DreamStoneReturn
If DreamStoneAmount=0
	Goto NightmareClawReturn
Else
	DreamStoneAmount=DreamStoneAmount-1
	GiveItem(#USERID,175)
Goto DreamStoneReturn

Label NightmareClawReturn
If NightmareClawAmount=0
	Goto Failed
Else
	NightmareClawAmount=NightmareClawAmount-1
	GiveItem(#USERID,176)
Goto NightmareClawReturn





Label Failed
SendMessageToUser(#USERID,"Viktir says, 'Bring me 5 poison, 10 wizard scrolls, 5 wizard stones, 5 vials of infected blood, 1 blood stone, 1 dream stone, and 2 nightmare claws before you come again!'", #MSG_SAY)
Goto End


Label Success
SendMessageToUser(#USERID,"Viktir says, 'Wow, you actually got all that stuff?! Amazing...well, here is your reward then.'", #MSG_SAY)
SendMessageToUser(#USERID,"Viktir hands you a bloody key", #MSG_EMOTE)
GiveItem(#USERID,177)
SendMessageToUser(#USERID,"You have learned Death Grasp.",#MSG_SERVER)
SendMessageToUser(#USERID,"It will damage for your max blood amount in the line before you.",#MSG_EMOTE)
SetUserSkill(#USERID,28,1)
Goto End


Label End


Continue = 1