Difference between revisions of "LUA:AddQuestRewardCoin"

 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
----
+
{{LUAFunction
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
+
|Name = AddQuestRewardCoin
----
+
|Description = Adds coin to the reward from the given quest.
=[http://ogetehuvo.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
+
|Param1 = Quest
----
+
|Param1Desc = is the quest we are adding the reward to
=[http://ogetehuvo.co.cc CLICK HERE]=
+
|Param2 = int32
----
+
|Param2Desc = is the amount of coppee
</div>
+
|Param3 = int32
==Amount of coin a player gains upon completing the quest==
+
|Param3Desc = is the amount of silver
 
+
|Param4 = int32
===Syntax===
+
|Param4Desc = is the amount of gold
AddQuestRewardCoin(Quest, copper, silver, gold, platinum)
+
|Param5 = int32
 
+
|Param5Desc = is the amount of platinum
====Example====
+
|Example =
AddQuestRewardCoin(Quest, 24, 0, 0, 0)
+
<pre>
 +
function Init(Quest)
 +
    -- Add a coin reward to the quest
 +
    AddQuestRewardCoin(Quest, 1, 72, 15, 2)
 +
end
 +
</pre>
 +
|ExampleDesc = Add a reward of 2 plat 15 gold 72 silver and 1 copper to the quest.
 +
|Notes = While this function should still work it is now prefered to add quest reward data into the DB.
 +
}}

Latest revision as of 12:17, 30 January 2021


LUA:AllFunctions - AddQuestRewardCoin

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Adds coin to the reward from the given quest.

Syntax

AddQuestRewardCoin(param1, param2, param3, param4, param5)

Parameters

Required - param1 (Quest), param2 (int32), param3 (int32), param4 (int32), param5 (int32)
param1 is the quest we are adding the reward to
param2 is the amount of coppee
param3 is the amount of silver
param4 is the amount of gold
param5 is the amount of platinum


Example

function Init(Quest)
    -- Add a coin reward to the quest
    AddQuestRewardCoin(Quest, 1, 72, 15, 2)
end

Add a reward of 2 plat 15 gold 72 silver and 1 copper to the quest.

Notes

While this function should still work it is now prefered to add quest reward data into the DB.