[Orion] Player Transformation Graphics

Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Post Reply
MagicUser
Adept Scribe
Posts: 47
Joined: Mon Nov 03, 2014 2:24 pm
Location: PST

[Orion] Player Transformation Graphics

Post by MagicUser »

I was working on improving an attribute accumulator script and decided to show what the current transformation of the selected mobile.

Below you can see a dictionary of all the graphics a player could be in. Including the Halloween graphics. Don't forget that mob graphics and player transformation graphics are the same, so be wary of that in your applications.

Code: Select all

//Returns a dictionary full of player graphics (Dictionary[Key - Graphics : Value - Name])
function getGraphicDictionary() {
	var dict = {};
	
	//Halloween Costumes.
	//Category: All Player
	dict['0x0023'] = 'Lizard Man';
	dict['0x0308'] = 'Minion';
	dict['0x0027'] = 'Mongbat';
	dict['0x0011'] = 'Orc';
	dict['0x0032'] = 'Skeleton';
	dict['0x0095'] = 'Succubus';
	dict['0x004C'] = 'Titan';
	dict['0x0035'] = 'Troll';
	dict['0x02F4'] = 'Exodus Overseer';
	dict['0x009A'] = 'Mummy';
	dict['0x0040'] = 'Panda Bear';
	dict['0x0018'] = 'Lich';
	dict['0x00F0'] = 'Kappa';
	dict['0x004A'] = 'Imp';
	dict['0x0004'] = 'Gargoyle';
	dict['0x00F7'] = 'Fan Dancer';
	dict['0x0080'] = 'Fairy';
	//John Warren's Fairy.
	dict['0x00B0'] = 'Fairy';
	dict['0x0012'] = 'Ettin';
	dict['0x000E'] = 'Earth Elemental';
	dict['0x004B'] = 'Cyclops';
	dict['0x0065'] = 'Centaur';
	
	//Category: 1 year vets
	dict['0x000F'] = 'Fire Elemental';
	dict['0x0056'] = 'Ophidian Warrior';
	dict['0x0048'] = 'Tarathan Matriarch';
	dict['0x0314'] = 'Sphinx';
	dict['0x0088'] = 'Tritan';
	dict['0x0039'] = 'Skeletal Knight';
	dict['0x005A'] = 'Bidpedal Cow';
	dict['0x00FC'] = 'Lady Of The Snow';
	dict['0x012F'] = 'Devourer Of Souls';
	dict['0x02F5'] = 'Exodus Minion';
	dict['0x0318'] = 'Chaos Daemon';
	dict['0x000D'] = 'Poison Elemental';
	dict['0x0010'] = 'Water Elemental';
	dict['0x0108'] = 'Irk';
	dict['0x0007'] = 'Orc Captain';
	
	//Category: 2 year vets
	dict['0x017D'] = 'Grim Reaper';
	dict['0x017E'] = 'Shadow Priestess';
	dict['0x010F'] = 'Satyr';
	dict['0x0089'] = 'Ignus';
	dict['0x00AB'] = 'Mushroom';
	dict['0x0310'] = 'Arcane Demon';
	dict['0x0300'] = 'Juggernaut';
	
	//Werewolf
	dict['0x00B3'] = 'Were Wolf';
	
	//Human
	dict['0x0190'] = 'Male';
	dict['0x0191'] = 'Female';
	dict['0x0192'] = 'Ghost';
	
	//Animal Forms
	dict['0x0084'] = 'Kirin';
	dict['0x007A'] = 'Unicorn';
	dict['0x00F6'] = 'Bake-kitsune';
	dict['0x00E1'] = 'Wolf';
	dict['0x00DC'] = 'Llama';
	dict['0x00DA'] = 'Ostard';
	dict['0x0051'] = 'Bullfrog';
	dict['0x0015'] = 'Giant Serpant';
	dict['0x00D9'] = 'Dog';
	dict['0x00C9'] = 'Cat';
	dict['0x00EE'] = 'Rat';
	dict['0x00CD'] = 'Rabbit';
	
	//Polymorph Forms
	dict['0x00D0'] = 'Chicken';
	dict['0x00D6'] = 'Panther';
	dict['0x001D'] = 'Gorilla';
	dict['0x00D3'] = 'Black Bear';
	dict['0x00D4'] = 'Grizzly Bear';
	dict['0x00D5'] = 'Polar Bear';
	dict['0x0033'] = 'Slime';
	dict['0x0001'] = 'Ogre';
	dict['0x0009'] = 'Daemon';
	
	//Cleric Forms
	dict['0x007B'] = 'Angel';
	
	//Necro Forms
	dict['0x02EA'] = 'Horrific Beast';
	dict['0x02ED'] = 'Wraith';
	
	return dict;
}
Below is a possible application of such a dictionary, in case you are unfamiliar with dictionaries.

Code: Select all

var graphics = getGraphicDictionary();
Orion.Print(graphics[Orion.FindObject('self').Graphic()]);
As a side note, these graphics are the same in UOSteam. The code would not work in UOSteam, but you could still use the graphics.

Feel free to offer comments and/or corrections.
Respectfully,
Paroxysmus ILV Master Spellcaster
Lejind
Passer by
Posts: 1
Joined: Thu Oct 07, 2021 4:37 am

Re: [Orion] Player Transformation Graphics

Post by Lejind »

I had to Google John Warren. So you can change your player's graphic with basically 1 line of code--I'm going to have some fun experimenting with this. Might tie it to Vampiric form; I always wished the graphic for that was more obvious.
MagicUser
Adept Scribe
Posts: 47
Joined: Mon Nov 03, 2014 2:24 pm
Location: PST

Re: [Orion] Player Transformation Graphics

Post by MagicUser »

I think you misunderstood, Lijind. I am not changing any of the game's graphics. This is a method of getting the name of a graphic for aesthetic purposes. I went through and got all the game graphics and then assigning them a name. Warren has a special fairy graphic for some reason. Honestly have no idea why, but its different from the one in the Halloween room. I have not run into that problem with anyone else. When I post the application of this, you'll see. I just haven't had time to get back to commenting it this week.
Respectfully,
Paroxysmus ILV Master Spellcaster
User avatar
qbf
Legendary Scribe
Posts: 594
Joined: Mon Oct 11, 2010 11:40 pm

Re: [Orion] Player Transformation Graphics

Post by qbf »

MagicUser wrote:
Thu Oct 14, 2021 4:26 pm
Warren has a special fairy graphic for some reason. Honestly have no idea why, but its different from the one in the Halloween room. I have not run into that problem with anyone else.
It's pretty obvious isn't it? Johnny Warren is a beast who defies being placed into your standard groupings.
Johnny Warren!
Post Reply