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!

Please check this script

Clarke76

Wanderer
Please check this script

Ok, this is a stupid script, but I'm just learning and wanted to start real small.

COW:

[code:1]using System;
using Server.Mobiles;

namespace Server.Scripts.Mobiles.Monsters.Melee
{
[CorpseName( "a cow corpse" )]
public class spottedcow : AggressiveAI
{
[Constructable]
public spottedcow()
{
Body = 0xd8;
this.Name = ( "a cow" );

this.InitStats(30,15,0); //Str Dex Int
this.Skills[SkillName.MagicResist].Base = (5.5);
Skills[SkillName.Wrestling].Base = (8.1);
Skills[SkillName.Tactics].Base = (5.5);
}

public spottedcow( 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]
Ok Question is this:
a)Since I'm using an "AggresiveAI" basically the cow is mad and chances ya around the screen. There a way to make it so it wont attack a thing, yet isn't "blue." Or is the AI for this not written yet?
b)is there a way to add sounds...like the death sounds ect. Or is that not possable yet?

-Thanks-
 
N

nelots

Guest
hmm

1) Can't ya just take the Aquirecombatant part of AgressiveAI out, and save as NoneAgressiveAI
2) Or maybe just not give it an AI, haven't tryed either of these.
 

Spooky

Wanderer
Script

To make it so it isnt blue:

For Grey:
this.Criminal = true;

For Red
this.Kills = 100;

For not attacking everything see the orc script an look at the code there to see how it was done.

Lastly The AI is not done yet RunUO is running a base AI only at this stage so things will change as the EMU progresses.
 

Nova

Wanderer
Sounds are easy aswell while using them during a script.
If you use UOInside you can look up the sound id you want your script to play
and then use
[code:1]PlaySound( soundid);[/code:1]
I dont know if this is exactly what you mean, but perhaps it helps
 
Top