RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Giant Beetle Code Help?

S

Schipio

Guest
Giant Beetle Code Help?

ok i have created this code to make the ridable beetle that is in lbr i should say at this poing i am a total novice at coding creatures.

[code:1]

using System;
using Server.Mobiles;

namespace Server.Scripts.Mobiles.Animals.Mounts
{
public class Beetle : BaseMount
{
[Constructable]
public Beetle() : this( "a beetle" )
{
}

[Constructable]
public Beetle( string name ) : base( name, 0x317, 0x317 )
{
InitStats( Utility.Random( 50, 30 ), Utility.Random( 50, 30 ), 10 );
Skills[SkillName.MagicResist].Base = 25.0 + (Utility.RandomDouble() * 5.0);
Skills[SkillName.Wrestling].Base = 35.0 + (Utility.RandomDouble() * 10.0);
Skills[SkillName.Tactics].Base = 30.0 + (Utility.RandomDouble() * 15.0);
}

public Beetle( Serial serial ) : base( serial )
{
}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );

writer.Write( (int) 0 ); // version
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );

int version = reader.ReadInt();
}
}
}

[/code:1]

and that is fine the giant beetle load's but when i mount it i get a normal tan horse. is thius somthing i have done wrong?
 

Zippy

Razor Creator
You can't make mounts out of things that don't have art for them...

So only horses, ostards, etc will correct when mounted. No ridable dragons, or bettles, or deer... Unless you do the art for them and add them in.


but [code:1]public Beetle( string name ) : base( name, 0x317, 0x317 )
[/code:1]
This is the code that tells RunUO which art to display when you ride something.
 
S

Sum Yung Guy

Guest
Zippy said:
You can't make mounts out of things that don't have art for them...

So only horses, ostards, etc will correct when mounted. No ridable dragons, or bettles, or deer... Unless you do the art for them and add them in.


but [code:1]public Beetle( string name ) : base( name, 0x317, 0x317 )
[/code:1]
This is the code that tells RunUO which art to display when you ride something.

I was riding a Giant Beetle in beta one... I asked someone if they could change the body ID for me

btw Giant Beetles and Swamp Dragons are ridable in UO:LBR
 

Dian

Sorceror
Actually, there is animation for the beetle :D You just have to have the right OnMount animation graphic Id#.. witch, luckily i have..

0x317: mounttype := 0x3ebc; //Giant Beetle (POL E-script version)

public Beetle( string name ) : base( name, 0x317, 0x3ebc )

Any others? :D
 
S

Schipio

Guest
Is there someware you can get all the mount id's for uo lbr
 
Re:

How exactly do you go from

122 2 200 FFFFFFFF 0 1.5 1.5 1.5 equines_unicorn

to

0x007a ?

there r a few i dont know the id's of that i'd like to figure out how to get their ids
 

Dian

Sorceror
All Mount Types --->

Okay, I guess its time...
I spent about 16 hours awhile back breaking down the entire coding list to the mount types. and after all that time, i had actually found the 30, or so OnMount graphic code Id #'s that convert. I will submit it into the Script submitions forum for everyone to have. :D
 
Top