Difference between revisions of "LUA:Quests"

 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
----
+
{{PageHeaderChild|LUA|Quest Scripts}}
<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;">
+
 
----
+
Quest scripts are what makes quests work, there are only 4 core functions however custom functions are needed for a quest to work properly.  These custom functions can be declared with [[LUA:AddQuestStepCompleteAction|AddQuestStepCompleteAction()]] and [[LUA:SetQuestCompleteAction|SetQuestCompleteAction()]], in both cases the first parameter is the quest the second is the player.
=[http://egyworene.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
+
 
----
+
{{Header|Accepted|BackgroundColor=3d78b4|FontColor=ffffff}}
=[http://egyworene.co.cc CLICK HERE]=
+
Accepted is called when the player accepts the quest
----
+
 
</div>
+
<pre>
comment4, http://thegringochronicles.com buy cialis, http://thickpie.com viagra cialis generica, http://tualotuyo.com cialis professional 20 pills, http://terjeaalrust.com cialis drug viagra vs, http://tudiswack.com acomplia diet rimonabant smoke, http://thisdayblog.com Rimonabant,
+
function Accepted(Quest, Spawn)
 +
end
 +
</pre>
 +
{{Header|Declined|BackgroundColor=3d78b4|FontColor=ffffff}}
 +
Declined is called when the player declines the quest
 +
 
 +
<pre>
 +
function Declined(Quest, Spawn)
 +
end
 +
</pre>
 +
{{Header|Deleted|BackgroundColor=3d78b4|FontColor=ffffff}}
 +
Deleted is called when a player deletes a quest
 +
 
 +
<pre>
 +
function Deleted(Quest, Spawn)
 +
end
 +
</pre>
 +
{{Header|Init|BackgroundColor=3d78b4|FontColor=ffffff}}
 +
Init sets up the quest, this must be included in all quest scripts
 +
 
 +
<pre>
 +
function Init(Quest)
 +
end
 +
</pre>
 +
{{Header|Reload|BackgroundColor=3d78b4|FontColor=ffffff}}
 +
Reload is called when a player logs in with an incomplete quest, the third parameter is the step id the player is on
 +
 
 +
<pre>
 +
function Reload(Quest, Spawn, int32)
 +
end
 +
</pre>

Latest revision as of 16:30, 14 June 2016

LUA - Quest Scripts

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


Quest scripts are what makes quests work, there are only 4 core functions however custom functions are needed for a quest to work properly. These custom functions can be declared with AddQuestStepCompleteAction() and SetQuestCompleteAction(), in both cases the first parameter is the quest the second is the player.

Accepted

Accepted is called when the player accepts the quest

function Accepted(Quest, Spawn)
end
Declined

Declined is called when the player declines the quest

function Declined(Quest, Spawn)
end
Deleted

Deleted is called when a player deletes a quest

function Deleted(Quest, Spawn)
end
Init

Init sets up the quest, this must be included in all quest scripts

function Init(Quest)
end
Reload

Reload is called when a player logs in with an incomplete quest, the third parameter is the step id the player is on

function Reload(Quest, Spawn, int32)
end