You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:Accepted"
| Line 2: | Line 2: | ||
<br> | <br> | ||
<br> | <br> | ||
| − | + | <br> | |
function Accepted(Quest, QuestGiver, Player)<br> | function Accepted(Quest, QuestGiver, Player)<br> | ||
if QuestGiver ~= nil then<br> | if QuestGiver ~= nil then<br> | ||
| Line 14: | Line 14: | ||
end<br> | end<br> | ||
end<br> | end<br> | ||
| + | |||
| + | |||
| + | --[[User:Xanibunib|Xanibunib]] 17:01, 3 April 2009 (CDT) | ||
| + | |||
| + | |||
| + | |||
| + | [http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions] | ||
Revision as of 15:01, 3 April 2009
Calls up this function only if the offered quest is accepted. This function is usualy placed after a "function Init(Quest)" in your quest scripts. Here is an example...
function Accepted(Quest, QuestGiver, Player)
if QuestGiver ~= nil then
if GetDistance (Player, QuestGiver) < 30 then
FaceTarget (QuestGiver, Player)
conversation = CreateConversation()
AddConversationOption(conversation, "Blah blah blah")
StartConversation(conversation, QuestGiver, Player, "blah blah blah")
end
end
end
--Christopher 17:01, 3 April 2009 (CDT)