Full Version : Escortables...
xmlspawner >>Scripting Support >>Escortables...
<< Prev | Next >>
Galfaroth- 02-11-2006
I have very big problem, because only few of my escortables work...
Towns: Stary Oboz, Nowy Oboz, Klasztor Innosa, Klasztor Adanosa, Klasztor Beliara
doesn't work
Town: Sekta works
Dungeons: Stara Kopalnia, Nowa Kopalnia work...
Why is it so strange? What should I post for you to solve this problem?
ArteGordon- 02-11-2006
are you using regular baseescortables or talkingbaseescortables?
The regular baseescortables are limited by the default escort entries and cannot be given arbitrary region destinations.
Galfaroth- 02-11-2006
I think I tried both...
ArteGordon- 02-11-2006
and are these destination regions defined in regions.xml?
Galfaroth- 02-11-2006
Of course.
ArteGordon- 02-11-2006
have you added the region with an AddRegion call in the appropriate region script in the Scripts/Regions/facetname folders?
Galfaroth- 02-11-2006
Yes. Both: Town.cs and Dungeon.cs.
ArteGordon- 02-11-2006
and when you set the Destination property on the TalkingBaseEscortable to the name that you used in the AddRegion call, does the Destination property show that name?
(edit)
note that normal baseescortables only have a fel dungeons and towns that can be used as escort destinations by default.
If you want to specify any other destination region you must use talkingbaseescortables
Galfaroth- 02-11-2006
Okay, my shard runs on Trammel map (with pvp enabled) and has Trammel Regions, Trammel dungeons etc. Why does town called Sekta work and Town Stary Oboz doesn't? Every town is included in Town.cs and in Region.xml
ArteGordon- 02-11-2006
post the town.cs that contains your problem region.
Galfaroth- 02-11-2006
Scripts/Regions/Trammel/Town.cs:

CODE
using System; using System.Collections; using Server; using Server.Mobiles; using Server.Spells;
namespace Server.Regions
{
public class TrammelTown : GuardedRegion
{
public static new void Initialize()
{
Region.AddRegion( GuardedRegion.Disable( new TrammelTown( "Stary Oboz" ) ) );
Region.AddRegion( GuardedRegion.Disable( new TrammelTown( "Nowy Oboz" ) ) );
Region.AddRegion( GuardedRegion.Disable( new TrammelTown( "Sekta" ) ) );
Region.AddRegion( GuardedRegion.Disable( new TrammelTown( "Klasztor Adanosa" ) ) );
Region.AddRegion( GuardedRegion.Disable( new TrammelTown( "Klasztor Innosa" ) ) );
Region.AddRegion( GuardedRegion.Disable( new TrammelTown( "Klasztor Mrocznych Sztuk" ) ) );
Region.AddRegion( GuardedRegion.Disable( new TrammelTown( "Oboz Orkow" ) ) );
// Region.AddRegion( GuardedRegion.Disable( new TrammelTown( "Buccaneer's Den" ) ) );
//
// Region.AddRegion( new GuardedRegion( "", "Moongates", Map.Trammel, typeof( WarriorGuard ) ) );
}
public TrammelTown( string name ) : this( name, typeof( WarriorGuard ) )
{
}
public TrammelTown( string name, Type guardType ) : base( "the town of", name, Map.Trammel, guardType )
{
}
}
}

Region.xml:

CODE
<?xml version="1.0" encoding="utf-8"?> <ServerRegions> <Facet name="Trammel"> <region priority="0" name="Stary Oboz"> <rect x="2112" y="559" width="157" height="147" />
<go location="(2178,631,0)" />
<music name="Britain1" />
</region>
<region priority="0" name="Nowy Oboz">
<rect x="1235" y="470" width="248" height="231" />
<go location="(1414,550,0)" />
<music name="Minoc" />
</region>
<region priority="0" name="Sekta">
<rect x="2534" y="1757" width="87" height="104" />
<rect x="2621" y="1792" width="65" height="82" />
<rect x="2561" y="1861" width="60" height="22" />
<rect x="2559" y="1577" width="68" height="123" />
<rect x="2580" y="1700" width="47" height="57" />
<go location="(2591,1808,0)" />
<music name="Moonglow" />
</region>
<region priority="0" name="Gniazdo">
<rect x="5212" y="4" width="900" height="700" />
<go location="(5585,361,0)" />
<music name="Stones2" />
</region>
<region priority="0" name="Oboz Orkow">
<rect x="1449" y="2801" width="139" height="162" />
<go location="(1533,2889,0)" />
<music name="Cove" />
</region>
<region priority="0" name="Klasztor Adanosa">
<rect x="621" y="1231" width="79" height="79" />
<rect x="700" y="1271" width="36" height="10" />
<go location="(680,1279,0)" />
<music name="Vesper" />
</region>
<region priority="0" name="Klasztor Innosa">
<rect x="1799" y="1715" width="75" height="70" />
<rect x="1726" y="1761" width="73" height="10" />
<go location="(1802,1765,-5)" />
<music name="Vesper" />
</region>
<region priority="0" name="Klasztor Mrocznych Sztuk">
<rect x="806" y="2101" width="60" height="60" />
<go location="(829,2105,0)" />
<music name="Vesper" />
</region>
<region priority="0" name="Stara Kopalnia">
<rect x="5105" y="807" width="290" height="300" />
<go location="(5367,861,0)" />
<music name="Stones2" />
</region>
<region priority="0" name="Kopalnia Orkow">
<rect x="5399" y="935" width="298" height="296" />
<go location="(5423,1023,0)" />
<music name="Stones2" />
</region>
<region priority="0" name="Nowa Kopalnia">
<rect x="5769" y="825" width="240" height="250" />
<go location="(5991,881,0)" />
<music name="Stones2" />
</region>
<region priority="0" name="Podziemia Wiezy Xardasa">
<rect x="5015" y="28" width="29" height="38" />
<go location="(5031,48,0)" />
<music name="Vesper" />
</region>
<region priority="0" name="Podziemia Klasztoru Mrocznych Sztuk">
<rect x="5062" y="34" width="36" height="40" />
<go location="(5087,47,0)" />
<music name="Vesper" />
</region>
<region priority="0" name="Podziemia Klasztoru Innosa">
<rect x="5016" y="92" width="37" height="43" />
<go location="(5035,114,0)" />
<music name="Vesper" />
</region>
<region priority="0" name="Podziemia Klasztora Adanosa">
<rect x="5076" y="95" width="31" height="36" />
<go location="(5092,112,0)" />
<music name="Vesper" />
</region>
<region priority="0" name="Podziemia Swiatyni Orkow">
<rect x="5021" y="216" width="105" height="230" />
<go location="(5076,333,0)" />
<music name="Vesper" />
</region>
<region priority="0" name="Miejsca Bogow">
<rect x="5018" y="647" width="74" height="33" />
<go location="(5052,667,0)" />
<music name="Vesper" />
</region>
<region priority="0" name="Dungeon Nowego">
<rect x="5050" y="561" width="27" height="27" />
<go location="(5063,576,0)" />
<music name="Dungeon9" />
</region>
<region priority="0" name="Wieza Xardasa">
<rect x="779" y="2695" width="37" height="39" />
<go location="(800,2703,0)" />
<music name="Vesper" />
</region>
<region priority="0" name="Jail">
<rect x="5046" y="493" width="36" height="42" />
<go location="(5063,517,0)" />
<music name="Dungeon9" />
</region>
<region priority="0" name="Kamieniolom">
<rect x="5046" y="445" width="32" height="36" />
<go location="(5060,469,0)" />
<music name="Stones2" />
</region>
<region priority="0" name="Dungeon Sekty">
<rect x="5050" y="605" width="27" height="27" />
<go location="(5063,618,0)" />
<music name="Dungeon9" />
</region>
<region priority="0" name="Dungeon Starego">
<rect x="5032" y="173" width="28" height="32" />
<go location="(5041,193,0)" />
<music name="Dungeon9" />
</region>
<region priority="0" name="Dungeon Opuszczony">
<rect x="5080" y="179" width="31" height="36" />
<go location="(5088,187,0)" />
<music name="Dungeon9" />
</region>
<region priority="0" name="Podziemia Orkow">
<rect x="5027" y="219" width="41" height="52" />
<rect x="5036" y="287" width="82" height="85" />
<rect x="5042" y="386" width="52" height="57" />
<go location="(5078,331,0)" />
<music name="Stones2" />
</region>
</Facet>
<Facet name="Felucca" />
<Facet name="Ilshenar" />
<Facet name="Malas" />
<Facet name="Tokuno" />
</ServerRegions>

ArteGordon- 02-11-2006
and when you create a talkingbaseescortable and set the Destination property to Stary Oboz what happens?
Galfaroth- 02-11-2006
Everything work, but when I enter Stary Oboz the NPC is not giving me money and Compasion and is still going after me. He doesn't even say: We're at the correct place (or sth like that).
ArteGordon- 02-11-2006
when you go to these regions and do a [where, what does it report.
Galfaroth- 02-11-2006
Stary Oboz: Your region is Stary Oboz;
Sekta: Your region is the town of Sekta;
Nowy Oboz: Your region is Nowy Oboz;