Ryandor.com https://ryandor.com/forum/ |
|
registering custom map https://ryandor.com/forum/viewtopic.php?f=2&t=1950 |
Page 1 of 1 |
Author: | kilobit [ Sat Aug 28, 2004 5:34 pm ] |
Post subject: | registering custom map |
Im kindof lost as to how to add my new map. here is the scenario I have a new map its the same size as ilshenar. I have been using the ilshenar settings for the map, but now i want to register a new map within mapdefinitions.cs so when someone marks a rune, etc it doesnt say ilshenar. here is some code in mapdef*.cs Code: RegisterMap( 0, 0, 0, 6144, 4096, 4, "Felucca", MapRules.FeluccaRules ); RegisterMap( 1, 1, 0, 6144, 4096, 0, "Trammel", MapRules.TrammelRules ); RegisterMap( 2, 2, 2, 2304, 1600, 1, "Ilshenar", MapRules.FeluccaRules ); RegisterMap( 3, 3, 3, 2560, 2048, 1, "Malas", MapRules.TrammelRules ); RegisterMap( 4, 2, 2, 2304, 1600, 3, "Mythosa", MapRules.FeluccaRules ); RegisterMap( 0x7F, 0x7F, 0x7F, Map.SectorSize, Map.SectorSize, 1, "Internal", MapRules.Internal ); Now have i done this correctly? If so how does it know what facet im currently in if ilshenar and mythosa are the same map? question 2: In my publicmoongates.cs file i added stuff there and as well as the cliloc.enu file because i didnt want it to say ilshenar on the mongate. I cant seem to get this right. here is th code that i have edited. Code: // count += MoonGen( PMList.Trammel ); // count += MoonGen( PMList.Felucca ); // count += MoonGen( PMList.Ilshenar ); // count += MoonGen( PMList.Malas ); count += MoonGen( PMList.Mythosa ); and, Code: public static readonly PMList Mythosa = new PMList( 600000, 1012001, Map.Ilshenar, new PMEntry[] { new PMEntry( new Point3D( 2043, 644, 7 ), "Halo" ), // Moonglow new PMEntry( new Point3D( 1171, 996, 5 ), "Sandhead" ), // Britain new PMEntry( new Point3D( 635, 463, 5 ), "Ruins" ), // Jhelom new PMEntry( new Point3D( 497, 647, 4 ), "Brookshire" ), // Yew new PMEntry( new Point3D( 1136, 656, 5 ), "Ice Isle" ), // Minoc // new PMEntry( new Point3D( 1828, 2948,-20), 1012008 ), // Trinsic // new PMEntry( new Point3D( 643, 2067, 5 ), 1012009 ), // Skara Brae // new PMEntry( new Point3D( 3563, 2139, 34), 1012010 ), // Magincia // new PMEntry( new Point3D( 2711, 2234, 0 ), 1019001 ) // Buccaneer's Den } ); and since i do not want to use any other facets Code: public static readonly PMList[] UORLists = new PMList[]{ Mythosa };
public static readonly PMList[] LBRLists = new PMList[]{ Mythosa }; public static readonly PMList[] AOSLists = new PMList[]{ Mythosa }; public static readonly PMList[] RedLists = new PMList[]{ Mythosa }; Thanks for helping:)[/quote] |
Author: | kirax2 [ Mon Aug 30, 2004 10:49 am ] |
Post subject: | |
I think I can help you with the first question at least. AFAIK, Ultima currently recognizes maps *only* from 0-3. This means that instead of keeping the Ilsh definition, you'll want to actually replace it with the new map definition for map 2. You won't be able to use the Ilshenar map, but since you only want to use Mythosa, this shouldn't be a problem, I would think. ^_^ Hope this helps, and that people will correct me if I'm wrong. ^_^; Good luck! -Janice aka Sparkle! |
Author: | Dian [ Mon Aug 30, 2004 11:01 am ] |
Post subject: | |
That will work for registering a new mapDefinition.. but thats exactly what it is, a definition of a map. What you have done there, is basicly added a second facet to Map3.mul. If you are starting fresh anyways, that will work allright, just set all instances that call for Ileshnar to that new facet name, Mythosa. You should be able to just set the name for marking runes in the RecallRune.cs Or, since you are editing the Cliloc files anyways, just change the Ileshnar entry that the recall rune uses to Mythosa. Theres a couple ways to do what you want, as you can see. For PublicMoongate, (Im running out of time here) Search on RunUO forums for PublicMoongate within the Script Submission forum, there should be a modified script to enter string text names to the entries, rather than cliloc Localized int numbers. As you were saying, add cliloc names of your own, and change the exsisting numbers in the default script to match your new cliloc names. (you cant enter a string (text) name where the script is wanting an int (number) ). |
Page 1 of 1 | All times are UTC - 7 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |