Using the special loot keywords
Special keywords are available for generating random loot of particular types. These keywords can be used anywhere that a normal item type specification would be used. i.e. wherever you would use a typename like katana, or platehelm, just substitute these keywords.
These can either be used as the basic entry in a spawn spec, therefore spawning them directly, or they can be used with the ADD keyword to add them to a spawned mobs pack. For example,
ogre/ADD,0.5/WEAPON,2,5
would spawn an ogre with a 0.5 probability of dropping a lev 2-5 magic weapon.
ARMOR,5,5/name/Bruiser/hue/300/durability/200
would spawn a random piece of magic armor of level 5, name it Bruiser, turn it blue, and set its durability to 200.
ogre/ADD,0.5/<ARMOR,5,5/name/Bruiser/hue/300/durability/200>
would add that piece of armor to a spawned ogres pack with probability 0.5
GIVE/WEAPON,5,5
would give a level 5 magic weapon to the player that triggered the spawner.
woodenchest/ADD/WEAPON,3,5/ADD/ARMOR,3,4/ADD/ARMOR,3,4/ADD/POTION/ADD/SCROLL,4,6/ADD,.1/<WEAPON,2,3/slayer/elementalban>
would spawn a chest with a magic weapon, two pieces of magic armor, a potion, a scroll, and occasionally a lev2-3 elemental slayer.
Here is a list of the currently available special loot keywords:
ARMOR,min,max - will drop a random piece of magical armor, shield, or jewelry with an attribute level randomly selected between min and max. min and max can range between 0 and 5 with 5 being the most powerful.
WEAPON,min,max - does the same for weapons.
JEWELRY,minlevel,maxlevel - drops random magic jewelry in the selected range.
JWEAPON,min,max - drops a random magical weapon or piece of jewelry.
JARMOR,min,max - drops a random piece of magicalarmor or jewelry.
SCROLL,mincircle,maxcircle - drops a random scroll between mincircle and maxcircle.
POTION - drops a random potion
NECROSCROLL,index - drops a necro scroll of the specified index.
SHIELD,minlev,maxlev - spawns a random magical shield between the minimum and maximum level (level range is 1-5).
SARMOR,minlev,maxlev - spawns a random magical shield-or-armor piece.
LOOTPACK,loottype - 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.
LOOT,methodname - allows you to invoke arbitrary Loot class methods for generating random loot.
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
What would be the syntax for giving a tool with more then the normal amount of uses?
For example, a skillet has 50 uses - I want to give a special "cast iron skillet" that would have 100 uses instead.
QUOTE (Discord @ July 03, 2006 07:49 pm) |
What would be the syntax for giving a tool with more then the normal amount of uses?
For example, a skillet has 50 uses - I want to give a special "cast iron skillet" that would have 100 uses instead. |
With anything derived from BaseTool you should be able to set the UsesRemaining property to whatever you want. Like
skillet/name/cast iron skillet/usesremaining/100
just what I needed, as usual.
Thanks Arte.
UsesRemaining is an example of a public property that can be set by xmlspawner or by using the [xmlset or [xmlget commands, even though it doesnt have the CommandProperty attribute set and so doesnt show up in the [props menu and cannot be accessed using [get or [set.
Používání klíčových "loot" příkazů
Pomocí těchto příkazů budete schopni vytvářet vlastní náhodný loot dle jednotlivých skupin. Tyto příkazy mohou být použity kdekoliv, kde mohou být použity standartní "item type" specifikace. Příkazy jako Katana, nebo PlateHelm můžete jednoduše nahradit loot příkazy.
Tyto mohou být použity jako samotné příkazy, tedy přímé spawnování, nebo mohou být použity s "ADD" příkazem pro jejich přiřazení do balíčku nějakého moba.
Například:
ogre/ADD,0.5/WEAPON,2,5
vytvoří ogra s 50% šancí na výskyt 2. až 5. lvl magické zbraně.
ARMOR,5,5/name/Bruiser/hue/300/durability/200
vytvoří náhodný kus magického brnění 5. levelu se jménem "Bruiser" v modré barvě a durabilitou 200.
ogre/ADD,0.5/<ARMOR,5,5/name/Bruiser/hue/300/durability/200>
vytvoří stejný (výše zmiňovaný) kus brnění do ogrova balíčku s 50% šancí na výskyt.
GIVE/WEAPON,5,5
vytvoří (do balíčku playera/moba) 5. lvl magické zbraně playerovi, který spustil (triggnul) spawner.
woodenchest/ADD/WEAPON,3,5/ADD/ARMOR,3,4/ADD/ARMOR,3,4/ADD/POTION/ADD/SCROLL,4,6/ADD,.1/<WEAPON,2,3/slayer/elementalban>
vytvoří bednu s magickou zbraní, dva kusy magicého brnění, lektvar, svitek, a příležítostně (10%) zbraň 2. až 3. lvl se slayerem "elementalban".
Zde je seznam aktuálních "loot" příkazů:
ARMOR,min,max - vytvoří náhodný kus magického brnění, štítu, nebo šperku s levelem mezi vámi stanovenými min/max hotnotami. Minimum je stanoveno na 0 a maximum na hodnotu 5, kdy s hodnotou 5 dostáváte nejsilnější věc.
WEAPON,min,max - dělá to samé pro zbraně.
JEWELRY,minlevel,maxlevel - vytvoří náhodný šperk podle vámi stanovené min/max hodnoty.
JWEAPON,min,max - vytvoří náhodnou magickou zbraň nebo šperk.
JARMOR,min,max - vytvoří náhodný kus magického brnění nebo šperku.
SCROLL,mincircle,maxcircle - vytvoří náhodný svitek mezi "mincircle" a "maxcircle".
POTION - vytvoří náhodný lektvar
NECROSCROLL,index - vytvoří necro-svitek zadaný indexem.
SHIELD,minlev,maxlev - vytvoří náhodný kus magického štítu s levelem mezi vámi stanovenými min/max hotnotami. (Min/Max -> 0/5)
SARMOR,minlev,maxlev - vytvoří náhodný kus magického brnění nebo štítu.
LOOTPACK,loottype - může být použit k přidání předmětu nějakému mobu, nebo kontejneru používáním "the distro lootpack" systému. Můžete použít typy lootu jako: poor, meager, average, rich, filthyrich, ultrarich, superboss. Jestliže je příkaz použit v triggovacím spawnu, bude hodnota Luck (triggujícího mobu) hrát roli při vytváření lootu (jinak je standartní hodnota lucku započítávána jako 0 při vytváření lootu). Kvůli způsobu vytváření lootu "distro lootpackem", se lootpacky přidávané do kontejnerů nebudou hromadit (stackovat).
LOOT,methodname - poskytuje vám možnost vyvolat libovolnou třídu lootu pro vytváření náhodného lootu.
"method" musí být jednou z public static methods v Loot class bez argumentu a musí obsahovat nějaký předmět.
Pro vytvoření náhodné sošky použijte například příkaz
LOOT,RandomStatue
kde RandomStatue() je definováno jako static Loot class method což vyústí v náhodnou sošku.
Další "Loot methods", které jsou součástí standartní 1.0.0 distribuce zahrnují, Gems, clothing, Wands, Reagents, Instruments, a jiné, takže všechny z následujících příkazů by mely být platné
LOOT,RandomGem
LOOT,RandomClothing
LOOT,RandomWand
LOOT,RandomReagent
LOOT,RandomInstrument
LOOT,RandomNecromancyReagent
LOOT,RandomArmorOrShieldOrWeaponOrJewelry
LOOT,RandomGrimmochJournal
Můžete také definovat svoje vlastní methods v Loot.cs k vytváření odlišných předmětů.
Například když používáte doplněk XmlSocket s modifikovaným Loot.cs, můžete vytvářet náhodné rozšíření použitím:
LOOT,RandomAugment
Jako ostatní příkazy může být tento použit k vytvoření náhodných předmětů nebo jejich přidávání do mobů nebo kontejnerů použitím příkazu "ADD".
Například když chcete vytvořit orka nesoucího náhodnou sošku, můžete použít následující syntaxi:
orc/ADD/LOOT,RandomStatue
můžete také libovolně měnit vlastnosti vytvářených předmetů stejně jako u jiných předmětů:
LOOT,RandomReagent/amount/RND,10,20
Pro vytvoření náhodného reagentu s náhodným množstvím od 10 do 20ti kusů.
I keep getting a "Property doesn't exist LOOTPACK,superboss"
QUOTE (Deathbringer @ August 12, 2006 11:33 am) |
I keep getting a "Property doesn't exist LOOTPACK,superboss" |
post the exact spawn entry that you are using. That error indicates that the entry is not properly formatted.
How would ya spawna static item with a name? I tried Walrus/ADD/Static,8051/Name Walrus fur
yet it spawns as just fur
QUOTE (Hanse46 @ March 24, 2008 08:03 am) |
How would ya spawna static item with a name? I tried Walrus/ADD/Static,8051/Name Walrus fur
yet it spawns as just fur |
Walrus/ADD/<Static,8051/Name/Walrus fur>
The grouping brackets <> indicate that when you set the Name property using '/Name/Walrus fur' that it should apply to the Static and not the Walrus.
The syntax of any spawned item is
object/property/value/property/value/...
so in this case the object is the Static, the property is 'Name' and the value is 'Walrus fur'
For the Walrus, the object is the Walrus, the property is the special keyword ADD, and the value is the Static item that is in <>
QUOTE (ArteGordon @ August 12, 2006 07:02 pm) |
QUOTE (Deathbringer @ August 12, 2006 11:33 am) | I keep getting a "Property doesn't exist LOOTPACK,superboss" |
post the exact spawn entry that you are using. That error indicates that the entry is not properly formatted.
|
Im having the same problem...
I use:
orc/LOOTPACK,Superboss
What's wrong?
I'm trying to create a boss that will drop a super item - similar to that which you would get from a valorite hammer on an OSI shard or the like.
I have it set currently at WEAPON,5,5 and it just doesn't seem powerful enough (the server I play has insane drop).
I want the item to spawn with 3 attributes with set percentages, on top of the attributes the item would spawn with by doing WEAPON,5,5.
I want the first attribute to be at 50%
The second attribute to be between 40-45%
and the Third attribute to be between 35-40%
<spellchanneling 1 or 0>
I've figured out the spellchanneling, and I've figured out how to get the percentages on attributes that I set myself, but how can I get the percentages on RANDOM attributes?
Any help on how I would pull this off? Or is it even possible?