Page 1 of 1

QUEST-Tutorial: Scribing Scrolls (fixed)

Posted: Sat Aug 19, 2017 6:01 am
by Ememjr
The quest completion book not showing over NPC head when complete

this has been fixed on emu and perseverance
1. the AddQuestStepChat in Makecider function had a ,100 in it( removed it


Original script

Code: Select all

--[[
	Script Name		:	Quests/FrostfangSea/tutorial_learning_to_cook.lua
	Script Purpose	:	Tutorial: Learning to Cook
	Script Author	:	theFoof
	Script Date		:	2013.10.19
	Script Notes	:	

	Zone			:	Frostfang Sea
	Quest Giver		:	Glin Hammerhelm
	Preceded by		:	Tutorial: Countering Problems
	Followed by		:	Tutorial: The Art of Weapons
--]]

function Init(Quest)
	SetQuestFeatherColor(Quest, 2)
	AddQuestStepCraft(Quest, 1, "I need to create some jum jum cider using the recipe the tutor gave me.", 1, 100, "I must follow the tutor's instructions to review the crafting process.", 310, 36399)
	AddQuestStepCompleteAction(Quest, 1, "MadeCider")
end

function Accepted(Quest, QuestGiver, Player)
end

function Deleted(Quest, QuestGiver, Player)
end

function Declined(Quest, QuestGiver, Player)
end

function MadeCider(Quest, QuestGiver, Player)
	UpdateQuestTaskGroupDescription(Quest, 1, "I have created some jum jum cider.")
	SetCompleteFlag(Quest)
	AddQuestStepChat(Quest, 2, "I should return to the tutor with the jum jum cider.", 1, 100, "I should return to the tutor with my work.", 0, GetSpawnID(QuestGiver))
	AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
end

function CompleteQuest(Quest, QuestGiver, Player)
	GiveQuestReward(Quest, Player)
end

function Reload(Quest, QuestGiver, Player, Step)
	if Step == 1 then
		MadeCider(Quest, QuestGiver, Player)
	end
end
Fixed Script

Code: Select all

--[[
	Script Name		:	Quests/FrostfangSea/tutorial_learning_to_cook.lua
	Script Purpose	:	Tutorial: Learning to Cook
	Script Author	:	theFoof
	Script Date		:	2013.10.19
	Script Notes	:	

	Zone			:	Frostfang Sea
	Quest Giver		:	Glin Hammerhelm
	Preceded by		:	Tutorial: Countering Problems
	Followed by		:	Tutorial: The Art of Weapons
--]]

function Init(Quest)
	SetQuestFeatherColor(Quest, 2)
	AddQuestStepCraft(Quest, 1, "I need to create some jum jum cider using the recipe the tutor gave me.", 1, 100, "I must follow the tutor's instructions to review the crafting process.", 310, 36399)
	AddQuestStepCompleteAction(Quest, 1, "MadeCider")
end

function Accepted(Quest, QuestGiver, Player)
end

function Deleted(Quest, QuestGiver, Player)
end

function Declined(Quest, QuestGiver, Player)
end

function MadeCider(Quest, QuestGiver, Player)
	UpdateQuestTaskGroupDescription(Quest, 1, "I have created some jum jum cider.")
	SetCompleteFlag(Quest)
	AddQuestStepChat(Quest, 2, "I should return to the tutor with the jum jum cider.", 1, "I should return to the tutor with my work.", 0, GetSpawnID(QuestGiver))
	AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
end

function CompleteQuest(Quest, QuestGiver, Player)
	GiveQuestReward(Quest, Player)
end

function Reload(Quest, QuestGiver, Player, Step)
	if Step == 1 then
		MadeCider(Quest, QuestGiver, Player)
	end
end

Re: QUEST-Tutorial: Scribing Scrolls (fixed)

Posted: Sat Aug 19, 2017 12:49 pm
by Jabantiz
Stuff like this you should be able to fix yourself on the web editor.

Re: QUEST-Tutorial: Scribing Scrolls (fixed)

Posted: Sat Aug 19, 2017 1:38 pm
by Ememjr
but figured i would post for those others runnign there servers so they could fix theres if needed,
if you dont want this type of thing posted let me know

Re: QUEST-Tutorial: Scribing Scrolls (fixed)

Posted: Sat Aug 19, 2017 5:05 pm
by Jabantiz
Posting for other is fine, in fact I completely missed the "fixed on emu" part so sorry about that.