CODE |
<?xml version="1.0" standalone="yes"?> <XmlQuestNPC> <NPC> <Name>Balint</Name> <Running>True</Running> <ProximityRange>3</ProximityRange> <AllowGhost>False</AllowGhost> <SpeechPace>10</SpeechPace> <ResetTime>0,166666666666667</ResetTime> <ConfigFile>quest_base</ConfigFile> <SpeechEntries>14</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>Salve...</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> <Keywords>salve</Keywords> <DependsOn>10</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,Balint,4/Mmmh mi sembri una persona in cerca di avventure... Forse potresti svolgere un compito per me;Di cosa si tratta?;accept;Non ho tempo;decline;</Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>30</EntryNumber> <ID>30</ID> <Keywords>accept</Keywords> <DependsOn>20</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,Balint,4/Molto bene... Devi sapere che *storia da inventare*. Quindi ti chiedo di portarmi un diamante!!! Credi di Essere in grado di farlo?;Certamente!;accept2;No grazie;decline2</Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>40</EntryNumber> <ID>40</ID> <Keywords>decline</Keywords> <DependsOn>20</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,Balint,4/Beh... Pazienza... Sara' per un'altra volta! A presto!;A Presto;chiudi</Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>50</EntryNumber> <ID>50</ID> <Keywords>decline2</Keywords> <DependsOn>30</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,Balint,4/Beh... Come non detto allora! A presto!;A Presto!;chiudi</Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>60</EntryNumber> <ID>60</ID> <Keywords>accept2</Keywords> <Action>GIVE/<questholder/name/Il diamante di Balint/notestring/Balint ti ha chiesto di riportargli indietro un prezioso diamante./objective1/COLLECT,diamond,1/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>70</EntryNumber> <ID>70</ID> <Keywords>ricompensa</Keywords> <Condition>GETONCARRIED,Il diamante di Balint,questholder,iscompleted=true</Condition> <DependsOn>10</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,Balint,4/Oooh! Un meraviglioso diamante!!! Ti ringrazio infinitamente ed ecco a te la tua ricompensa!;Grazie la accetto!;accept3;La prenderò dopo;decline3</Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>80</EntryNumber> <ID>80</ID> <Keywords>accept3</Keywords> <Action>GIVE/Gold,200</Action> <DependsOn>70</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,Balint,4/A presto! E Buona Fortuna amico!;A Presto;closequest</Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>90</EntryNumber> <ID>90</ID> <Keywords>decline3</Keywords> <DependsOn>70</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Gump>GUMP,Balint,4/Va bene, allora ripassa quando vuoi e avrai la tua ricompensa!;A Presto!;chiudi</Gump> </SpeechEntry> <SpeechEntry> <EntryNumber>100</EntryNumber> <ID>100</ID> <Keywords>closequest</Keywords> <Action>TAKE,1,1,false,questholder/Il diamante di Balint</Action> <DependsOn>80</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> <SpeechEntry> <EntryNumber>110</EntryNumber> <ID>110</ID> <Text>Mmmh... non mi sembra che lei abbia completato la missione!</Text> <Keywords>ricompensa</Keywords> <Condition>GETONCARRIED,Il diamante di Balint,questholder,iscompleted=false</Condition> <DependsOn>10</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> <SpeechEntry> <EntryNumber>120</EntryNumber> <ID>120</ID> <Text>Ti ho già affidato la missione...</Text> <Keywords>salve</Keywords> <Condition>GETONCARRIED,Il diamante di Balint,questholder,iscompleted=false</Condition> <DependsOn>10</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> <SpeechEntry> <EntryNumber>130</EntryNumber> <ID>130</ID> <Text>Bene, hai completato la missione a quanto vedo... Chiedimi della "ricompensa" e te la darò!</Text> <Keywords>salve</Keywords> <Condition>GETONCARRIED,Il diamante di Balint,questholder,iscompleted=true</Condition> <DependsOn>10</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> </SpeechEntry> </XmlQuestNPC> |
QUOTE |
<SpeechEntry> <EntryNumber>30</EntryNumber> <ID>30</ID> <Keywords>accept</Keywords> <DependsOn>20</DependsOn> <Pause>1</Pause> <PrePause>-1</PrePause> <LockConversation>True</LockConversation> <AllowNPCTrigger>False</AllowNPCTrigger> <SpeechStyle>Regular</SpeechStyle> <SpeechHue>-1</SpeechHue> <Condition>~GETONCARRIED,Il diamante di Balint,questholder,iscompleted=false</Condition> <Gump>GUMP,Balint,4/Molto bene... Devi sapere che *storia da inventare*. Quindi ti chiedo di portarmi un diamante!!! Credi di Essere in grado di farlo?;Certamente!;accept2;No grazie;decline2</Gump> </SpeechEntry> |
QUOTE |
- loot keywords: ARMOR, WEAPON, JEWELRY, JARMOR, JWEAPON, SARMOR, SHIELD, LOOT, LOOTPACK, POTION, SCROLL, NECROSCROLL |
QUOTE |
- Added the "LOOTPACK,loottype" keyword. This can be be used to add items to a mob or container using the distro lootpack system. The loottypes are poor, meager, average, rich, filthyrich, ultrarich, superboss. If the keyword is used in a triggered spawn, then the luck of the triggering mob will also be factored in when generating the loot (otherwise a default luck of zero is used in the loot calculation). Because of the way in which distro lootpack generation works, lootpacks added to a container will not contain stackable items such as gold. |
QUOTE |
- added the new LOOT keyword that allows you to invoke arbitrary Loot class methods for generating random loot. The syntax is "LOOT,methodname". The method must be one of the public static methods in the Loot class that takes no arguments, and it must return an item. For example, to spawn a random statue use the keyword LOOT,RandomStatue where RandomStatue() is a defined static Loot class method that returns a random statue. Other Loot methods that are part of the standard 1.0.0 distribution include, Gems, clothing, Wands, Reagents, Instruments, and other things, so all of the following would be valid LOOT,RandomGem LOOT,RandomClothing LOOT,RandomWand LOOT,RandomReagent LOOT,RandomInstrument LOOT,RandomNecromancyReagent LOOT,RandomArmorOrShieldOrWeaponOrJewelry LOOT,RandomGrimmochJournal You can also define your own Loot methods in Loot.cs to return different types of random item if you like. For example, if you are using the XmlSockets addon and have made the Loot.cs modification, you could spawn a random augmentation by using LOOT,RandomAugment Like the other loot keywords, this can be used to spawn random items or to add them to mobs or containers using the ADD keyword. For example, to add a random statue to a spawned mob, you could use something like orc/ADD/LOOT,RandomStatue and you can set properties on the resulting random item just as you would any other spawned item, like LOOT,RandomReagent/amount/20 to spawn a random reagent and set the amount to 20 |
QUOTE (ArteGordon @ March 20, 2006 05:06 pm) |
you need to capitalize the ARMOR keyword |