No categories assigned

LUA:Accepted

Revision as of 23:52, 19 March 2009 by Xanibunib (talk | contribs) (New page: 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 Accepte...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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