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!

Resource icon

[2.x] Nerun's Distro Revision 139

No permission to download

Stealch

Sorceror
Nerun, may be this information is usefull: version of distro (rev 6) are special! I found file "NerunsDistro-r64_toOrbSA.patch". May be you have new version for OrbSA?
 

nerun

Sorceror
I am not working with OrbSA since this patch. I just did it because a friend ask me for a version to OrbSA. But i have no interest in maintain this version.
 

Ashmaul

Wanderer
I have your 2.3 version and I am not able to get this to work with 2.4 I have merged all sorts of files around and I get errors all over the place.
Is there a version for 2.4 that works?
 

Hammerhand

Knight
I have your 2.3 version and I am not able to get this to work with 2.4 I have merged all sorts of files around and I get errors all over the place.
Is there a version for 2.4 that works?
Post your errors please. We really cant help otherwise.
 

Ashmaul

Wanderer
RunUO - [www.runuo.com] Version 2.4, Build 5043.26759
Core: Running on .NET Framework Version 4.0.30319
Core: Optimizing for 4 64-bit processors
RandomImpl: CSPRandom (Software)
Scripts: Compiling C# scripts...failed (4 errors, 1 warnings)
Warnings:
+ Misc/Assistants.cs:
CS0162: Line 99: Unreachable code detected
CS0162: Line 155: Unreachable code detected
Errors:
+ Customs/Nerun's Distro/ML/Mobiles/OrcScout/OrcScout.cs:
CS0019: Line 115: Operator '>=' cannot be applied to operands of type 'Syste
m.DateTime' and 'long'
+ Customs/Nerun's Distro/New/Mobiles/AI/OrcScoutAI.cs:
CS0019: Line 111: Operator '>=' cannot be applied to operands of type 'Syste
m.DateTime' and 'long'
+ Customs/Nerun's Distro/SA/Mobiles/UnderWorld/Goblin/GreenGoblinScout.cs:
CS0019: Line 82: Operator '>=' cannot be applied to operands of type 'System
.DateTime' and 'long'
+ Mobiles/Monsters/Humanoid/Magic/SavageShaman.cs:
CS0029: Line 132: Cannot implicitly convert type 'long' to 'System.DateTime'

CS0029: Line 143: Cannot implicitly convert type 'long' to 'System.DateTime'

Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

Ashmaul

Wanderer
Orc Scout

using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
using Server.Misc;

namespace Server.Mobiles
{
[CorpseName( "an orcish corpse" )]
public class OrcScout : BaseCreature
{
public override InhumanSpeech SpeechType{ get{ return InhumanSpeech.Orc; } }

[Constructable]
public OrcScout() : base( AIType.AI_OrcScout, FightMode.Closest, 10, 7, 0.2, 0.4 )
{
Name = "an orc scout";
Body = 0xB5;
BaseSoundID = 0x45A;

SetStr( 96, 120 );
SetDex( 101, 130 );
SetInt( 36, 60 );

SetHits( 58, 72 );
SetMana( 30, 60 );

SetDamage( 5, 7 );

SetDamageType( ResistanceType.Physical, 100 );

SetResistance( ResistanceType.Physical, 25, 35 );
SetResistance( ResistanceType.Fire, 30, 40 );
SetResistance( ResistanceType.Cold, 15, 25 );
SetResistance( ResistanceType.Poison, 15, 20 );
SetResistance( ResistanceType.Energy, 25, 30 );

SetSkill( SkillName.MagicResist, 50.1, 75.0 );
SetSkill( SkillName.Tactics, 55.1, 80.0 );

SetSkill( SkillName.Fencing, 50.1, 70.0 );
SetSkill( SkillName.Archery, 80.1, 120.0 );
SetSkill( SkillName.Parry, 40.1, 60.0 );
SetSkill( SkillName.Healing, 80.1, 100.0 );
SetSkill( SkillName.Anatomy, 50.1, 90.0 );
SetSkill( SkillName.DetectHidden, 100.1, 120.0 );
SetSkill( SkillName.Hiding, 100.0, 120.0 );
SetSkill( SkillName.Stealth, 80.1, 120.0 );

Fame = 1500;
Karma = -1500;

PackItem( new Apple( Utility.RandomMinMax( 3, 5 ) ) );
PackItem( new Arrow( Utility.RandomMinMax( 60, 70 ) ) );
PackItem( new Bandage( Utility.RandomMinMax( 1, 15 ) ) );

if ( 0.1 > Utility.RandomDouble() )
AddItem( new OrcishBow() );
else
AddItem( new Bow() );
}

public override void GenerateLoot()
{
AddLoot( LootPack.Rich );
}

public override OppositionGroup OppositionGroup
{
get{ return OppositionGroup.SavagesAndOrcs; }
}

public override bool IsEnemy( Mobile m )
{
if ( m.Player && m.FindItemOnLayer( Layer.Helm ) is OrcishKinMask )
return false;

return base.IsEnemy( m );
}

public override void AggressiveAction( Mobile aggressor, bool criminal )
{
base.AggressiveAction( aggressor, criminal );

Item item = aggressor.FindItemOnLayer( Layer.Helm );

if ( item is OrcishKinMask )
{
AOS.Damage( aggressor, 50, 0, 100, 0, 0, 0 );
item.Delete();
aggressor.FixedParticles( 0x36BD, 20, 10, 5044, EffectLayer.Head );
aggressor.PlaySound( 0x307 );
}
}

private Mobile FindTarget()
{
foreach ( Mobile m in this.GetMobilesInRange( 10 ) )
{
if ( m.Player && m.Hidden && m.AccessLevel == AccessLevel.Player )
{
return m;
}
}

return null;
}

private void TryToDetectHidden()
{
Mobile m = FindTarget();

if ( m != null )
{
if ( DateTime.Now >= this.NextSkillTime && UseSkill( SkillName.DetectHidden ) )
{
Target targ = this.Target;

if ( targ != null )
targ.Invoke( this, this );

Effects.PlaySound( this.Location, this.Map, 0x340 );
}
}
}

private void HealSelf()
{
if ( BandageContext.GetContext( this ) == null )
{
BandageContext.BeginHeal( this, this );
}

return;
}

public override void OnThink()
{
if ( Utility.RandomDouble() < 0.6 && Hits < ( HitsMax - 15 ) && !Hidden )
HealSelf();

if ( Utility.RandomDouble() < 0.2 )
TryToDetectHidden();
}

public override bool CanRummageCorpses{ get{ return true; } }
public override int Meat{ get{ return 1; } }

public OrcScout( 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();
}
}
}
 

Ashmaul

Wanderer
Green Goblin Scout

using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
using Server.Misc;

namespace Server.Mobiles
{
[CorpseName("a goblin corpse")]
public class GreenGoblinScout : BaseCreature
{
//public override InhumanSpeech SpeechType { get { return InhumanSpeech.Orc; } }

[Constructable]
public GreenGoblinScout()
: base(AIType.AI_OrcScout, FightMode.Closest, 10, 7, 0.2, 0.4)
{
Name = "a green goblin scout";
Body = 723;
BaseSoundID = 0x45A;

SetStr(250, 261);
SetDex(65, 70);
SetInt(105, 108);

SetHits(200, 204);
SetMana(100, 108);

SetDamage(5, 7);

SetDamageType(ResistanceType.Physical, 100);

SetResistance(ResistanceType.Physical, 35, 45);
SetResistance(ResistanceType.Fire, 30, 33);
SetResistance(ResistanceType.Cold, 25, 28);
SetResistance(ResistanceType.Poison, 10, 13);
SetResistance(ResistanceType.Energy, 10, 11);

SetSkill(SkillName.MagicResist, 105.1, 110.2);
SetSkill(SkillName.Tactics, 85.1, 89.1);

SetSkill(SkillName.Wrestling, 90.1, 92.9);
SetSkill(SkillName.Anatomy, 70.1, 80.3);


Fame = 1500;
Karma = -1500;


}

public override void GenerateLoot()
{
AddLoot(LootPack.Meager);
}

public override OppositionGroup OppositionGroup
{
get { return OppositionGroup.SavagesAndOrcs; }
}


private Mobile FindTarget()
{
foreach (Mobile m in this.GetMobilesInRange(10))
{
if (m.Player && m.Hidden && m.AccessLevel == AccessLevel.Player)
{
return m;
}
}

return null;
}

private void TryToDetectHidden()
{
Mobile m = FindTarget();

if (m != null)
{
if (DateTime.Now >= this.NextSkillTime && UseSkill(SkillName.DetectHidden))
{
Target targ = this.Target;

if (targ != null)
targ.Invoke(this, this);

Effects.PlaySound(this.Location, this.Map, 0x340);
}
}
}

public override void OnThink()
{
if (Utility.RandomDouble() < 0.2)
TryToDetectHidden();
}

public override bool CanRummageCorpses { get { return true; } }
public override int Meat { get { return 1; } }

public GreenGoblinScout(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();
}
}
}
 

Ashmaul

Wanderer
I commented the code giving the error but then I just got more errors from other scripts that reference the ones I changed. So I have changed them back to what they were. I am new at this, give me a couple weeks and I should be all good.

Thank you very much for your assistance.
 

Hammerhand

Knight
Ok, first thing, you need to post scripts in code tags. See the button with the {} above where you type? Click on that & copy & paste the script into that. 2nd, your scripts are identical to mine & mine works fine on 2.3, so apparently you either missed an edit or edits somewhere, or 2.4 has some interesting code changes because its affecting a mob script that isnt even IN the Neruns package (Savage Shaman). Double check your edited files & make sure you got them all & that you have all the other Neruns files in your server as well.
 

Ashmaul

Wanderer
I started with 2.3 but the game client crashed constantly. So I downloaded 2.4 from SVN.
I started this project yesterday thinking it would go a little faster but it has not gone as fast as I thought it would.
I have the newest UO client 7.0.33.1 I think it is. and it does not work well with 2.3 but it works perfectly with 2.4.
I am just looking for the base game including monsters I will probably not change much with the game either.
I ran Rice many years ago to emulate the game and had the same issues with lack of content so stopped.

Would you happen to have any other ideas I could try? Or do I just need to wait for this to be fixed?
 

Hammerhand

Knight
This version works just fine w/ 2.3. I've merged it with no trouble at all & it should work fine w/ 2.4. The SVN's are works in progress & not finalized product's. Its just 2.3 with a few new things added in. The errors you're having, as I said, are either missed or incorrect merges or some weird change in 2.4's core coding and core changes (not likely to happen) would be announced. Are you using WinMerge & actually merging the files or are you just replacing them with files from Neruns? If merging, then you need to check all your merged files for missed edits or accidently merged out coding. If just replacing files, then thats probably your biggest issue. The issue isnt Neruns, because as I pointed out in my previous post, you are getting errors with a mob that isnt even a part of Neruns to begin with.
 

Ashmaul

Wanderer
I tried the NerunDistro on 2.3 and the server comes up as expected. But my client crashed after about 5 minutes. and now will crash as soon as I try and move. My client version is 7.0.33.1 this client does not work with RunUO 2.3.

Also I see the OrcScout.cs file that is having the error in the files that I am adding from Neruns
Distro for RunUO 2.3\Scripts\Customs\Nerun's Distro\ML\Mobiles\OrcScout\OrcScout.cs

Thanks again for all your help.
 

BoniFlash

Wanderer
I can't figure how winmerge merge nerun's distro rev. 134 to runuo 2.4. It compares and then... left, right... I haven't see the button " Press here to make it works!!" I know, it's late... Could someone post a link to a fresh installed runuo 2.4 with Nerun's ditro please?!
 
Top