Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 01-07-2005, 04:08 AM   #1 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default RenamePet for players

Read a thread in the script help forum and decided to do this...didn't take all that long.

This is a RenamePet command for players. It allows the player to rename their pet to whatever they want, within limits. The limits are currently almost identicle to the NameVerification.cs with slight differences. You may add/change what you want the players to be able to rename to by simply going into the script and adding/subtracting from the 3 different arrays. Comments are next to each array telling what the array limits. There's also a comment down the script where you can change min/max name lengths.

Usage :
[RenamePet Name Of Pet Here

Spaces and other characters allowed.

Tested minimally, but should be just fine (compiles and doesn't allow the names it's not sposed to). Not much room for bugs I dont think. Please post any you find though!

Enjoy!

PS: And if anyone was wondering why I put the different strings in this file....I like to edit the base files as little as possible
Attached Files
File Type: cs RenamePet.cs (3.4 KB, 78 views)
A_Li_N is offline   Reply With Quote
Old 01-07-2005, 11:58 AM   #2 (permalink)
 
Join Date: Oct 2003
Location: Colorado
Age: 29
Posts: 808
Default

heh thanks man!

Think I'll go ahead and download, for my future shard
__________________
[list][*]Visit Spherical Solaris Website![*]Spherical Solaris Shard[/list:u]
SphericalSolaris is offline   Reply With Quote
Old 01-07-2005, 11:59 AM   #3 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

What is the difference between using this, and renaming the pet via the name/health gump?
XxSP1DERxX is offline   Reply With Quote
Old 01-07-2005, 12:25 PM   #4 (permalink)
 
Join Date: Oct 2003
Location: Colorado
Age: 29
Posts: 808
Default

Well with runuo you cant put spaces or special characters in that health bar, so with this you can.
Refer to:
Gump Script causing server crash
__________________
[list][*]Visit Spherical Solaris Website![*]Spherical Solaris Shard[/list:u]
SphericalSolaris is offline   Reply With Quote
Old 01-07-2005, 12:36 PM   #5 (permalink)
 
Join Date: Oct 2003
Location: Colorado
Age: 29
Posts: 808
Default

A_Li_N to better optimize this script it would be cool if you coul add a gump that has special characters for people who dont know how to make special characters.

Anyway the gump would have all kinds of different special character with a text box at the bottom, each time they pick a special character it gets written to the text box below, when they get all the desired letter/characters then they hit accept and it names their pet whats in the text box.

Just an optimization idea, I wouldnt know how to do.
__________________
[list][*]Visit Spherical Solaris Website![*]Spherical Solaris Shard[/list:u]
SphericalSolaris is offline   Reply With Quote
Old 01-07-2005, 01:42 PM   #6 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default

Quote:
Originally Posted by SphericalSolaris
A_Li_N to better optimize this script it would be cool if you coul add a gump that has special characters for people who dont know how to make special characters.

Anyway the gump would have all kinds of different special character with a text box at the bottom, each time they pick a special character it gets written to the text box below, when they get all the desired letter/characters then they hit accept and it names their pet whats in the text box.

Just an optimization idea, I wouldnt know how to do.
A gump would be nice of course, but since I don't knw how to do the special characters, and I don't particularly like 'leet' spellings of name (which I believe special characters are part of), I will probably not be doing such a thing. But to do it, all you would do is have a text field and a bunch of labels with buttons next to them. When you click the button, it takes what's in the text field and appends the certain character to the text, then re-opens the gump. Also, are we all sure that special characters are visible by the client? Heard rumor that the client displays them as '?'
A_Li_N is offline   Reply With Quote
Old 01-07-2005, 03:14 PM   #7 (permalink)
 
Join Date: Oct 2003
Location: Colorado
Age: 29
Posts: 808
Default

Quote:
Originally Posted by A_Li_N
Also, are we all sure that special characters are visible by the client? Heard rumor that the client displays them as '?'
I am not sure, I have seen people use special character in the game when they are talking, but i dont know if they can use these characters in a name.

Also I hate LeEt also, it doesnt look good but the special characters are cool like
ÊŁęěť or ĊäŋđĮĐǛ§ ŽαБцζǔş
__________________
[list][*]Visit Spherical Solaris Website![*]Spherical Solaris Shard[/list:u]
SphericalSolaris is offline   Reply With Quote
Old 01-07-2005, 04:08 PM   #8 (permalink)
Master of the Internet
 
Quantos's Avatar
 
Join Date: Apr 2003
Location: Edmonton, AB
Age: 41
Posts: 6,867
Send a message via ICQ to Quantos Send a message via AIM to Quantos Send a message via MSN to Quantos Send a message via Yahoo to Quantos
Default

Quote:
Originally Posted by SphericalSolaris
I am not sure, I have seen people use special character in the game when they are talking, but i dont know if they can use these characters in a name.

Also I hate LeEt also, it doesnt look good but the special characters are cool like
ÊŁęěť or ĊäŋđĮĐǛ§ ŽαБцζǔş
I'm not sure about current support for the special characters, but back when Trammel was first introduced, I remember seeing some Chinese symbols in a pet's name. I remember it distinctly, it was on Sonoma, when Trinsic was overrun by the undead - that was a quest that was controlled by that Seer. I can't for the life of me remember the Seer's name though.

I first saw it when I was at the Inn doing fierce battle with the liche's there.
__________________
Paranoia is what happens when you finally have all of the facts.
Quantos 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