AddQuestRewardCoin(Quest: Quest, Int32: Copper, Int32: Silver, Int32: Gold, Int32: Platinum)
Pre-Requisite(s)
- None
Parameter(s)
Quest: Quest - LUA Pointer of the Quest to apply the prerequisite.
Int32: Copper - Copper value to obtain as the quest reward.
Int32: Silver - Silver value to obtain as the quest reward.
Int32: Gold - Gold value to obtain as the quest reward.
Int32: Platinum - Platinum value to obtain as the quest reward.
Example(s)
function Init(Quest)
AddQuestRewardCoin(Quest, math.random(10,95), math.random(39,49), math.random(1,1), 0) – Rewards the Player 10-95 copper, 39-49 silver, 1 gold, 0 platinum.
AddQuestStepKill(Quest, 1, "I must hunt grove badgers.", 1, 40, "I must hunt the critters near the granary in Enchanted Lands. They should have Drodo's goodies.", 2299, 390041)
AddQuestStepKill(Quest, 2, "I must hunt lancer wasps.", 1, 40, "I must hunt the critters near the granary in Enchanted Lands. They should have Drodo's goodies.", 1229, 390092)
AddQuestStepKill(Quest, 3, "I must hunt klakrok drones.", 1, 40, "I must hunt the critters near the granary in Enchanted Lands. They should have Drodo's goodies.", 1225, 390069)
AddQuestStepKill(Quest, 4, "I must hunt briarpaw cubs.", 1, 40, "I must hunt the critters near the granary in Enchanted Lands. They should have Drodo's goodies.", 928, 390104)
AddQuestStepCompleteAction(Quest, 1, "deck")
AddQuestStepCompleteAction(Quest, 2, "comb")
AddQuestStepCompleteAction(Quest, 3, "dice")
AddQuestStepCompleteAction(Quest, 4, "box")
end
Result
Additional Notes