QUOTE |
<?xml version="1.0" standalone="yes"?> <XmlQuestNPC> <NPC> <Name>Carl</Name> <Running>True</Running> <ProximityRange>3</ProximityRange> <NoTriggerOnCarried>ATTACHMENT,Apprentice Crafter,XmlQuestAttachment | Apprentice Crafter</NoTriggerOnCarried> <AllowGhost>False</AllowGhost> <SpeechPace>10</SpeechPace> <ResetTime>0.166666666666667</ResetTime> <ConfigFile>CrafterHaven</ConfigFile> <SpeechEntries>6</SpeechEntries> </NPC> <SpeechEntry> <EntryNumber>0</EntryNumber> <ID>0</ID> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> <SpeechEntry> <EntryNumber>10</EntryNumber> <ID>10</ID> <Text>Hello {GETONTRIGMOB,name}, doust thou wish to explore lands far beyond this island?</Text> <DependsOn>-2</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> <SpeechEntry> <EntryNumber>20</EntryNumber> <ID>20</ID> <Keywords>quest,yes,yes i do</Keywords> <DependsOn>10</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,Apprentice Crafter,4/You do indeed look like the Crafter type, {GETONTRIGMOB,name}. If you are in search of a place to continue your trade I could indeed make that possible. However I would need you to prove your worth in the fundamentals of Crafting.;What is your challenge?;ok;I don't think I'm ready to prove myself;no</Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>30</EntryNumber> <ID>30</ID> <Keywords>ok</Keywords> <DependsOn>20</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,Apprentice Crafter,3/Collect resources that are so very vital to our trade. When you have 30 logs and 5 iron ore, bring them to me and I will give you the means to continue your journey </Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>40</EntryNumber> <ID>40</ID> <Keywords>accept</Keywords> <Action>GIVE/<questholder/name/Apprentice Crafter/notestring/Collect 30 logs and 5 iron ore and bring them back to Carl in Haven/objective1/GIVE,Carl,log,30/objective2/GIVE,Carl,ironore,5/repeatable/false/autoreward/false</Action> <DependsOn>30</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> <SpeechEntry> <EntryNumber>50</EntryNumber> <ID>50</ID> <Action>TAKE/Apprentice Crafter ; SETONTHIS/MSG/Well done {GETONTRIGMOB,name}, you have proven yourself worthy as an apprentice crafter, you may continue your journey through the portal!</Action> <Condition>GETONCARRIED,Apprentice Crafter,questholder,iscompleted=true</Condition> <DependsOn>-1</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> </XmlQuestNPC> |
QUOTE (Vladimir @ May 20, 2006 09:24 am) |
Fantastic... i'm sure it will work, I was worried about the time being too short but wasn't sure... the reason i made it so short is because 3-4 players que at the quest NPC so to wait 60 seconds for him to work again frustrates them hehe Thx a mil ArteGordon will give it a shot! |
QUOTE (Vladimir @ May 20, 2006 01:14 pm) |
um it doesn't seem to be doing the doreset. this is my line in the Action field: GIVE/<questholder/name/The Fighters Proving Ground/notestring/Head into the mountains, far to the south and kill 3 mongbats and 3 skeletons/objective1/KILL,mongbat,3/objective2/KILL,skeleton,3/repeatable/false/autoreward/false ; SETONTHIS/doreset/true</Action> |
QUOTE |
<?xml version="1.0" standalone="yes"?> <XmlQuestNPC> <NPC> <Name>Anya</Name> <Running>True</Running> <ProximityRange>3</ProximityRange> <NoTriggerOnCarried>ATTACHMENT,The Fighters Proving Ground,XmlQuestAttachment | The Fighters Proving Ground</NoTriggerOnCarried> <AllowGhost>False</AllowGhost> <SpeechPace>10</SpeechPace> <ResetTime>2</ResetTime> <ConfigFile>FighterHaven</ConfigFile> <SpeechEntries>6</SpeechEntries> </NPC> <SpeechEntry> <EntryNumber>0</EntryNumber> <ID>0</ID> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> <SpeechEntry> <EntryNumber>10</EntryNumber> <ID>10</ID> <Text>Hello {GETONTRIGMOB,name}, doust thou wish to explore lands far beyond this island?</Text> <DependsOn>-2</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> <SpeechEntry> <EntryNumber>20</EntryNumber> <ID>20</ID> <Keywords>quest,yes,yes i do</Keywords> <DependsOn>10</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,The Fighters Proving Ground,4/You do indeed look brave and strong, traveler, but looks can be decieving. Prove to me that you are worthy to continue your journey and I shall give you the means to do so.;What is your challenge?;ok;I don't feel that I am ready yet;no</Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>30</EntryNumber> <ID>30</ID> <Keywords>ok</Keywords> <DependsOn>20</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,The Fighters Proving Grounds,3/Head into the mountains to the south, there you will find a graveyard, Kill 3 Mongbats and 3 skeletons to prove your worth.</Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>40</EntryNumber> <ID>40</ID> <Keywords>accept</Keywords> <Action>GIVE/<questholder/name/The Fighters Proving Ground/notestring/Head into the mountains, far to the south and kill 3 mongbats and 3 skeletons/objective1/KILL,mongbat,3/objective2/KILL,skeleton,3/repeatable/false/autoreward/false ; SETONTHIS/doreset/true</Action> <DependsOn>30</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> <SpeechEntry> <EntryNumber>50</EntryNumber> <ID>50</ID> <Action>TAKE/The Fighters Proving Ground ; SETONTHIS/MSG/Well done {GETONTRIGMOB,name}, you have proven yourself worthy. Proceed through the gate and continue your journey brave traveler!</Action> <Condition>GETONCARRIED,The Fighters Proving Ground,questholder,iscompleted=true</Condition> <DependsOn>-1</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> </XmlQuestNPC> |
QUOTE |
// execute any action associated with it // allow for multiple action strings on a single line separated by a semicolon if(CurrentEntry.Action != null && CurrentEntry.Action.Length > 0) { string [] args = CurrentEntry.Action.Split(';'); for(int j = 0;j<args.Length;j++) { ExecuteAction(m, args[j]); } } // execute any GUMP associated with it ExecuteGump(m, CurrentEntry.Gump); IsActive = true; m_LastInteraction = DateTime.Now; |
QUOTE |
IsActive = true; m_LastInteraction = DateTime.Now; // execute any action associated with it // allow for multiple action strings on a single line separated by a semicolon if(CurrentEntry.Action != null && CurrentEntry.Action.Length > 0) { string [] args = CurrentEntry.Action.Split(';'); for(int j = 0;j<args.Length;j++) { ExecuteAction(m, args[j]); } } // execute any GUMP associated with it ExecuteGump(m, CurrentEntry.Gump); |