QUOTE |
- added support for flagging quests as either non-repeatable, or repeatable but only after some time period. If the Repeatable property is set to false on a questholder or questnote item, when the quest is completed and deleted, the player will be given a quest attachment (XmlQuestAttachment) that will flag the player as having completed the quest. If the Repeatable property is set to true (the default) and the NextRepeatable property is set to a TimeSpan value, then the attachment will be set to expire after that time. As long as the XmlQuestAttachment with the quest name is attached to the player, objectives for that quest cannot be completed. The quest can still be held by the player and when the attachment expires, the player can then repeat the quest. Note, staff can add or remove these attachments in-game using [addatt and [delatt to manually control whether specific players can repeat specific quests. The repeatability status of a quest will be shown at the bottom of the quest status gump. For example spawning a quest as questholder/name/waitforme/objective1/KILL,orc/autoreward/true/rewardstring/ARMOR,1,2/nextrepeatable/10:00 would make a quest named 'waitforme' with the objective to kill an orc and a random armor auto reward that could only be repeated once every 10 hours. questholder/name/onlyone/objective1/KILL,balron/autoreward/true/rewardstring/ARMOR,4,5/repeatable/false would make a quest named 'onlyone' with the objective to kill a balron and a random armor auto reward that could only be done once. |
QUOTE |
- spawner triggering can be made dependent upon attachments on the triggering mob by using the "ATTACHMENT,name,type" string in the TriggerOnCarried or NoTriggerOnCarried properties. This will make triggering dependent on attachments on the mob, or an attachment on an item equipped by the mob, or an attachment on an item in the top level of the mobs backpack (see attachtest1.xml for an example). |
QUOTE |
<?xml version="1.0" standalone="yes"?> <XmlQuestNPC> <NPC> <Name>Talia</Name> <Running>True</Running> <ProximityRange>3</ProximityRange> <NoTriggerOnCarried>ATTACHMENT,Kill the Orc,XmlQuestAttachment</NoTriggerOnCarried> <AllowGhost>False</AllowGhost> <SpeechPace>10</SpeechPace> <ResetTime>0</ResetTime> <ConfigFile>TaliaCoveForest</ConfigFile> <SpeechEntries>8</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>Hi!</Text> <DependsOn>-1</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> <Text>Greeting traveler!</Text> <DependsOn>-1</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> <SpeechEntry> <EntryNumber>30</EntryNumber> <ID>30</ID> <Text>Wouldst thou mind helping a troubled lady, brave traveler?</Text> <DependsOn>10,20</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> <SpeechEntry> <EntryNumber>40</EntryNumber> <ID>40</ID> <Keywords>yes,ok</Keywords> <DependsOn>30</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,Talia,4/Will you help me restore my trade, whom the Orcs have brought to a standstill?;Ok;ok;Whats in it for me?;money</Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>50</EntryNumber> <ID>50</ID> <Keywords>ok</Keywords> <DependsOn>40,60</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,Talia,3/I have lost too much trade to those devilish Orcs. would you help me deal with them? I often lumber for wood in the near-by forest, but as of late it is too dangerous for me because of the Orc that roams there. Will you rid him from those trees good traveler? I will kindly reward you.</Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>60</EntryNumber> <ID>60</ID> <Keywords>money</Keywords> <DependsOn>40</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,Talia,4/I can reward you with 200 gold!;Ok;ok;No thanks;No</Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>70</EntryNumber> <ID>70</ID> <Keywords>accept</Keywords> <Action>GIVE/<questholder/name/Kill the Orc/notestring/Kill the orc in the forest/objective1/KILL,orc,1/repeatable/false/autoreward/true/rewardstring/@bag/ADD/gold,200</Action> <DependsOn>50</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> </XmlQuestNPC> |