Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 09-30-2008, 03:18 PM   #1 (permalink)
Lurker
 
Join Date: Sep 2008
Age: 79
Posts: 4
Default [HELP]ridable ant lion...[HELP]

where i mistake??


Quote:
using System;
using Server;
using Server.Items;


namespace Server.Mobiles
{
[CorpseName( "an ant lion corpse" )]
public class Rantlion : BaseMount
{


[Constructable]
public Rantlion () : this( "a ridable ant lion" )
{
}


[Constructable]
public Rantlion ( string name ) : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{

Body = 787;
BaseSoundID = 1006;

SetStr( 296, 320 );
SetDex( 81, 105 );
SetInt( 36, 60 );

SetHits( 151, 162 );

SetDamage( 7, 21 );

SetDamageType( ResistanceType.Physical, 70 );
SetDamageType( ResistanceType.Poison, 30 );

SetResistance( ResistanceType.Physical, 45, 60 );
SetResistance( ResistanceType.Fire, 25, 35 );
SetResistance( ResistanceType.Cold, 30, 40 );
SetResistance( ResistanceType.Poison, 40, 50 );
SetResistance( ResistanceType.Energy, 30, 35 );

SetSkill( SkillName.MagicResist, 70.0 );
SetSkill( SkillName.Tactics, 90.0 );
SetSkill( SkillName.Wrestling, 90.0 );

Fame = 4500;
Karma = -4500;

VirtualArmor = 45;

Tamable = true;
ControlSlots = 3;
MinTameSkill = 96.3;


PackGem();
PackGem();
PackItem( new Bone() );
PackGold( 125, 175 );

int amount = Utility.RandomMinMax( 1, 10 );

switch ( Utility.Random( 4 ) )
{
case 0: PackItem( new DullCopperOre( amount ) ); break;
case 1: PackItem( new ShadowIronOre( amount ) ); break;
case 2: PackItem( new CopperOre( amount ) ); break;
case 3: PackItem( new BronzeOre( amount ) ); break;
}

PackItem( new FertileDirt( Utility.RandomMinMax( 1, 5 ) ) );
// TODO: skeleton
}

public override int GetAngerSound()
{
return 0x5A;
}

public override int GetIdleSound()
{
return 0x5A;
}

public override int GetAttackSound()
{
return 0x164;
}

public override int GetHurtSound()
{
return 0x187;
}

public override int GetDeathSound()
{
return 0x1BA;
}

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

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
PSPlayer is offline   Reply With Quote
Old 09-30-2008, 03:22 PM   #2 (permalink)
Newbie
 
Join Date: Feb 2008
Location: Germany, BW (in front of my desktop)
Posts: 31
Default

Could you post the error you have with this script, please? Makes it much easier to find the mistake, then
__________________
My Endlish is not the best, but I'm trying my best ;) if you don't understand something because I did it wrong, just ask :D
Djego is offline   Reply With Quote
Old 09-30-2008, 03:25 PM   #3 (permalink)
Lurker
 
Join Date: Sep 2008
Age: 79
Posts: 4
Default

i don't know my mistake...but i think is on BaseMount etc etc...
PSPlayer is offline   Reply With Quote
Old 09-30-2008, 03:30 PM   #4 (permalink)
Forum Novice
 
Tassyon T's Avatar
 
Join Date: Sep 2007
Posts: 367
Default

Nothing about the script you just posted seems to make your and lion ridable. As far as I remember, you need to do TileData.mul edits.

Read this:
Making a Ridable
Tassyon T is offline   Reply With Quote
Old 09-30-2008, 03:32 PM   #5 (permalink)
Newbie
 
Join Date: Feb 2008
Location: Germany, BW (in front of my desktop)
Posts: 31
Default

well, if the problem is that you don't see the mount when sitting on it, then you have to edit your tiledata.mul with for example mulpatcher

just use the forum search
__________________
My Endlish is not the best, but I'm trying my best ;) if you don't understand something because I did it wrong, just ask :D
Djego is offline   Reply With Quote
Old 09-30-2008, 03:35 PM   #6 (permalink)
Lurker
 
Join Date: Sep 2008
Age: 79
Posts: 4
Default

runuo say me about 1 mistake...i cannot login in uo...
PSPlayer is offline   Reply With Quote
Old 09-30-2008, 03:38 PM   #7 (permalink)
Newbie
 
Join Date: Feb 2008
Location: Germany, BW (in front of my desktop)
Posts: 31
Default

Quote:
Originally Posted by PSPlayer View Post
runuo say me about 1 mistake...i cannot login in uo...
so there is a compiling error... please post it, so that we can help you
__________________
My Endlish is not the best, but I'm trying my best ;) if you don't understand something because I did it wrong, just ask :D
Djego is offline   Reply With Quote
Old 09-30-2008, 03:39 PM   #8 (permalink)
Forum Novice
 
Tassyon T's Avatar
 
Join Date: Sep 2007
Posts: 367
Default

You need to tell us what RunUO is saying to you.

Click here for a how-to:
Stuff to try & know when requesting help (Common Problem Solutions).
Tassyon T is offline   Reply With Quote
Old 09-30-2008, 03:48 PM   #9 (permalink)
Lurker
 
Join Date: Sep 2008
Age: 79
Posts: 4
Default

runuo say me CS1501: Line 11 :No overload for method ' BaseMount ' takes ' 6 ' arguments
PSPlayer is offline   Reply With Quote
Old 09-30-2008, 04:09 PM   #10 (permalink)
Forum Novice
 
Soteric's Avatar
 
Join Date: Aug 2006
Location: Russia, Rostov-on-Don
Posts: 772
Send a message via ICQ to Soteric
Default

Look on BaseMount constructor:
Code:
public BaseMount( string name, int bodyID, int itemID, AIType aiType, FightMode fightMode, int rangePerception, int rangeFight, double activeSpeed, double passiveSpeed ) : base ( aiType, fightMode, rangePerception, rangeFight, activeSpeed, passiveSpeed )
It takes 9 arguments, you pass only last 6
Soteric 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