uoguy said:
yeah been wondering y he was banned n what makes him a newb?......how do i add creatures with tokens ?! as in spawners? O and Btw to add tokens do [add tokens # (#) for the amount u want or do [add tok to see what other token related items there are
Ok, despite what the late Dupre says, his instructions were not complete to have tokens dropped from each and every monster. Tru is false in telling you that the mods to lootpack.cs are found in this thread, he explains it quite well in another thread entirely (thx Tru). I got it to work quite well by piecing together info from 2 different threads, so here it is (remember to back up your files before you make permanent changes to them).
First, edit scripts/misc/lootpack.cs: find the lines...
private static readonly LootPackItem[] Gold = new LootPackItem[]
{
new LootPackItem( typeof( Gold ), 1 )
};
copy those four lines and paste them underneath. Change "Gold" on both lines to "Tokens" (must be plural, with the "s"). Should look like so:
private static readonly LootPackItem[] Gold = new LootPackItem[]
{
new LootPackItem( typeof( Gold ), 1 )
};
private static readonly LootPackItem[] Tokens = new LootPackItem[]
{
new LootPackItem( typeof( Tokens ), 1 )
};
Next, find the lines:
public static readonly LootPack AosPoor = new LootPack( new LootPackEntry[]
{
new LootPackEntry( true, Gold, 100.00, "1d10+10" ),
new LootPackEntry( false, MagicItems, 0.02, 1, 5, 0, 90 ),
new LootPackEntry( false, Instruments, 0.02, 1 )
} );
These are definitions of different loot templates. The above clip is the definition for AOSPoor loot type. Copy and paste the following line underneath itself:
new LootPackEntry( true, Gold, 100.00, "1d10+10" ),
Change "Gold" to "Tokens" in the copied line. Do this to every definition in lootpack.cs (or at least the loot types you want dropping tokens). You can also modify the chance and ammount of tokens dropped by changing the numbers in the line. By using the above line as an example, the 100.00 is the % chance that a monster will have tokens when spawned and the 1d10+10 is the ammount (1d10=1-10, +10. So the actual range is 11-21).
Next, Dupre coded the tokens themselves to be blesed, so when you kill the monster carrying the tokens you won't see them drop. Lets fix that. Edit token.cs, look for the line:
LootType = LootType.Blessed;
Find it, highlight it and delete it.
These steps should allow you to see tokens on all monsters that should have them. Test it by simply adding a monster and killing it ([add "monstername"). Existing spawn won't have tokens until respawned.
Thanks to Tru and a couple others for the info in other threads (cant remember nicknames offhand)