|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Ideally I want to learn to edit publicmoongate.cs to show my own custom areas--i've looked at the script. From what I can tell I need to have certain numbers that denote the name of the place...like Yew or what not. But how do I edit these numbers and what do I do?
Code:
public static readonly PMList Trammel =
new PMList( 1012000, 1012012, Map.Trammel, new PMEntry[]
{
new PMEntry( new Point3D( 4467, 1283, 5 ), 1012003 ), // Moonglow
new PMEntry( new Point3D( 1336, 1997, 5 ), 1012004 ), // Britain
new PMEntry( new Point3D( 1499, 3771, 5 ), 1012005 ), // Jhelom
new PMEntry( new Point3D( 771, 752, 5 ), 1012006 ), // Yew
new PMEntry( new Point3D( 2701, 692, 5 ), 1012007 ), // 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( 3763, 2771, 50), 1046259 ) // Haven
} );
![]() |
|
|
|
|
|
|
#2 (permalink) |
|
Forum Novice
Join Date: Feb 2004
Age: 37
Posts: 342
|
( 4467, 1283, 5 ), 1012003 ), // Moonglow
the ones in red, you could find out by going in-game on a char that has access to the command and do the [where command at the point that you want them to be transported to; then use those coordinates in the scripts. the ones in blue, would be the name of the custom region |
|
|
|
|
|
#3 (permalink) |
|
UO Gamers: Demise Administrator
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
|
To clarify:
Those numbers are CLILOC Numbers. CLIent LOCalisation numbers. Those numbers tell the client what word(s) to show. This way, no matter what language the player's client uses (French, English, Japanese, etc), it will show the proper name in that language. Of course, anything after the // is just a comment, and means nothing to the script compiler (You could put your phone number there, and it wouldn't affect anything :-P)
__________________
psz Demise' Creator (Retired) The RunUO.com Forum Moderator Team Former Official RunUO Scripter (Retired) Websites: My 360 Blog My Gaming Site(Old Link) My Gaming Site(New Link) |
|
|
|
|
|
#4 (permalink) | |
|
Quote:
((BTW THANKS SO MUCH! )) |
||
|
|
|
|
|
#5 (permalink) |
|
UO Gamers: Demise Administrator
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
|
You don't create new numbers, usually. You replace the numbers with a string. This way you can use any text (Though it will show up in English on ALL clients, regardless of language)
__________________
psz Demise' Creator (Retired) The RunUO.com Forum Moderator Team Former Official RunUO Scripter (Retired) Websites: My 360 Blog My Gaming Site(Old Link) My Gaming Site(New Link) |
|
|
|
|
|
#7 (permalink) | |
|
Greatwizard
Join Date: Mar 2004
Location: orange county, CA
Age: 27
Posts: 1,111
|
[quote=DarkJustin]
Quote:
also dont listen to what psz said about the comments, cuz if you put your phone # in there.. somebody will get a copy out on the internet and youll be hounded till you cancel your service. |
|
|
|
|
|
|
#9 (permalink) |
|
Justin started ont his cuz i asked him if he could do it cuz i coudlnt lol ......
new PMEntry( new Point3D( 3763, 2771, 50), 1046259 ) // Haven lets say instead of "Haven" i want it to say "Bluegrass" new PMEntry( new Point3D( 3763, 2771, 50), "Bluegrass" ) // Bluegrass new PMEntry( new Point3D( 3763, 2771, 50), 0, "Bluegrass" ) // Bluegrass those i've tried and they dont work so what do i put in there?
__________________
I'm not as think as u drunk i am. :P |
|
|
|
|
|
|
#10 (permalink) |
|
something to note - i realize that for this i left the coord's the same as haven but they werent the same when i was trying before i had just reverted back to the original file and dont have it saved anymore
__________________
I'm not as think as u drunk i am. :P |
|
|
|
|
|
|
#11 (permalink) |
|
It didn't work...
![]() Started with: Code:
public static readonly PMList Trammel =
new PMList( 1012000, 1012012, Map.Trammel, new PMEntry[]
{
new PMEntry( new Point3D( 4467, 1283, 5 ), 1012003 ), // Moonglow
new PMEntry( new Point3D( 1336, 1997, 5 ), 1012004 ), // Britain
new PMEntry( new Point3D( 1499, 3771, 5 ), 1012005 ), // Jhelom
new PMEntry( new Point3D( 771, 752, 5 ), 1012006 ), // Yew
new PMEntry( new Point3D( 2701, 692, 5 ), 1012007 ), // 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( 3763, 2771, 50), 1046259 ) // Haven
} );
Code:
public static readonly PMList Trammel =
new PMList( 1012000, 1012012, Map.Trammel, new PMEntry[]
{
new PMEntry( new Point3D( 3708, 2106, 20 ), "Bluegrass Town Center" ), // Bluegrass Town Center
new PMEntry( new Point3D( 4467, 1283, 5 ), 1012003 ), // Moonglow
new PMEntry( new Point3D( 1336, 1997, 5 ), 1012004 ), // Britain
new PMEntry( new Point3D( 1499, 3771, 5 ), 1012005 ), // Jhelom
new PMEntry( new Point3D( 771, 752, 5 ), 1012006 ), // Yew
new PMEntry( new Point3D( 2701, 692, 5 ), 1012007 ), // 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( 3763, 2771, 50), 1046259 ) // Haven
} );
Code:
-Error: Scripts\Items\Misc\PublicMoongate.cs: CS1502: (line 211, column 6) The best oberloaded method math for 'Server.Items.PMEntry.PMEntry(Server.Point3D, int)' has some invalid arguments -Error: Scripts\Items\Misc\PublicMoongate.cs: CS1503: (line 211, column 50) Argument '2': cannot convert from 'string' to 'int' I am completly lost now--are there any other things that i have to edit to add this thing to my gump without crashing my server? |
|
|
|
|
|
|
#12 (permalink) | |
|
Greatwizard
Join Date: Mar 2004
Location: orange county, CA
Age: 27
Posts: 1,111
|
Quote:
PMEntry function to use a string rather than an int because right now it will be somthing like PMEntry( Point3D location, int clilocnumber ) |
|
|
|
|
|
|
#13 (permalink) | |
|
Quote:
To change it so it takes out the int number all i do is... Code:
public PMList( int number, int selNumber, Map map, PMEntry[] entries ) |
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|