public class Dragon : BaseCreature { public Dragon() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "Dragon"; Body = 105; Hue = 0x21; BaseSoundID = 362; SetStr(1266, 1385); SetDex(412, 490); SetInt(766, 845); SetHits(760, 925); SetDamage(25, 31); SetSkill(SkillName.MagicResist, 125.1, 150.0); Fame = 22500; Karma = -22500; } }
public class Ogre : BaseCreature { public Ogre() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "Ogre"; Body = 1; BaseSoundID = 427; SetStr(346, 370); SetDex(56, 75); SetInt(51, 70); SetHits(208, 222); SetDamage(11, 13); SetSkill(SkillName.MagicResist, 50.0, 65.0); SetSkill(SkillName.Tactics, 50.0, 65.0); SetSkill(SkillName.Wrestling, 50.0, 65.0); Fame = 1250; Karma = -1250; } }This example demonstrates how to create a new creature, an ogre, with different attributes than the previous example, such as its body type, sound ID, and different skills. Both of these examples show how to create new creatures by inheriting from the BaseCreature class and setting their attributes in the constructor. The package library for these examples is likely the UltimaSDK package or a similar game development library.