Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 04-23-2004, 07:40 PM   #1 (permalink)
 
Join Date: Jul 2003
Posts: 37
Send a message via ICQ to DarkJustin Send a message via AIM to DarkJustin
Question Where do these numbers come from?

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
	} );
Lets take //Haven for example--I know that the location of the Haven Moongate is denoted under Point3d...but the text that haven comes up as is denoted under 1046259...right? If not then what do I need to do to add my own. What ranges do I need to change--where can I find help? LOL! YAY for the inquisitive mind...
DarkJustin is offline   Reply With Quote
Old 04-23-2004, 07:56 PM   #2 (permalink)
Forum Novice
 
DarkeWolf's Avatar
 
Join Date: Feb 2004
Age: 37
Posts: 342
Default not Much help, but a little

( 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
DarkeWolf is offline   Reply With Quote
Old 04-23-2004, 08:12 PM   #3 (permalink)
psz
UO Gamers: Demise Administrator
 
psz's Avatar
 
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
Default

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)
psz is offline   Reply With Quote
Old 04-23-2004, 08:17 PM   #4 (permalink)
 
Join Date: Jul 2003
Posts: 37
Send a message via ICQ to DarkJustin Send a message via AIM to DarkJustin
Default

Quote:
Originally Posted by psz
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)
Ok--then how do I know what CLILOC numbers to put there--to make my custom name...lets say Blugrass Town Center...is there some special place to code those numbers and what not?

((BTW THANKS SO MUCH! ))
DarkJustin is offline   Reply With Quote
Old 04-23-2004, 08:18 PM   #5 (permalink)
psz
UO Gamers: Demise Administrator
 
psz's Avatar
 
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
Default

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)
psz is offline   Reply With Quote
Old 04-23-2004, 08:25 PM   #6 (permalink)
 
Join Date: Jul 2003
Posts: 37
Send a message via ICQ to DarkJustin Send a message via AIM to DarkJustin
Default

[quote=psz]You replace the numbers with a string. QUOTE]

So, instead of the numbers i can just replace them with text--thanks so much! Hehe this isn't SOO bad...
DarkJustin is offline   Reply With Quote
Old 04-23-2004, 08:27 PM   #7 (permalink)
Greatwizard
 
sidsid's Avatar
 
Join Date: Mar 2004
Location: orange county, CA
Age: 27
Posts: 1,111
Exclamation

[quote=DarkJustin]
Quote:
Originally Posted by psz
You replace the numbers with a string. QUOTE]

So, instead of the numbers i can just replace them with text--thanks so much! Hehe this isn't SOO bad...
remember to put the text in quotes. =)

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.
sidsid is offline   Reply With Quote
Old 04-23-2004, 08:29 PM   #8 (permalink)
 
Join Date: Jul 2003
Posts: 37
Send a message via ICQ to DarkJustin Send a message via AIM to DarkJustin
Default

heheh yay! :-p i love being hounded...lol
DarkJustin is offline   Reply With Quote
Old 04-23-2004, 08:44 PM   #9 (permalink)
 
Join Date: Oct 2003
Location: Independence, KY
Age: 22
Posts: 42
Send a message via ICQ to Darkdanny Send a message via AIM to Darkdanny Send a message via MSN to Darkdanny Send a message via Yahoo to Darkdanny
Default

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
Darkdanny is offline   Reply With Quote
Old 04-23-2004, 08:50 PM   #10 (permalink)
 
Join Date: Oct 2003
Location: Independence, KY
Age: 22
Posts: 42
Send a message via ICQ to Darkdanny Send a message via AIM to Darkdanny Send a message via MSN to Darkdanny Send a message via Yahoo to Darkdanny
Default

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
Darkdanny is offline   Reply With Quote
Old 04-23-2004, 08:50 PM   #11 (permalink)
 
Join Date: Jul 2003
Posts: 37
Send a message via ICQ to DarkJustin Send a message via AIM to DarkJustin
Default It didn't work...

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
				} );
And then I added:
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
				} );
Then I got this error:

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'
The line 211 is the extra line I added for my bluegrass point...
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?
DarkJustin is offline   Reply With Quote
Old 04-23-2004, 08:52 PM   #12 (permalink)
Greatwizard
 
sidsid's Avatar
 
Join Date: Mar 2004
Location: orange county, CA
Age: 27
Posts: 1,111
Post

Quote:
Originally Posted by Darkdanny
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?
you may have to change them all to Strings and then change
PMEntry function to use a string rather than an int because right now
it will be somthing like

PMEntry( Point3D location, int clilocnumber )
sidsid is offline   Reply With Quote
Old 04-23-2004, 08:57 PM   #13 (permalink)
 
Join Date: Jul 2003
Posts: 37
Send a message via ICQ to DarkJustin Send a message via AIM to DarkJustin
Default

Quote:
Originally Posted by sidsid
you may have to change them all to Strings and then change
PMEntry function to use a string rather than an int because right now
it will be somthing like

PMEntry( Point3D location, int clilocnumber )

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 )
Completly take out the int number thing--right? or do i need to put something in its place?
DarkJustin is offline   Reply With Quote
Old 04-23-2004, 09:08 PM   #14 (permalink)
 
Join Date: Oct 2003
Location: Independence, KY
Age: 22
Posts: 42
Send a message via ICQ to Darkdanny Send a message via AIM to Darkdanny Send a message via MSN to Darkdanny Send a message via Yahoo to Darkdanny
Default

justin yours says public PMList we want PMEntry
__________________
I'm not as think as u drunk i am. :P
Darkdanny is offline   Reply With Quote
Old 04-23-2004, 09:11 PM   #15 (permalink)
 
Join Date: Oct 2003
Location: Independence, KY
Age: 22
Posts: 42
Send a message via ICQ to Darkdanny Send a message via AIM to Darkdanny Send a message via MSN to Darkdanny Send a message via Yahoo to Darkdanny
Default

thank you all though for your continued help and support, we really appreciate it
__________________
I'm not as think as u drunk i am. :P
Darkdanny is offline   Reply With Quote
Old 04-23-2004, 09:32 PM   #16 (permalink)
 
Join Date: Jul 2003
Posts: 37
Send a message via ICQ to DarkJustin Send a message via AIM to DarkJustin
Unhappy All out of...

I am completly out of ideas--I dont' really know what to do next... I tried to change all the associated files to strings...but it didn't work just more errors...
DarkJustin is offline   Reply With Quote
Old 04-24-2004, 02:16 AM   #17 (permalink)
 
Join Date: Jul 2003
Posts: 37
Send a message via ICQ to DarkJustin Send a message via AIM to DarkJustin
Default

Sid you still out there? I could really use your help on this...stupid proggin'
DarkJustin is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5