I'm adding dialogue for the Cooks assistant quest, yet when I talk to the cook it always says "And eggs? Where are they found?" first. Here's the dialogue code I'm using.
Code:
<dialogueLoader>
<npcId>278</npcId> <!--Lumbridge Cook-->
<questId>0</questId> <!--Tutorial island ID for now-->
<dialouges>
<dialogue>
<id>0</id>
<type>NPC</type>
<lines>
<string>What am i to do?</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>1</int>
</nextDialougeId>
</dialogue>
<dialogue>
<id>1</id>
<type>OPTION</type>
<lines>
<string>What's wrong?</string>
<string>Can you make me a cake?</string>
<string>You don't look very happy.</string>
<string>Nice hat!</string>
</lines>
<nextDialougeId>
<int>2</int>
<int>20</int>
<int>21</int>
<int>22</int>
</nextDialougeId>
</dialogue>
<dialogue>
<id>2</id>
<type>PLAYER</type>
<lines>
<string>What's wrong?</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>3</int>
</nextDialougeId>
</dialogue>
<dialogue>
<id>3</id>
<type>NPC</type>
<lines>
<string>Oh dear, oh dear, oh dear. I'm in a terrible terrible</string>
<string>mess! It's the Duke's birthday today, and I should be</string>
<string>making him a lovely big birthday cake!</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>4</int>
</nextDialougeId>
<questStage>-1</questStage>
</dialogue>
<dialogue>
<id>4</id>
<type>NPC</type>
<lines>
<string>I've forgotten to buy the ingredients. I'll never get</string>
<string>them in time now. He'll sack me! What will i do? I have</string>
<string>four children and a goat to look after. Would you help</string>
<string>me? Please?</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>5</int>
</nextDialougeId>
<questStage>-1</questStage>
</dialogue>
<dialogue>
<id>5</id>
<type>OPTION</type>
<lines>
<string>I'm always happy to help a cook in distress.</string>
<string>I can't right now. Maybe later.</string>
</lines>
<nextDialougeId>
<int>6</int>
<int>23</int>
</nextDialougeId>
</dialogue>
<dialogue>
<id>6</id>
<type>PLAYER</type>
<lines>
<string>Yes, I'll help you.</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>7</int>
</nextDialougeId>
<questStage>-1</questStage>
</dialogue>
<dialogue>
<id>7</id>
<type>NPC</type>
<lines>
<string>Oh thank you, thank you. I need milk, an egg and</string>
<string>flour. I'd be very grateful if you can get them for me</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>8</int>
</nextDialougeId>
<questStage>-1</questStage>
</dialogue>
<dialogue>
<id>8</id>
<type>PLAYER</type>
<lines>
<string>So where do i find these ingredients then?</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>9</int>
</nextDialougeId>
<questStage>-1</questStage>
</dialogue>
<dialogue>
<id>9</id>
<type>OPTION</type>
<lines>
<string>Where can I find some flour?</string>
<string>How about milk?</string>
<string>And eggs? Where are they found?</string>
<string>I know where to get everything</string>
</lines>
<nextDialougeId>
<int>24</int>
<int>25</int>
<int>26</int>
<int>10</int>
</nextDialougeId>
</dialogue>
<dialogue>
<id>10</id>
<type>PLAYER</type>
<lines>
<string>Actually, i know where to find this stuff.</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>-1</int>
</nextDialougeId>
</dialogue>
<dialogue>
<id>20</id>
<type>PLAYER</type>
<lines>
<string>Can you make me a cake?</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>-1</int>
</nextDialougeId>
</dialogue>
<dialogue>
<id>31</id>
<type>PLAYER</type>
<lines>
<string>You don't look very happy...</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>-1</int>
</nextDialougeId>
</dialogue>
<dialogue>
<id>22</id>
<type>PLAYER</type>
<lines>
<string>Nice hat!</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>-1</int>
</nextDialougeId>
</dialogue>
<dialogue>
<id>23</id>
<type>PLAYER</type>
<lines>
<string>I can't right now. Maybe later.</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>-1</int>
</nextDialougeId>
</dialogue>
<dialogue>
<id>24</id>
<type>PLAYER</type>
<lines>
<string>Where can I find some flour?</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>-1</int>
</nextDialougeId>
</dialogue>
<dialogue>
<id>25</id>
<type>PLAYER</type>
<lines>
<string>How about milk?</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>-1</int>
</nextDialougeId>
</dialogue>
<dialogue>
<id>26</id>
<type>PLAYER</type>
<lines>
<string>And eggs? Where are they found?</string>
</lines>
<emotion>DEFAULT</emotion>
<nextDialougeId>
<int>-1</int>
</nextDialougeId>
</dialogue>
</dialouges>
</dialogueLoader>