Full Version : map question
xmlspawner >>Scripting Support >>map question
<< Prev | Next >>
ambak- 01-25-2006
in my shard trammel is disabled.but in the paragon chest a trammel map can be drop randomly.
i looked at the paragonchest.cs and found this

CODE
DropItem( new TreasureMap( level + 1, ( Utility.RandomBool() ? Map.Felucca : Map.Trammel ) ) );

and chance it like that

CODE
DropItem( new TreasureMap( level + 1, ( Utility.RandomBool() ? Map.Felucca : Map.Felucca ) ) );

but players said they still can drop trammel maps!why can this be?
ArteGordon- 01-25-2006
they could still be getting them from regular treasuremapchests in TreasureMapChest.cs or by
ambak- 01-25-2006
there is nothing releted with trammel in treasuremapchest
ArteGordon- 01-25-2006

CODE
public static void Fill( LockableContainer cont, int level ) { cont.Movable = false; cont.Locked = true; if ( level == 0 )
{
cont.LockLevel = 0; // Can't be unlocked
cont.DropItem( new Gold( Utility.RandomMinMax( 50, 100 ) ) );
if ( Utility.RandomDouble() < 0.75 )
cont.DropItem( new TreasureMap( 0, Map.Trammel ) );
}

ambak- 01-25-2006
ok i know it but its not trammel in me its felucca in my script

CODE
public static void Fill( LockableContainer cont, int level ) { cont.Movable = false; cont.Locked = true; if ( level == 0 )
{
cont.LockLevel = 0; // Can't be unlocked
cont.DropItem( new Gold( Utility.RandomMinMax( 50, 100 ) ) );
if ( Utility.RandomDouble() < 0.75 )
cont.DropItem( new TreasureMap( 0, Map.Felucca ) );

ArteGordon- 01-25-2006
I dont know why you would be getting tram maps from chests then.