PDA

View Full Version : RunUO scripting VS Sphere



Scyron
17-05-2003, 21:22
is there a sample script a gm could post, like what an orc's stats/loot is for runUO

(test script i found, used for comparing scripts)
sphere looks like:
[CHARDEF i_samuraimonsta]
ID=C_MAN
NAME=The Samurai
CAN=MT_EQUIP|MT_RUN|MT_USEHANDS|MT_WALK|MT_FIRE_IM
MUNE
DAM=30,45
ARMOR=100

CATEGORY=OMAT
SUBSECTION=monster
DESCRIPTION=Samurai

ON=@Create
COLOR=04a4
NPC=brain_monster
FAME={5000 9999}
KARMA={-5000 -9999}
STR=750
DEX=9999
INT=150
TACTICS={85.0 100.0}
WRESTLING={99.0 100.0}
MAGICRESISTANCE={99.0 100.0}
SWORDSMANSHIP={99.0 100.0}

well i looked for moster scripts to compare and so i wouldn't have to post a topic i could answer myself, but i failed to find any..

ps. the item scripts for runuo looks a lot more complex than sphere, despite hearing runuo is easier to script, or am i mistake?

monkaii
18-05-2003, 14:16
using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
using Server.Misc;

namespace Server.Mobiles
{
[CorpseName( "an orcish corpse" )]
public class Orc : BaseCreature
{
[Constructable]
public Orc() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = NameList.RandomName( "orc" );
Body = 17;
BaseSoundID = 0x45A;

SetStr( 96, 120 );
SetDex( 81, 105 );
SetInt( 36, 60 );

SetHits( 58, 72 );

SetDamage( 5, 7 );

SetDamageType( ResistanceType.Physical, 100 );

SetResistance( ResistanceType.Physical, 25, 30 );
SetResistance( ResistanceType.Fire, 20, 30 );
SetResistance( ResistanceType.Cold, 10, 20 );
SetResistance( ResistanceType.Poison, 10, 20 );
SetResistance( ResistanceType.Energy, 20, 30 );

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

Fame = 1500;
Karma = -1500;

VirtualArmor = 28;

switch ( Utility.Random( 6 ) )
{
case 0: PackItem( new Scimitar() ); break;
case 1: PackItem( new Katana() ); break;
case 2: PackItem( new WarMace() ); break;
case 3: PackItem( new WarHammer() ); break;
case 4: PackItem( new Kryss() ); break;
case 5: PackItem( new Pitchfork() ); break;
}

PackItem( new ThighBoots() );
PackGold( 25, 50 );
}

public override int TreasureMapLevel{ get{ return 1; } }
public override int Meat{ get{ return 1; } }

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


-_-

Farthrex
20-05-2003, 03:32
runUO script is more writing apparently..

but with no experience in either script and limited experience in other languages, I would say runUO looks a LOT easier. I almost understand it :rolling:

Scyron
20-05-2003, 03:40
i can see how you say that farthrex

most the scripting i did on my shard, i reused old scripts, and copied and pasted, this doesn't look as easy but probably is easier to learn, or easier to edit parts of monsters, IE sertain items that come on loot

:pimp:

Seph
20-05-2003, 06:51
Sphere scripting looks somewhat like a batch file...