<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://oldwiki.eq2classic.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xanibunib</id>
	<title>EQ2Emulator - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://oldwiki.eq2classic.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xanibunib"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=Special:Contributions/Xanibunib"/>
	<updated>2026-07-11T12:35:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.3</generator>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepKill&amp;diff=593</id>
		<title>LUA:AddQuestStepKill</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepKill&amp;diff=593"/>
		<updated>2009-04-04T00:32:17Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepKill(Quest, StepID, StepText, Quantity, Percentage,TaskGroupText, Icon, NPC ID(s))&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
This is a function that allows you to assign an NPC(s) to killto advance the quest. Here is an example out of the quest, &amp;quot;Kill or be killed&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  AddQuestStepKill(Quest, 1, &amp;quot;Anthony Glavias must be relived of his duty as a member of the Freeport Militia.&amp;quot;, 1, 100, &amp;quot;Militia member, Anthony Glvias, has proven to be too&amp;lt;br&amp;gt; incompetent to serve in the Freeport Militia. He must be relived of his duty. He is currently stationed West of the Fountain of the Fallen Soldier.&amp;quot;, 0, 1390013)&lt;br /&gt;
&lt;br /&gt;
Keep in mind you will want that all to be one line, but for the sake of keeping it all on the page here I added a break in it.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepCompleteAction&amp;diff=592</id>
		<title>LUA:AddQuestStepCompleteAction</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepCompleteAction&amp;diff=592"/>
		<updated>2009-04-04T00:31:08Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepCompleteAction(Quest, Step ID, Function Name)&lt;br /&gt;
&lt;br /&gt;
'''Explanation'''&amp;lt;br&amp;gt;&lt;br /&gt;
You will want to place one of these under your &amp;quot;AddQuestStep(chat, kill, location, spell, ect) so that it calls this funtion once the step has been completed.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;	&lt;br /&gt;
    AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&amp;lt;br&amp;gt;&lt;br /&gt;
    AddQuestStepCompleteAction(Quest, 1, &amp;quot;Step1_Complete_Tristan&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
This will call the function, &amp;quot;Step1_Complete_Tristan&amp;quot; when you have talked to the NPC Tristan. You can then make the &amp;quot;Step1_Complete_Tristan&amp;quot; function add another step, like so...&lt;br /&gt;
    function Step1_Complete_Tristan(Quest, QestGiver, Player)&lt;br /&gt;
      UpdateQuestStepDescription(Quest, 1, &amp;quot;I have spoken with Tristan.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
      AddQuestStepChat(Quest, 2, &amp;quot;I must speak with Wesley Tundrafoot. He is standing near the South Freeport gate.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390045)&lt;br /&gt;
      AddQuestStepCompleteAction(Quest, 2, &amp;quot;Step2_Complete_Wesley&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=591</id>
		<title>LUA:AddQuestStepChat</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=591"/>
		<updated>2009-04-04T00:29:46Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepChat(Quest, StepID, StepText, Quantity, TaskGroupText, Icon, NPC ID(s))&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explanation'''&amp;lt;br&amp;gt;&lt;br /&gt;
This will add a step in your quest script that requires you to go talk to an NPC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text.&lt;br /&gt;
The icon I have set to &amp;quot;0&amp;quot; to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...&lt;br /&gt;
&lt;br /&gt;
      TaskGroupText - &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;&lt;br /&gt;
              StepText - &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=590</id>
		<title>LUA:AddQuestStepChat</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=590"/>
		<updated>2009-04-04T00:29:29Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepChat(Quest, StepID, StepText, Quantity, TaskGroupText, Icon, NPC ID(s))&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explanation'''&amp;lt;br&amp;gt;&lt;br /&gt;
This will add a step in your quest script that requires you to go talk to an NPC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text.&lt;br /&gt;
The icon I have set to &amp;quot;0&amp;quot; to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...&lt;br /&gt;
&lt;br /&gt;
      TaskGroupText - &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;&lt;br /&gt;
              StepText - &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:15, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:Accepted&amp;diff=589</id>
		<title>LUA:Accepted</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:Accepted&amp;diff=589"/>
		<updated>2009-04-04T00:27:37Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
Accepted(Quest, QuestGiver, Player)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explanation'''&amp;lt;br&amp;gt;&lt;br /&gt;
Calls up this function only if the offered quest is accepted. This function is placed in your &amp;quot;function Init(Quest)&amp;quot; in your quest scripts.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  function Accepted(Quest, QuestGiver, Player)&amp;lt;br&amp;gt;&lt;br /&gt;
    if QuestGiver ~= nil then&lt;br /&gt;
       if GetDistance (Player, QuestGiver) &amp;lt; 30 then&lt;br /&gt;
           FaceTarget (QuestGiver, Player)&lt;br /&gt;
           conversation = CreateConversation()&lt;br /&gt;
           &lt;br /&gt;
           AddConversationOption(conversation, &amp;quot;Blah blah blah&amp;quot;)&lt;br /&gt;
           StartConversation(conversation, QuestGiver, Player, &amp;quot;blah blah blah&amp;quot;)&lt;br /&gt;
           end&lt;br /&gt;
        end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this example when the quest offered is accepted it will start the conversation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:Accepted&amp;diff=588</id>
		<title>LUA:Accepted</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:Accepted&amp;diff=588"/>
		<updated>2009-04-04T00:27:22Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explanation'''&amp;lt;br&amp;gt;&lt;br /&gt;
Calls up this function only if the offered quest is accepted. This function is placed in your &amp;quot;function Init(Quest)&amp;quot; in your quest scripts.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  function Accepted(Quest, QuestGiver, Player)&amp;lt;br&amp;gt;&lt;br /&gt;
    if QuestGiver ~= nil then&lt;br /&gt;
       if GetDistance (Player, QuestGiver) &amp;lt; 30 then&lt;br /&gt;
           FaceTarget (QuestGiver, Player)&lt;br /&gt;
           conversation = CreateConversation()&lt;br /&gt;
           &lt;br /&gt;
           AddConversationOption(conversation, &amp;quot;Blah blah blah&amp;quot;)&lt;br /&gt;
           StartConversation(conversation, QuestGiver, Player, &amp;quot;blah blah blah&amp;quot;)&lt;br /&gt;
           end&lt;br /&gt;
        end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this example when the quest offered is accepted it will start the conversation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:Reload&amp;diff=587</id>
		<title>LUA:Reload</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:Reload&amp;diff=587"/>
		<updated>2009-04-04T00:19:23Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: '''Syntax'''&amp;lt;br&amp;gt; Reload(Quest, QuestGiver, Player, Step)&amp;lt;br&amp;gt;  '''Explanation'''&amp;lt;br&amp;gt; This is the function that will tell your server which step you are on if you log out, zone, or reload yo...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
Reload(Quest, QuestGiver, Player, Step)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explanation'''&amp;lt;br&amp;gt;&lt;br /&gt;
This is the function that will tell your server which step you are on if you log out, zone, or reload your quest scripts in SQL. It is a MUST in your quest scripts.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  function Reload(Quest, QuestGiver, Player, Step)&lt;br /&gt;
    if Step == 1 then&lt;br /&gt;
        Step1_Complete_Threat(Quest, QuestGiver, Player)&lt;br /&gt;
    elseif Step == 2 then&lt;br /&gt;
        Step2_Complete_RecoBox(Quest, QuestGiver, Player)&lt;br /&gt;
    elseif Step == 3 then&lt;br /&gt;
        Step3_QuestComplete(Quest, QuestGiver, Player)&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:RegisterQuest&amp;diff=586</id>
		<title>LUA:RegisterQuest</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:RegisterQuest&amp;diff=586"/>
		<updated>2009-04-04T00:16:24Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: '''Syntax'''&amp;lt;br&amp;gt; RegisterQuest(Quest, Quest Name, Quest Type, Quest Zone, Quest level, Description)&amp;lt;br&amp;gt;  '''Explanation''' This is a MUST in your quest scripts. It tells the server what th...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
RegisterQuest(Quest, Quest Name, Quest Type, Quest Zone, Quest level, Description)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explanation'''&lt;br /&gt;
This is a MUST in your quest scripts. It tells the server what the name of the quest is, what type of quest it is(Signature, Heritage, ect...), which zone it was started in, quest level, and the quest description.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  RegisterQuest(Quest, &amp;quot; A Puppy for Your Potion&amp;quot;, &amp;quot;Scale Yard&amp;quot;, &amp;quot;Scale Yard&amp;quot;, 3, &amp;quot;Brood Matron Vrim Maltyk, a most stately Iksar has asked me to help retrieve a box of stolen alchemy&lt;br /&gt;
  components from a man named Melvin Dunford. I am to show Melvin the collar of his beloved puppy, Wittens and demand that he tells us where the stolen goods are located. If he&lt;br /&gt;
  does not tell us... I shudder to think of what Vrim will do to Wittens!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the sake of keeping the example on the page I have added breaks, this should be a single line in your scripts!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:QuestReturnNPC&amp;diff=585</id>
		<title>LUA:QuestReturnNPC</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:QuestReturnNPC&amp;diff=585"/>
		<updated>2009-04-04T00:08:21Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: '''Syntax'''&amp;lt;br&amp;gt; QuestReturnNPC(Quest, Spawn ID)&amp;lt;br&amp;gt;  '''Explanation'''&amp;lt;br&amp;gt; This function will be placed in your &amp;quot;function Init(Quest)&amp;quot; function to let the server know which NPC you return...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
QuestReturnNPC(Quest, Spawn ID)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explanation'''&amp;lt;br&amp;gt;&lt;br /&gt;
This function will be placed in your &amp;quot;function Init(Quest)&amp;quot; function to let the server know which NPC you return to at the end of your quest.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  QuestReturnNPC(Quest, 1390091)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:GiveQuestReward&amp;diff=584</id>
		<title>LUA:GiveQuestReward</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GiveQuestReward&amp;diff=584"/>
		<updated>2009-04-04T00:04:17Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: '''Syntax'''&amp;lt;br&amp;gt; GiveQuestReward(Quest, Player)&amp;lt;br&amp;gt;  '''Explanation'''&amp;lt;br&amp;gt; As you could guess this is the function that will give the player the quest reward.  '''Example'''&amp;lt;br&amp;gt;   function...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
GiveQuestReward(Quest, Player)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explanation'''&amp;lt;br&amp;gt;&lt;br /&gt;
As you could guess this is the function that will give the player the quest reward.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  function Step3_Quest_Complete(Quest, QuestGiver, Player)&lt;br /&gt;
    UpdateQuestTaskGroupDescription(Quest, 1, &amp;quot;I've located the box of stolen alchemy components and returned them to Vrim. She is most pleased!&amp;quot;)&lt;br /&gt;
    GiveQuestReward(Quest, Player)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestRewardFaction&amp;diff=583</id>
		<title>LUA:AddQuestRewardFaction</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestRewardFaction&amp;diff=583"/>
		<updated>2009-04-04T00:01:28Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestRewardFaction(Quest, Faction ID, Amount)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explanation'''&amp;lt;br&amp;gt;&lt;br /&gt;
Factions have not properly been set to work yet, as of April 3rd. As you could assume though this function will reward the player with X amount of faction when the quest is completed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestRewardFaction&amp;diff=582</id>
		<title>LUA:AddQuestRewardFaction</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestRewardFaction&amp;diff=582"/>
		<updated>2009-04-04T00:01:05Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: '''Syntax'''&amp;lt;br&amp;gt; AddQuestRewardFaction(Quest, Faction ID, Amount)&amp;lt;br&amp;gt;  '''Explanation''' Factions have not properly been set to work yet, as of April 3rd. As you could assume though this f...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestRewardFaction(Quest, Faction ID, Amount)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explanation'''&lt;br /&gt;
Factions have not properly been set to work yet, as of April 3rd. As you could assume though this function will reward the player with X amount of faction when the quest is completed.&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:Declined&amp;diff=581</id>
		<title>LUA:Declined</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:Declined&amp;diff=581"/>
		<updated>2009-04-03T23:58:25Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: '''Syntax'''&amp;lt;br&amp;gt; Declined(Quest, QuestGiver, Player)&amp;lt;br&amp;gt;  ''' Explanation '''&amp;lt;br&amp;gt; This function is very similar to the Accepted function. I will call all parameters set within it if the of...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
Declined(Quest, QuestGiver, Player)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''' Explanation '''&amp;lt;br&amp;gt;&lt;br /&gt;
This function is very similar to the Accepted function. I will call all parameters set within it if the offered quest is Declined. Most quests will just have an empty function for this&lt;br /&gt;
but it IS required in your quest scripts!&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  function Declined(Quest, QuestGiver, Player)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
You really could put anything in this function like emotes or have the NPC say something back to you if you decline the quest.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:OfferQuest&amp;diff=580</id>
		<title>LUA:OfferQuest</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:OfferQuest&amp;diff=580"/>
		<updated>2009-04-03T23:49:50Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: '''Syntax'''&amp;lt;br&amp;gt; OfferQuest(Quest, QuestID)  '''Explination'''&amp;lt;br&amp;gt; This is used to offer a quest to the player.   '''Example'''&amp;lt;br&amp;gt; Here is an example from a conversation between the playe...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
OfferQuest(Quest, QuestID)&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
This is used to offer a quest to the player. &lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
Here is an example from a conversation between the player and Brood Matron Vrim Malthyk.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
  function dlg_1_5(NPC, Spawn)&lt;br /&gt;
    FaceTarget(NPC, Spawn)&lt;br /&gt;
    conversation = CreateConversation()&amp;lt;br&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    OfferQuest(NPC, Spawn, QUEST_2)&lt;br /&gt;
    PlayFlavor(NPC, &amp;quot;voiceover/english/tutorial_revamp/brood_matron_vrim_malthyk/fprt_hood06/rcp_vrim021.mp3&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, 791154437, 3626211974, Spawn)&lt;br /&gt;
    AddConversationOption(conversation, &amp;quot;Then, I'm off!&amp;quot;)&lt;br /&gt;
    StartConversation(conversation, NPC, Spawn, &amp;quot;No, that should be enough to send those two off the deep end. You should be able to find Tristan near the Heated Stone Inn and&lt;br /&gt;
    Wesley tends to lurk around the South Freeport Gate.&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
For the sake of keeping the example visible I have added a break in the &amp;quot;StartConversation&amp;quot; line, this should remain a single line in your script.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:ProvidesQuest&amp;diff=579</id>
		<title>LUA:ProvidesQuest</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:ProvidesQuest&amp;diff=579"/>
		<updated>2009-04-03T23:41:56Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
ProvidesQuest(Quest, QuestID)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
This is a rather important function that will go under your NPCs &amp;quot;spawn(NPC)&amp;quot; function. It lets the server know which quests the NPC provides.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  function spawn(NPC)&amp;lt;br&amp;gt;&lt;br /&gt;
    ProvidesQuest(NPC, QUEST_1)&lt;br /&gt;
    ProvidesQuest(NPC, QUEST_2)&lt;br /&gt;
    ProvidesQuest(NPC, QUEST_3)&lt;br /&gt;
    ProvidesQuest(NPC, QUEST_4)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
Often times you will find QUEST_1,2,3,4,ect in place of quest ID numbers. These variables are defined at the top of the .lua script for easy reference to which quest is what. Here is an example from Brood Matron Vrim Malthyk.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  QUEST_1 = 142 --A Puppy for your potion--&lt;br /&gt;
  QUEST_2 = 151 --He said, he said--&lt;br /&gt;
  QUEST_3 = 152 --Paying homage to the past--&lt;br /&gt;
  QUEST_4 = 162 --Kill or be killed--&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:ProvidesQuest&amp;diff=578</id>
		<title>LUA:ProvidesQuest</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:ProvidesQuest&amp;diff=578"/>
		<updated>2009-04-03T23:39:46Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: '''Syntax'''&amp;lt;br&amp;gt; ProvidesQuest(Quest, QuestID)&amp;lt;br&amp;gt;  '''Explination'''&amp;lt;br&amp;gt; This is a rather important function that will go under your NPCs &amp;quot;spawn(NPC)&amp;quot; function. It lets the server know wh...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
ProvidesQuest(Quest, QuestID)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
This is a rather important function that will go under your NPCs &amp;quot;spawn(NPC)&amp;quot; function. It lets the server know which quests the NPC provides.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  function spawn(NPC)&lt;br /&gt;
&lt;br /&gt;
	ProvidesQuest(NPC, QUEST_1)&lt;br /&gt;
	ProvidesQuest(NPC, QUEST_2)&lt;br /&gt;
	ProvidesQuest(NPC, QUEST_3)&lt;br /&gt;
	ProvidesQuest(NPC, QUEST_4)&lt;br /&gt;
&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepSpell&amp;diff=577</id>
		<title>LUA:AddQuestStepSpell</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepSpell&amp;diff=577"/>
		<updated>2009-04-03T23:35:39Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepSpell(Quest, StepID, StepText, Quantity, Percentage, TaskgroupText, Icon, Spell ID(s))&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
This function will complete the quest step when you cast a specific spell. This is widely used for spells that interact with objects such as, &amp;quot;Take the box, Whack the hive, ect...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  AddQuestStepSpell(Quest, 4, &amp;quot;I need to take the shackles off the wall.&amp;quot;, 1, 100, &amp;quot;It Appears that the Iksar were once enslave by the Overlord. However, after proving their mettle&amp;lt;br&amp;gt; during the Battle of Defiance, the Iksar were allowed to live freely in the Scale Yard. I am to take the old shackles from the time of enslavement and cast them into the sea!&amp;quot;, 0, 5022)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the sake of the example I have put a break in there but you would want this all to be a single line. The spell ID 5022 is the spell &amp;quot;take shackles&amp;quot; which is required by this quest when taking shackles off a wall. The shackles on the wall are a &amp;quot;sign&amp;quot; and have a primary command of &amp;quot;take shackles&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepSpell&amp;diff=576</id>
		<title>LUA:AddQuestStepSpell</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepSpell&amp;diff=576"/>
		<updated>2009-04-03T23:34:53Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: '''Syntax'''&amp;lt;br&amp;gt; AddQuestStepSpell(Quest, StepID, StepText, Quantity, Percentage, TaskgroupText, Icon, Spell ID(s))&amp;lt;br&amp;gt;  '''Explination'''&amp;lt;br&amp;gt; This function will complete the quest step wh...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepSpell(Quest, StepID, StepText, Quantity, Percentage, TaskgroupText, Icon, Spell ID(s))&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
This function will complete the quest step when you cast a specific spell. This is widely used for spells that interact with objects such as, &amp;quot;Take the box, Whack the hive, ect...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepSpell(Quest, 4, &amp;quot;I need to take the shackles off the wall.&amp;quot;, 1, 100, &amp;quot;It Appears that the Iksar were once enslave by the Overlord. However, after proving their mettle&amp;lt;br&amp;gt; during the Battle of Defiance, the Iksar were allowed to live freely in the Scale Yard. I am to take the old shackles from the time of enslavement and cast them into the sea!&amp;quot;, 0, 5022)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the sake of the example I have put a break in there but you would want this all to be a single line. The spell ID 5022 is the spell &amp;quot;take shackles&amp;quot; which is required by this quest when taking shackles off a wall. The shackles on the wall are a &amp;quot;sign&amp;quot; and have a primary command of &amp;quot;take shackles&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepObtainItem&amp;diff=575</id>
		<title>LUA:AddQuestStepObtainItem</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepObtainItem&amp;diff=575"/>
		<updated>2009-04-03T23:14:18Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepObtainItem(Quest, StepID, StepText, Quantity, Percentage, TaskGroupText, Icon, Item ID(s))&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
This function will add a step in your quest that requires you to obtain an item(s) to advance the quest.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  AddQuestStepObtainItem(Quest, 2, &amp;quot;I must collect five skulls of fallen Iksar.&amp;quot;, 5, 100, &amp;quot;I Must gather several Iksar skulls scattered across the Scale Yard.&amp;quot;, 91, 2797)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepObtainItem&amp;diff=574</id>
		<title>LUA:AddQuestStepObtainItem</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepObtainItem&amp;diff=574"/>
		<updated>2009-04-03T23:11:13Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: '''Syntax'''&amp;lt;br&amp;gt; AddQuestStepObtainItem(Quest, StepID, StepText, Quantity, Percentage, TaskGroupText, Icon, Item ID(s))&amp;lt;br&amp;gt;  '''Explination'''&amp;lt;br&amp;gt; This function will add a step in your que...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepObtainItem(Quest, StepID, StepText, Quantity, Percentage, TaskGroupText, Icon, Item ID(s))&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
This function will add a step in your quest that requires you to obtain an item(s) to advance the quest.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
  AddQuestStepObtainItem(Quest, 2, &amp;quot;I must collect five skulls of fallen Iksar.&amp;quot;, 5, 100, &amp;quot;I Must gather several Iksar skulls scattered across the Scale Yard.&amp;quot;, 91, 2797)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepLocation&amp;diff=573</id>
		<title>LUA:AddQuestStepLocation</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepLocation&amp;diff=573"/>
		<updated>2009-04-03T23:07:18Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: '''Syntax'''&amp;lt;br&amp;gt; AddQuestStepLocation(Quest, StepID, StepText, MaxVariation, TaskGroupText, Icon, x1, y1, z1, ...)&amp;lt;br&amp;gt;  '''Explination'''&amp;lt;br&amp;gt; This function will update your quest step once...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepLocation(Quest, StepID, StepText, MaxVariation, TaskGroupText, Icon, x1, y1, z1, ...)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
This function will update your quest step once you arrive at/near a location. MaxVariation is the max distance you can be AWAY from the specified location to receive the update.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  AddQuestStepLocation(Quest, 5,  &amp;quot;I must cast the shackles into the sea.&amp;quot;, 30, &amp;quot;I need to toss the shackles into the sea. I can do so at the docks.&amp;quot;, 0, -0, -4.5, 105)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=572</id>
		<title>LUA:AddQuestStepChat</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=572"/>
		<updated>2009-04-03T22:53:35Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepChat(Quest, StepID, StepText, Quantity, TaskGroupText, Icon, NPC ID(s))&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
This will add a step in your quest script that requires you to go talk to an NPC. Here is an example out of the quest, &amp;quot;He said, he said&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text.&lt;br /&gt;
The icon I have set to &amp;quot;0&amp;quot; to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...&lt;br /&gt;
&lt;br /&gt;
      TaskGroupText - &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;&lt;br /&gt;
              StepText - &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;&lt;br /&gt;
---&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:15, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=571</id>
		<title>LUA:AddQuestStepChat</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=571"/>
		<updated>2009-04-03T22:53:16Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepChat(Quest, StepID, StepText, Quantity, TaskGroupText, Icon, NPC ID(s))&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
This will add a step in your quest script that requires you to go talk to an NPC. Here is an example out of the quest, &amp;quot;He said, he said&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text.&lt;br /&gt;
The icon I have set to &amp;quot;0&amp;quot; to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...&lt;br /&gt;
&lt;br /&gt;
      TaskGroupText 1: &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;&lt;br /&gt;
              StepText : &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;&lt;br /&gt;
---&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:15, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=570</id>
		<title>LUA:AddQuestStepChat</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=570"/>
		<updated>2009-04-03T22:52:47Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepChat(Quest, StepID, StepText, Quantity, TaskGroupText, Icon, NPC ID(s))&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
This will add a step in your quest script that requires you to go talk to an NPC. Here is an example out of the quest, &amp;quot;He said, he said&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text.&lt;br /&gt;
The icon I have set to &amp;quot;0&amp;quot; to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...&lt;br /&gt;
&lt;br /&gt;
      TaskGroupText 1: &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;&lt;br /&gt;
          StepText 1:&amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;&lt;br /&gt;
---&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:15, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepKill&amp;diff=569</id>
		<title>LUA:AddQuestStepKill</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepKill&amp;diff=569"/>
		<updated>2009-04-03T22:42:01Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepKill(Quest, StepID, StepText, Quantity, Percentage,TaskGroupText, Icon, NPC ID(s))&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
This is a function that allows you to assign an NPC(s) to killto advance the quest. Here is an example out of the quest, &amp;quot;Kill or be killed&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  AddQuestStepKill(Quest, 1, &amp;quot;Anthony Glavias must be relived of his duty as a member of the Freeport Militia.&amp;quot;, 1, 100, &amp;quot;Militia member, Anthony Glvias, has proven to be too&amp;lt;br&amp;gt; incompetant to serve in the Freeport Militia. He must be relived of his duty. He is currently stationed West of the Fountain of the Fallen Soldier.&amp;quot;, 0, 1390013)&lt;br /&gt;
&lt;br /&gt;
Keep in mind you will want that all to be one line, but for the sake of keeping it all on the page here I added a brake in it.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepKill&amp;diff=568</id>
		<title>LUA:AddQuestStepKill</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepKill&amp;diff=568"/>
		<updated>2009-04-03T22:41:51Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepKill(Quest, StepID, StepText, Quantity, Percentage,TaskGroupText, Icon, NPC ID(s))&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
This is a function that allows you to assign an NPC(s) to killto advance the quest. Here is an example out of the quest, &amp;quot;Kill or be killed&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  AddQuestStepKill(Quest, 1, &amp;quot;Anthony Glavias must be relived of his duty as a member of the Freeport Militia.&amp;quot;, 1, 100, &amp;quot;Militia member, Anthony Glvias, has proven to be too&amp;lt;br&amp;gt; incompetant to serve in the Freeport Militia. He must be relived of his duty. He is currently stationed West of the Fountain of the Fallen Soldier.&amp;quot;, 0, 1390013)&lt;br /&gt;
&lt;br /&gt;
Keep in mind you will want that all to be one line, but for the sake of keeping it all on the page here I added a brake in it.&amp;lt;br.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepKill&amp;diff=567</id>
		<title>LUA:AddQuestStepKill</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepKill&amp;diff=567"/>
		<updated>2009-04-03T22:41:24Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepKill(Quest, StepID, StepText, Quantity, Percentage,TaskGroupText, Icon, NPC ID(s))&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
This is a function that allows you to assign an NPC(s) to killto advance the quest. Here is an example out of the quest, &amp;quot;Kill or be killed&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  AddQuestStepKill(Quest, 1, &amp;quot;Anthony Glavias must be relived of his duty as a member of the Freeport Militia.&amp;quot;, 1, 100, &amp;quot;Militia member, Anthony Glvias, has proven to be too&amp;lt;br&amp;gt; incompetant to serve in the Freeport Militia. He must be relived of his duty. He is currently stationed West of the Fountain of the Fallen Soldier.&amp;quot;, 0, 1390013)&lt;br /&gt;
&lt;br /&gt;
Keep in mind you will want that all to be one line, but for the sake of keeping it all on the page here I added a brake in it.&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepKill&amp;diff=566</id>
		<title>LUA:AddQuestStepKill</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepKill&amp;diff=566"/>
		<updated>2009-04-03T22:40:07Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: '''Syntax'''&amp;lt;br&amp;gt; AddQuestStepKill(Quest, StepID, StepText, Quantity, Percentage,TaskGroupText, Icon, NPC ID(s))  '''Explination'''&amp;lt;br&amp;gt; This is a function that allows you to assign an NPC(s...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepKill(Quest, StepID, StepText, Quantity, Percentage,TaskGroupText, Icon, NPC ID(s))&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
This is a function that allows you to assign an NPC(s) to killto advance the quest. Here is an example out of the quest, &amp;quot;Kill or be killed&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  AddQuestStepKill(Quest, 1, &amp;quot;Anthony Glavias must be relived of his duty as a member of the Freeport Militia.&amp;quot;, 1, 100, &amp;quot;Militia member, Anthony Glvias, has proven to be too incompetant to serve in the Freeport Militia. He must be relived of his duty. He is currently stationed West of the Fountain of the Fallen Soldier.&amp;quot;, 0, 1390013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=565</id>
		<title>LUA:AddQuestStepChat</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=565"/>
		<updated>2009-04-03T22:35:57Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepChat(Quest, StepID, StepText, TaskGroupID, TaskGroupText, Icon, NPC ID(s))&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
This will add a step in your quest script that requires you to go talk to an NPC. Here is an example out of the quest, &amp;quot;He said, he said&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text.&lt;br /&gt;
The icon I have set to &amp;quot;0&amp;quot; to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...&lt;br /&gt;
&lt;br /&gt;
      TaskGroupText 1: &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;&lt;br /&gt;
          StepText 1:&amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;&lt;br /&gt;
---&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:15, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=564</id>
		<title>LUA:AddQuestStepChat</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=564"/>
		<updated>2009-04-03T22:35:38Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepChat(Quest, StepID, StepText, TaskGroupID, TaskGroupText, Icon, NPC ID(s))&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
This will add a step in your quest script that requires you to go talk to an NPC. Here is an example out of the quest, &amp;quot;He said, he said&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text.&lt;br /&gt;
The icon I have set to &amp;quot;0&amp;quot; to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...&lt;br /&gt;
&lt;br /&gt;
      TaskGroupText 1: &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;&lt;br /&gt;
          StepText 1:&amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;&lt;br /&gt;
---&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:15, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=563</id>
		<title>LUA:AddQuestStepChat</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=563"/>
		<updated>2009-04-03T22:35:20Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepChat(Quest, StepID, StepText, TaskGroupID, TaskGroupText, Icon, NPC ID(s))&amp;lt;br&amp;gt;&lt;br /&gt;
---&lt;br /&gt;
This will add a step in your quest script that requires you to go talk to an NPC. Here is an example out of the quest, &amp;quot;He said, he said&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text.&lt;br /&gt;
The icon I have set to &amp;quot;0&amp;quot; to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...&lt;br /&gt;
&lt;br /&gt;
      TaskGroupText 1: &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;&lt;br /&gt;
          StepText 1:&amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;&lt;br /&gt;
---&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:15, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=562</id>
		<title>LUA:AddQuestStepChat</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=562"/>
		<updated>2009-04-03T22:35:07Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestStepChat(Quest, StepID, StepText, TaskGroupID, TaskGroupText, Icon, NPC ID(s))&lt;br /&gt;
---&lt;br /&gt;
This will add a step in your quest script that requires you to go talk to an NPC. Here is an example out of the quest, &amp;quot;He said, he said&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text.&lt;br /&gt;
The icon I have set to &amp;quot;0&amp;quot; to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...&lt;br /&gt;
&lt;br /&gt;
      TaskGroupText 1: &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;&lt;br /&gt;
          StepText 1:&amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;&lt;br /&gt;
---&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:15, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestPrereqQuest&amp;diff=561</id>
		<title>LUA:AddQuestPrereqQuest</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestPrereqQuest&amp;diff=561"/>
		<updated>2009-04-03T22:34:11Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestPrereqQuest(Quest, QuestID)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
Used whithin the &amp;quot;function Init(Quest)&amp;quot; function to set a required level for the quest. Here is an example from the quest, &amp;quot;He said, he said.&amp;quot; in the Scale Yard.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
  function Init(Quest)&amp;lt;br&amp;gt;&lt;br /&gt;
     RegisterQuest(Quest, &amp;quot;He said, he said&amp;quot;, &amp;quot;Miscellaneous&amp;quot;, &amp;quot;Scale Yard&amp;quot;, 4, &amp;quot;Vrim tells me that Barbarians can be easily manipulated by the power of suggestion. I am to deceive two particular Barbarians and turn them agaist one another.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
     -- Brood Matron's Private Reserve&amp;lt;br&amp;gt;&lt;br /&gt;
     -- Kunark Krisps&amp;lt;br&amp;gt;&lt;br /&gt;
     AddQuestRewardItem(Quest, 43957, 10)&amp;lt;br&amp;gt;&lt;br /&gt;
     AddQuestRewardItem(Quest, 44779, 10)&amp;lt;br&amp;gt;&lt;br /&gt;
     AddQuestRewardCoin(Quest, 2, 1, 0, 0)&amp;lt;br&amp;gt;&lt;br /&gt;
     SetQuestRewardExp(Quest, 100)&amp;lt;br&amp;gt;&lt;br /&gt;
     SetQuestPrereqLevel(Quest, 2)&amp;lt;br&amp;gt;&lt;br /&gt;
     '''AddQuestPrereqQuest(Quest, 142)'''&amp;lt;br&amp;gt;&lt;br /&gt;
     AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&amp;lt;br&amp;gt;&lt;br /&gt;
     AddQuestStepCompleteAction(Quest, 1, &amp;quot;Step1_Complete_Tristan&amp;quot;) &amp;lt;br&amp;gt;&lt;br /&gt;
     SetCompletedDescription(Quest, &amp;quot;Success! I have fooled the Barbarians and turned them agaisnt one another.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
     QuestReturnNPC(Quest, 1390091)&amp;lt;br&amp;gt;&lt;br /&gt;
  end&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
This will call the &amp;quot;AddQuestPrereqQuest&amp;quot; function so that if the player has NOT completed quest 142 they will not have the option to get this quest. If you do not add a &amp;quot;AddQuestPrereqQuest&amp;quot; in the quest script an NPC that offers more than one quest will continue to have a feather over their head and try to offer you another quest.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestPrereqQuest&amp;diff=560</id>
		<title>LUA:AddQuestPrereqQuest</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestPrereqQuest&amp;diff=560"/>
		<updated>2009-04-03T22:33:29Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestPrereqQuest(Quest, QuestID)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
Used whithin the &amp;quot;function Init(Quest)&amp;quot; function to set a required level for the quest. Here is an example from the quest, &amp;quot;He said, he said.&amp;quot; in the Scale Yard.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
  function Init(Quest)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
     RegisterQuest(Quest, &amp;quot;He said, he said&amp;quot;, &amp;quot;Miscellaneous&amp;quot;, &amp;quot;Scale Yard&amp;quot;, 4, &amp;quot;Vrim tells me that Barbarians can be easily manipulated by the power of suggestion. I am to deceive two particular Barbarians and turn them agaist one another.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
     -- Brood Matron's Private Reserve&amp;lt;br&amp;gt;&lt;br /&gt;
     -- Kunark Krisps&amp;lt;br&amp;gt;&lt;br /&gt;
     AddQuestRewardItem(Quest, 43957, 10)&amp;lt;br&amp;gt;&lt;br /&gt;
     AddQuestRewardItem(Quest, 44779, 10)&amp;lt;br&amp;gt;&lt;br /&gt;
     AddQuestRewardCoin(Quest, 2, 1, 0, 0)&amp;lt;br&amp;gt;&lt;br /&gt;
     SetQuestRewardExp(Quest, 100)&amp;lt;br&amp;gt;&lt;br /&gt;
     SetQuestPrereqLevel(Quest, 2)&amp;lt;br&amp;gt;&lt;br /&gt;
     '''AddQuestPrereqQuest(Quest, 142)'''&amp;lt;br&amp;gt;&lt;br /&gt;
	&amp;lt;br&amp;gt; &lt;br /&gt;
     AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
     AddQuestStepCompleteAction(Quest, 1, &amp;quot;Step1_Complete_Tristan&amp;quot;) &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
     SetCompletedDescription(Quest, &amp;quot;Success! I have fooled the Barbarians and turned them agaisnt one another.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
     QuestReturnNPC(Quest, 1390091)&amp;lt;br&amp;gt;&lt;br /&gt;
  end&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
This will call the &amp;quot;AddQuestPrereqQuest&amp;quot; function so that if the player has NOT completed quest 142 they will not have the option to get this quest. If you do not add a &amp;quot;AddQuestPrereqQuest&amp;quot; in the quest script an NPC that offers more than one quest will continue to have a feather over their head and try to offer you another quest.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestPrereqQuest&amp;diff=559</id>
		<title>LUA:AddQuestPrereqQuest</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestPrereqQuest&amp;diff=559"/>
		<updated>2009-04-03T22:32:19Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestPrereqQuest(Quest, QuestID)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
Used whithin the &amp;quot;function Init(Quest)&amp;quot; function to set a required level for the quest. Here is an example from the quest, &amp;quot;He said, he said.&amp;quot; in the Scale Yard.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
function Init(Quest)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
	RegisterQuest(Quest, &amp;quot;He said, he said&amp;quot;, &amp;quot;Miscellaneous&amp;quot;, &amp;quot;Scale Yard&amp;quot;, 4, &amp;quot;Vrim tells me that Barbarians can be easily manipulated by the power of suggestion. I am to deceive two particular Barbarians and turn them agaist one another.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
	-- Brood Matron's Private Reserve&amp;lt;br&amp;gt;&lt;br /&gt;
	-- Kunark Krisps&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestRewardItem(Quest, 43957, 10)&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestRewardItem(Quest, 44779, 10)&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestRewardCoin(Quest, 2, 1, 0, 0)&amp;lt;br&amp;gt;&lt;br /&gt;
	SetQuestRewardExp(Quest, 100)&amp;lt;br&amp;gt;&lt;br /&gt;
	SetQuestPrereqLevel(Quest, 2)&amp;lt;br&amp;gt;&lt;br /&gt;
	'''AddQuestPrereqQuest(Quest, 142)'''&amp;lt;br&amp;gt;&lt;br /&gt;
		&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestStepCompleteAction(Quest, 1, &amp;quot;Step1_Complete_Tristan&amp;quot;) &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
	SetCompletedDescription(Quest, &amp;quot;Success! I have fooled the Barbarians and turned them agaisnt one another.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
	QuestReturnNPC(Quest, 1390091)&amp;lt;br&amp;gt;&lt;br /&gt;
end&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
This will call the &amp;quot;AddQuestPrereqQuest&amp;quot; function so that if the player has NOT completed quest 142 they will not have the option to get this quest. If you do not add a &amp;quot;AddQuestPrereqQuest&amp;quot; in the quest script an NPC that offers more than one quest will continue to have a feather over their head and try to offer you another quest.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestPrereqQuest&amp;diff=558</id>
		<title>LUA:AddQuestPrereqQuest</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestPrereqQuest&amp;diff=558"/>
		<updated>2009-04-03T22:32:04Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&amp;lt;br&amp;gt;&lt;br /&gt;
AddQuestPrereqQuest(Quest, QuestID)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&amp;lt;br&amp;gt;&lt;br /&gt;
Used whithin the &amp;quot;function Init(Quest)&amp;quot; function to set a required level for the quest. Here is an example from the quest, &amp;quot;He said, he said.&amp;quot; in the Scale Yard.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
function Init(Quest)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
	RegisterQuest(Quest, &amp;quot;He said, he said&amp;quot;, &amp;quot;Miscellaneous&amp;quot;, &amp;quot;Scale Yard&amp;quot;, 4, &amp;quot;Vrim tells me that Barbarians can be easily manipulated by the power of suggestion. I am to deceive two particular Barbarians and turn them agaist one another.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
	-- Brood Matron's Private Reserve&amp;lt;br&amp;gt;&lt;br /&gt;
	-- Kunark Krisps&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestRewardItem(Quest, 43957, 10)&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestRewardItem(Quest, 44779, 10)&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestRewardCoin(Quest, 2, 1, 0, 0)&amp;lt;br&amp;gt;&lt;br /&gt;
	SetQuestRewardExp(Quest, 100)&amp;lt;br&amp;gt;&lt;br /&gt;
	SetQuestPrereqLevel(Quest, 2)&amp;lt;br&amp;gt;&lt;br /&gt;
	'''AddQuestPrereqQuest(Quest, 142)'''&amp;lt;br&amp;gt;&lt;br /&gt;
		&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestStepCompleteAction(Quest, 1, &amp;quot;Step1_Complete_Tristan&amp;quot;) &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
	SetCompletedDescription(Quest, &amp;quot;Success! I have fooled the Barbarians and turned them agaisnt one another.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
	QuestReturnNPC(Quest, 1390091)&amp;lt;br&amp;gt;&lt;br /&gt;
end&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
This will call the &amp;quot;AddQuestPrereqQuest&amp;quot; function so that if the player has NOT completed quest 142 they will not have the option to get this quest. If you do not add a &amp;quot;AddQuestPrereqQuest&amp;quot; in the quest script an NPC that offers more than one quest will continue to have a feather over their head and try to offer you another quest.&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 16:56, 3 April 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestPrereqQuest&amp;diff=557</id>
		<title>LUA:AddQuestPrereqQuest</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestPrereqQuest&amp;diff=557"/>
		<updated>2009-04-03T22:31:42Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Syntax'''&lt;br /&gt;
AddQuestPrereqQuest(Quest, QuestID)&lt;br /&gt;
&lt;br /&gt;
'''Explination'''&lt;br /&gt;
Used whithin the &amp;quot;function Init(Quest)&amp;quot; function to set a required level for the quest. Here is an example from the quest, &amp;quot;He said, he said.&amp;quot; in the Scale Yard.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
function Init(Quest)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
	RegisterQuest(Quest, &amp;quot;He said, he said&amp;quot;, &amp;quot;Miscellaneous&amp;quot;, &amp;quot;Scale Yard&amp;quot;, 4, &amp;quot;Vrim tells me that Barbarians can be easily manipulated by the power of suggestion. I am to deceive two particular Barbarians and turn them agaist one another.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
	-- Brood Matron's Private Reserve&amp;lt;br&amp;gt;&lt;br /&gt;
	-- Kunark Krisps&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestRewardItem(Quest, 43957, 10)&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestRewardItem(Quest, 44779, 10)&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestRewardCoin(Quest, 2, 1, 0, 0)&amp;lt;br&amp;gt;&lt;br /&gt;
	SetQuestRewardExp(Quest, 100)&amp;lt;br&amp;gt;&lt;br /&gt;
	SetQuestPrereqLevel(Quest, 2)&amp;lt;br&amp;gt;&lt;br /&gt;
	'''AddQuestPrereqQuest(Quest, 142)'''&amp;lt;br&amp;gt;&lt;br /&gt;
		&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestStepCompleteAction(Quest, 1, &amp;quot;Step1_Complete_Tristan&amp;quot;) &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
	SetCompletedDescription(Quest, &amp;quot;Success! I have fooled the Barbarians and turned them agaisnt one another.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
	QuestReturnNPC(Quest, 1390091)&amp;lt;br&amp;gt;&lt;br /&gt;
end&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
This will call the &amp;quot;AddQuestPrereqQuest&amp;quot; function so that if the player has NOT completed quest 142 they will not have the option to get this quest. If you do not add a &amp;quot;AddQuestPrereqQuest&amp;quot; in the quest script an NPC that offers more than one quest will continue to have a feather over their head and try to offer you another quest.&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 16:56, 3 April 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepCompleteAction&amp;diff=556</id>
		<title>LUA:AddQuestStepCompleteAction</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepCompleteAction&amp;diff=556"/>
		<updated>2009-04-03T22:28:58Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''&lt;br /&gt;
AddQuestStepCompleteAction(Quest, Step ID, Function Name)'''&lt;br /&gt;
---&lt;br /&gt;
You will want to place one of these under your &amp;quot;AddQuestStep(chat, kill, location, spell, ect) so that it calls this funtion once the step has been completed.&lt;br /&gt;
Here is an example...&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
    AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&amp;lt;br&amp;gt;&lt;br /&gt;
    AddQuestStepCompleteAction(Quest, 1, &amp;quot;Step1_Complete_Tristan&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
This will call the function, &amp;quot;Step1_Complete_Tristan&amp;quot; when you have talked to the NPC Tristan. You can then make the &amp;quot;Step1_Complete_Tristan&amp;quot; function add another step, like so...&lt;br /&gt;
    function Step1_Complete_Tristan(Quest, QestGiver, Player)&lt;br /&gt;
      UpdateQuestStepDescription(Quest, 1, &amp;quot;I have spoken with Tristan.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
      AddQuestStepChat(Quest, 2, &amp;quot;I must speak with Wesley Tundrafoot. He is standing near the South Freeport gate.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390045)&lt;br /&gt;
      AddQuestStepCompleteAction(Quest, 2, &amp;quot;Step2_Complete_Wesley&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:26, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepCompleteAction&amp;diff=555</id>
		<title>LUA:AddQuestStepCompleteAction</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepCompleteAction&amp;diff=555"/>
		<updated>2009-04-03T22:27:43Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''&lt;br /&gt;
AddQuestStepCompleteAction(Quest, Step ID, Function Name)'''&lt;br /&gt;
---&lt;br /&gt;
You will want to place one of these under your &amp;quot;AddQuestStep(chat, kill, location, spell, ect) so that it calls this funtion once the step has been completed.&lt;br /&gt;
Here is an example...&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
      AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&lt;br /&gt;
&lt;br /&gt;
      AddQuestStepCompleteAction(Quest, 1, &amp;quot;Step1_Complete_Tristan&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
This will call the function, &amp;quot;Step1_Complete_Tristan&amp;quot; when you have talked to the NPC Tristan. You can then make the &amp;quot;Step1_Complete_Tristan&amp;quot; function add another step, like so...&lt;br /&gt;
      function Step1_Complete_Tristan(Quest, QestGiver, Player)&lt;br /&gt;
      UpdateQuestStepDescription(Quest, 1, &amp;quot;I have spoken with Tristan.&amp;quot;)&lt;br /&gt;
      AddQuestStepChat(Quest, 2, &amp;quot;I must speak with Wesley Tundrafoot. He is standing near the South Freeport gate.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390045)&lt;br /&gt;
      AddQuestStepCompleteAction(Quest, 2, &amp;quot;Step2_Complete_Wesley&amp;quot;)&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:26, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepCompleteAction&amp;diff=554</id>
		<title>LUA:AddQuestStepCompleteAction</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepCompleteAction&amp;diff=554"/>
		<updated>2009-04-03T22:26:59Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''&lt;br /&gt;
AddQuestStepCompleteAction(Quest, Step ID, Function Name)'''&lt;br /&gt;
---&lt;br /&gt;
You will want to place one of these under your &amp;quot;AddQuestStep(chat, kill, location, spell, ect) so that it calls this funtion once the step has been completed.&lt;br /&gt;
Here is an example...&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
	AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&lt;br /&gt;
&lt;br /&gt;
	AddQuestStepCompleteAction(Quest, 1, &amp;quot;Step1_Complete_Tristan&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
This will call the function, &amp;quot;Step1_Complete_Tristan&amp;quot; when you have talked to the NPC Tristan. You can then make the &amp;quot;Step1_Complete_Tristan&amp;quot; function add another step, like so...&lt;br /&gt;
      function Step1_Complete_Tristan(Quest, QestGiver, Player)&lt;br /&gt;
      UpdateQuestStepDescription(Quest, 1, &amp;quot;I have spoken with Tristan.&amp;quot;)&lt;br /&gt;
      AddQuestStepChat(Quest, 2, &amp;quot;I must speak with Wesley Tundrafoot. He is standing near the South Freeport gate.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390045)&lt;br /&gt;
      AddQuestStepCompleteAction(Quest, 2, &amp;quot;Step2_Complete_Wesley&amp;quot;)&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:26, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepCompleteAction&amp;diff=553</id>
		<title>LUA:AddQuestStepCompleteAction</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepCompleteAction&amp;diff=553"/>
		<updated>2009-04-03T22:26:37Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''&lt;br /&gt;
AddQuestStepCompleteAction(Quest, Step ID, Function Name)'''&lt;br /&gt;
---&lt;br /&gt;
You will want to place one of these under your &amp;quot;AddQuestStep(chat, kill, location, spell, ect) so that it calls this funtion once the step has been completed.&lt;br /&gt;
Here is an example...&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
	AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&lt;br /&gt;
&lt;br /&gt;
	AddQuestStepCompleteAction(Quest, 1, &amp;quot;Step1_Complete_Tristan&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
This will call the function, &amp;quot;Step1_Complete_Tristan&amp;quot; when you have talked to the NPC Tristan. You can then make the &amp;quot;Step1_Complete_Tristan&amp;quot; function add another step, like so...&lt;br /&gt;
&lt;br /&gt;
      function Step1_Complete_Tristan(Quest, QestGiver, Player)&lt;br /&gt;
      UpdateQuestStepDescription(Quest, 1, &amp;quot;I have spoken with Tristan.&amp;quot;)&lt;br /&gt;
	&lt;br /&gt;
      AddQuestStepChat(Quest, 2, &amp;quot;I must speak with Wesley Tundrafoot. He is standing near the South Freeport gate.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390045)&lt;br /&gt;
      AddQuestStepCompleteAction(Quest, 2, &amp;quot;Step2_Complete_Wesley&amp;quot;)&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepCompleteAction&amp;diff=552</id>
		<title>LUA:AddQuestStepCompleteAction</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepCompleteAction&amp;diff=552"/>
		<updated>2009-04-03T22:26:06Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: ''' AddQuestStepCompleteAction(Quest, Step ID, Function Name)''' --- You will want to place one of these under your &amp;quot;AddQuestStep(chat, kill, location, spell, ect) so that it calls this fu...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''&lt;br /&gt;
AddQuestStepCompleteAction(Quest, Step ID, Function Name)'''&lt;br /&gt;
---&lt;br /&gt;
You will want to place one of these under your &amp;quot;AddQuestStep(chat, kill, location, spell, ect) so that it calls this funtion once the step has been completed.&lt;br /&gt;
Here is an example...&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
	AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&lt;br /&gt;
&lt;br /&gt;
	AddQuestStepCompleteAction(Quest, 1, &amp;quot;Step1_Complete_Tristan&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
This will call the function, &amp;quot;Step1_Complete_Tristan&amp;quot; when you have talked to the NPC Tristan. You can then make the &amp;quot;Step1_Complete_Tristan&amp;quot; function add another step, like so...&lt;br /&gt;
&lt;br /&gt;
      function Step1_Complete_Tristan(Quest, QestGiver, Player)&lt;br /&gt;
	UpdateQuestStepDescription(Quest, 1, &amp;quot;I have spoken with Tristan.&amp;quot;)&lt;br /&gt;
	&lt;br /&gt;
	AddQuestStepChat(Quest, 2, &amp;quot;I must speak with Wesley Tundrafoot. He is standing near the South Freeport gate.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390045)&lt;br /&gt;
	AddQuestStepCompleteAction(Quest, 2, &amp;quot;Step2_Complete_Wesley&amp;quot;)&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=551</id>
		<title>LUA:AddQuestStepChat</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=551"/>
		<updated>2009-04-03T22:20:46Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''AddQuestStepChat(Quest, StepID, StepText, TaskGroupID, TaskGroupText, Icon, NPC ID(s))''' &lt;br /&gt;
----&lt;br /&gt;
This will add a step in your quest script that requires you to go talk to an NPC. Here is an example out of the quest, &amp;quot;He said, he said&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text.&lt;br /&gt;
The icon I have set to &amp;quot;0&amp;quot; to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...&lt;br /&gt;
&lt;br /&gt;
      TaskGroupText 1: &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;&lt;br /&gt;
          StepText 1:&amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;&lt;br /&gt;
---&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:15, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=550</id>
		<title>LUA:AddQuestStepChat</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=550"/>
		<updated>2009-04-03T22:20:28Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''AddQuestStepChat(Quest, StepID, StepText, TaskGroupID, TaskGroupText, Icon, NPC ID(s))''' &lt;br /&gt;
----&lt;br /&gt;
This will add a step in your quest script that requires you to go talk to an NPC. Here is an example out of the quest, &amp;quot;He said, he said&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text.&lt;br /&gt;
The icon I have set to &amp;quot;0&amp;quot; to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...&lt;br /&gt;
&lt;br /&gt;
TaskGroupText 1: &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;&lt;br /&gt;
          StepText 1:&amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;&lt;br /&gt;
---&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:15, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=549</id>
		<title>LUA:AddQuestStepChat</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=549"/>
		<updated>2009-04-03T22:19:46Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''AddQuestStepChat(Quest, StepID, StepText, TaskGroupID, TaskGroupText, Icon, NPC ID(s))''' &lt;br /&gt;
----&lt;br /&gt;
This will add a step in your quest script that requires you to go talk to an NPC. Here is an example out of the quest, &amp;quot;He said, he said&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text.&lt;br /&gt;
The icon I have set to &amp;quot;0&amp;quot; to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...&lt;br /&gt;
---&lt;br /&gt;
Journal&lt;br /&gt;
&lt;br /&gt;
TaskGroupText 1: &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;&lt;br /&gt;
          StepText 1:&amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;&lt;br /&gt;
---&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:15, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=548</id>
		<title>LUA:AddQuestStepChat</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestStepChat&amp;diff=548"/>
		<updated>2009-04-03T22:15:57Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: New page: '''AddQuestStepChat(Quest, StepID, StepText, TaskGroupID, TaskGroupText, Icon, NPC ID(s))'''  ---- This will add a step in your quest script that requires you to go talk to an NPC. Here is...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''AddQuestStepChat(Quest, StepID, StepText, TaskGroupID, TaskGroupText, Icon, NPC ID(s))''' &lt;br /&gt;
----&lt;br /&gt;
This will add a step in your quest script that requires you to go talk to an NPC. Here is an example out of the quest, &amp;quot;He said, he said&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text.&lt;br /&gt;
The icon I have set to &amp;quot;0&amp;quot; to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:15, 3 April 2009 (CDT)&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:Accepted&amp;diff=547</id>
		<title>LUA:Accepted</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:Accepted&amp;diff=547"/>
		<updated>2009-04-03T22:05:15Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Calls up this function only if the offered quest is accepted. This function is usualy placed after a &amp;quot;function Init(Quest)&amp;quot; in your quest scripts. Here is an example...&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''function Accepted(Quest, QuestGiver, Player)'''&amp;lt;br&amp;gt;&lt;br /&gt;
			if QuestGiver ~= nil then&amp;lt;br&amp;gt;&lt;br /&gt;
				if GetDistance (Player, QuestGiver) &amp;lt; 30 then&amp;lt;br&amp;gt;&lt;br /&gt;
					FaceTarget (QuestGiver, Player)&amp;lt;br&amp;gt;&lt;br /&gt;
					conversation = CreateConversation()&amp;lt;br&amp;gt;&lt;br /&gt;
					&amp;lt;br&amp;gt;&lt;br /&gt;
					AddConversationOption(conversation, &amp;quot;Blah blah blah&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
					StartConversation(conversation, QuestGiver, Player, &amp;quot;blah blah blah&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
				end&amp;lt;br&amp;gt;&lt;br /&gt;
			end&amp;lt;br&amp;gt;&lt;br /&gt;
		end&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
In this example when the quest offered is accepted it will start the conversation.&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:01, 3 April 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:Accepted&amp;diff=546</id>
		<title>LUA:Accepted</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:Accepted&amp;diff=546"/>
		<updated>2009-04-03T22:05:04Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Calls up this function only if the offered quest is accepted. This function is usualy placed after a &amp;quot;function Init(Quest)&amp;quot; in your quest scripts. Here is an example...&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''function Accepted(Quest, QuestGiver, Player)'''&amp;lt;br&amp;gt;&lt;br /&gt;
			if QuestGiver ~= nil then&amp;lt;br&amp;gt;&lt;br /&gt;
				if GetDistance (Player, QuestGiver) &amp;lt; 30 then&amp;lt;br&amp;gt;&lt;br /&gt;
					FaceTarget (QuestGiver, Player)&amp;lt;br&amp;gt;&lt;br /&gt;
					conversation = CreateConversation()&amp;lt;br&amp;gt;&lt;br /&gt;
					&amp;lt;br&amp;gt;&lt;br /&gt;
					AddConversationOption(conversation, &amp;quot;Blah blah blah&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
					StartConversation(conversation, QuestGiver, Player, &amp;quot;blah blah blah&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
				end&amp;lt;br&amp;gt;&lt;br /&gt;
			end&amp;lt;br&amp;gt;&lt;br /&gt;
		end&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
In this example when the quest offered is accepted it will start the conversation.&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:01, 3 April 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:Accepted&amp;diff=545</id>
		<title>LUA:Accepted</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:Accepted&amp;diff=545"/>
		<updated>2009-04-03T22:01:46Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Calls up this function only if the offered quest is accepted. This function is usualy placed after a &amp;quot;function Init(Quest)&amp;quot; in your quest scripts. Here is an example...&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
function Accepted(Quest, QuestGiver, Player)&amp;lt;br&amp;gt;&lt;br /&gt;
			if QuestGiver ~= nil then&amp;lt;br&amp;gt;&lt;br /&gt;
				if GetDistance (Player, QuestGiver) &amp;lt; 30 then&amp;lt;br&amp;gt;&lt;br /&gt;
					FaceTarget (QuestGiver, Player)&amp;lt;br&amp;gt;&lt;br /&gt;
					conversation = CreateConversation()&amp;lt;br&amp;gt;&lt;br /&gt;
					&amp;lt;br&amp;gt;&lt;br /&gt;
					AddConversationOption(conversation, &amp;quot;Blah blah blah&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
					StartConversation(conversation, QuestGiver, Player, &amp;quot;blah blah blah&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
				end&amp;lt;br&amp;gt;&lt;br /&gt;
			end&amp;lt;br&amp;gt;&lt;br /&gt;
		end&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 17:01, 3 April 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestPrereqQuest&amp;diff=544</id>
		<title>LUA:AddQuestPrereqQuest</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddQuestPrereqQuest&amp;diff=544"/>
		<updated>2009-04-03T22:00:12Z</updated>

		<summary type="html">&lt;p&gt;Xanibunib: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Used whithin the &amp;quot;function Init(Quest)&amp;quot; function to set a required level for the quest. Here is an example from the quest, &amp;quot;He said, he said.&amp;quot; in the Scale Yard.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
function Init(Quest)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
	RegisterQuest(Quest, &amp;quot;He said, he said&amp;quot;, &amp;quot;Miscellaneous&amp;quot;, &amp;quot;Scale Yard&amp;quot;, 4, &amp;quot;Vrim tells me that Barbarians can be easily manipulated by the power of suggestion. I am to deceive two particular Barbarians and turn them agaist one another.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
	-- Brood Matron's Private Reserve&amp;lt;br&amp;gt;&lt;br /&gt;
	-- Kunark Krisps&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestRewardItem(Quest, 43957, 10)&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestRewardItem(Quest, 44779, 10)&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestRewardCoin(Quest, 2, 1, 0, 0)&amp;lt;br&amp;gt;&lt;br /&gt;
	SetQuestRewardExp(Quest, 100)&amp;lt;br&amp;gt;&lt;br /&gt;
	SetQuestPrereqLevel(Quest, 2)&amp;lt;br&amp;gt;&lt;br /&gt;
	'''AddQuestPrereqQuest(Quest, 142)'''&amp;lt;br&amp;gt;&lt;br /&gt;
		&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestStepChat(Quest, 1, &amp;quot;I must speak with Tristan. He is standing near the Heated Stone Inn.&amp;quot;, 1, &amp;quot;I need to manipulate two Barbarians into hating each other.&amp;quot;, 0, 1390036)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
	AddQuestStepCompleteAction(Quest, 1, &amp;quot;Step1_Complete_Tristan&amp;quot;) &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
	SetCompletedDescription(Quest, &amp;quot;Success! I have fooled the Barbarians and turned them agaisnt one another.&amp;quot;)&amp;lt;br&amp;gt;&lt;br /&gt;
	QuestReturnNPC(Quest, 1390091)&amp;lt;br&amp;gt;&lt;br /&gt;
end&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
This will call the &amp;quot;AddQuestPrereqQuest&amp;quot; function so that if the player has NOT completed quest 142 they will not have the option to get this quest. If you do not add a &amp;quot;AddQuestPrereqQuest&amp;quot; in the quest script an NPC that offers more than one quest will continue to have a feather over their head and try to offer you another quest.&lt;br /&gt;
&lt;br /&gt;
--[[User:Xanibunib|Xanibunib]] 16:56, 3 April 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]&lt;/div&gt;</summary>
		<author><name>Xanibunib</name></author>
		
	</entry>
</feed>