Make a copy of the Hiryu (if it is to be a mount) or Dragon directory under the EVO directory
and rename it to YourClass
Rename all of the files, replacing EvoHiryu in each file name with YourClass.
Inside the YourClass directory, open each file and replace
all occurreneces of EvoHiryu to YourClass.
In YourClass.cs, YourClassDust.cs and YourClassEgg.cs change the respective
strings "a hiryu corpse", "hiryu dust", and "a hiryu egg" as appropriate.
Open YourClassSpec.cs.
In the constructor of the YourClassSpec class, edit the variable values as you see fit.
Add or remove YourClassStageX class definitions, according to how many stages you plan to have,
by copying and pasting one of the exisiting definitions.
Change the assignment of the m_Stages vairable in the YourClassSpec constructor
according to the number of stages YourClassStageX class definitions you have.
Edit the values of the variables in each of the YourClassStageX as appropriate
for each stage of the creatures evolution. Setting any of the array type variables
to null will cause them to not be changed in that stage of the evolution. Damage amount,
hits, strength, dexterity and intelligence can be applied relatively or absolutely depending
on the value of YourClassSpec.m_AbsoluteStatValues. All of the other variables are applied absolutely.
All the files which you need to add/create will be in the xantos package- maybe download this one which I posted- I have a few extra scripts in there added- you could make copies and then just change those for any you don't want. Each Evo has its own folder which will show exactly how this is done. https://www.servuo.com/threads/pet-evolution.2966/
Your question is answered at the top of your post.
YourClass is what you call your copy of the Hiryu or Dragon, but you don't actually name it "YourClass", you name it whatever name you want. The instructions call it "YourClass" so they can refer to whatever it is you called it.
custom/Xanthos/EV0 System/SpiderEvo/SpideEvoSpec.co:
cs1520: Line 145: Method must have a return type
csi519 Line 1ss: Inuelid token in cless. struct
cs1519: Line 1as; Inualid token's' in class, struct, or interface nember
cs1519: Line 185: Invalid token 's' in clase, struct, or interface member
cs1519: Line 1o5: Inualid token 's in class, struct, or interface liouber
cs1022; Line 211: Type or namespace definition, or end-of-file expected
Scripts: One or more scripts failed to compile or no script files were found
To be able to select the text from the server screen, you first use the mouse and right click the black screen and scroll the text (highlight) . If you want to select the entire list of text from the server screen you then select all. You can then copy from here and past on your post for...
----------------------------------------------------------------------------
JustUO - [http://www.playuo.org] Version 1.0
Publish 2
Core: .NET Framework Version 4.0.30319
RandomImpl: CSPRandom (Software)
Scripts: Compiling C# scripts...Failed with: 2 errors, 0 warnings
Errors:
+ custom/Xanthos/EVO System/Dragon/GuardianSpiderEvo.cs:
CS1514: Line 11: { expected
CS1519: Line 11: Invalid token ':' in class, struct, or interface member dec
laration
CS1519: Line 12: Invalid token '{' in class, struct, or interface member dec
laration
CS1002: Line 18: ; expected
CS1519: Line 22: Invalid token '=' in class, struct, or interface member dec
laration
CS1519: Line 23: Invalid token '=' in class, struct, or interface member dec
laration
CS1519: Line 24: Invalid token '=' in class, struct, or interface member dec
laration
CS1520: Line 27: Method must have a return type
CS1031: Line 27: Type expected
CS1520: Line 28: Method must have a return type
CS1031: Line 28: Type expected
CS1520: Line 29: Method must have a return type
CS1031: Line 29: Type expected
CS1520: Line 31: Method must have a return type
CS1031: Line 31: Type expected
CS1520: Line 32: Method must have a return type
CS1031: Line 32: Type expected
CS1520: Line 33: Method must have a return type
CS1031: Line 33: Type expected
CS1520: Line 35: Method must have a return type
CS1031: Line 35: Type expected
CS1520: Line 37: Method must have a return type
CS1001: Line 37: Identifier expected
CS1031: Line 37: Type expected
CS1520: Line 38: Method must have a return type
CS1001: Line 38: Identifier expected
CS1031: Line 38: Type expected
CS1520: Line 39: Method must have a return type
CS1001: Line 39: Identifier expected
CS1031: Line 39: Type expected
CS1520: Line 41: Method must have a return type
CS1001: Line 41: Identifier expected
CS1031: Line 41: Type expected
CS1520: Line 42: Method must have a return type
CS1001: Line 42: Identifier expected
CS1031: Line 42: Type expected
CS1520: Line 43: Method must have a return type
CS1001: Line 43: Identifier expected
CS1031: Line 43: Type expected
CS1520: Line 44: Method must have a return type
CS1001: Line 44: Identifier expected
CS1031: Line 44: Type expected
CS1520: Line 45: Method must have a return type
CS1001: Line 45: Identifier expected
CS1031: Line 45: Type expected
CS1520: Line 47: Method must have a return type
CS1001: Line 47: Identifier expected
CS1031: Line 47: Type expected
CS1520: Line 48: Method must have a return type
CS1001: Line 48: Identifier expected
CS1031: Line 48: Type expected
CS1520: Line 49: Method must have a return type
CS1001: Line 49: Identifier expected
CS1031: Line 49: Type expected
CS1520: Line 50: Method must have a return type
CS1001: Line 50: Identifier expected
CS1031: Line 50: Type expected
CS1520: Line 51: Method must have a return type
CS1001: Line 51: Identifier expected
CS1031: Line 51: Type expected
CS1520: Line 52: Method must have a return type
CS1001: Line 52: Identifier expected
CS1031: Line 52: Type expected
CS1519: Line 54: Invalid token '=' in class, struct, or interface member dec
laration
CS1519: Line 60: Invalid token '=' in class, struct, or interface member dec
laration
CS1519: Line 64: Invalid token '(' in class, struct, or interface member dec
laration
CS1520: Line 66: Method must have a return type
CS1031: Line 66: Type expected
CS1002: Line 66: ; expected
CS1518: Line 71: Expected class, delegate, enum, interface, or struct
CS1518: Line 77: Expected class, delegate, enum, interface, or struct
CS1518: Line 81: Expected class, delegate, enum, interface, or struct
CS1518: Line 88: Expected class, delegate, enum, interface, or struct
CS1022: Line 94: Type or namespace definition, or end-of-file expected
+ custom/Xanthos/EVO System/Dragon/SpideEvoSpec.cs:
CS1520: Line 145: Method must have a return type
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
Scripts: Compiling C# scripts...Failed with: 1 errors, 0 warnings
Errors:
+ custom/Xanthos/EVO System/Dragon/SpideEvoSpec.cs:
CS1520: Line 145: Method must have a return type
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
thanks the Guardainspiderevo worked
Post automatically merged:
using System;
using Server;
namespace Xanthos.Evo
{
public sealed class evospiderSpec : BaseEvoSpec
{
// This class implements a singleton pattern; meaning that no matter how many times the
// Instance attribute is used, there will only ever be one of these created in the entire system.
// Copy this template and give it a new name. Assign all of the data members of the EvoSpec
// base class in the constructor. Your subclass must not be abstract.
// Never call new on this class, use the Instance attribute to get the instance instead.
m_Stages = new evospiderBaseEvoStage[] { new evospiderStageOne(), new evospiderStageTwo(),
new evospiderStageThree(), new evospiderStageFour(),
new evospiderStageFive(), new evospiderStageSix(),
new evospiderStageSeven() };
}
// These next 2 lines facilitate the singleton pattern. In your subclass only change the
// BaseEvoSpec class name to your subclass of BaseEvoSpec class name and uncomment both lines.
public static evospiderSpec Instance { get { return Nested.instance; } }
class Nested { static Nested() { } internal static readonly evospiderSpec instance = new evospiderSpec();}
}
// Define a subclass of BaseEvoStage for each stage in your creature and place them in the
// array in your subclass of BaseEvoSpec. See the example classes for how to do this.
// Your subclass must not be abstract.
public class evospiderStageOne : BaseEvoStage
{
public evospiderStageOne()
{
EvolutionMessage = "has evolved";
NextEpThreshold = 25000; EpMinDivisor = 10; EpMaxDivisor = 5; DustMultiplier = 20;
BaseSoundID = 456;
BodyValue = 51; ControlSlots = 2; MinTameSkill = 99.9; VirtualArmor = 30;
Hue = Evo.Flags.kRandomHueFlag;
DamagesTypes = new ResistanceType[1] { ResistanceType.Physical };
MinDamages = new int[1] { 100 };
MaxDamages = new int[1] { 100 };
ResistanceTypes = new ResistanceType[1] { ResistanceType.Physical };
MinResistances = new int[1] { 15 };
MaxResistances = new int[1] { 15 };
public class evospiderStageSeven : BaseEvoStage
{
public evospiderStageSeven()
{
Title = "Ancient Hellspider";
EvolutionMessage = "has evolved to its highest form and is now an Ancient Spider";
NextEpThreshold = 0; EpMinDivisor = 740; EpMaxDivisor = 660; DustMultiplier = 20;
BaseSoundID = 387;
BodyValue = 173; ControlSlots = 4; VirtualArmor = 270;
Thank you for helping me got it working late last night it was baseEvoSpider it was supposed to be baseevo now I have to change it so it is immune to poison
Post automatically merged:
public override Poison HitPoison{ get{ return Poison. Lethal ; } } is this what i need to add to be immune to poison?
namespace Xanthos.Evo
{
public sealed class evospiderSpec : BaseEvoSpec
{
// This class implements a singleton pattern; meaning that no matter how many times the
// Instance attribute is used, there will only ever be one of these created in the entire system.
// Copy this template and give it a new name. Assign all of the data members of the EvoSpec
// base class in the constructor. Your subclass must not be abstract.
// Never call new on this class, use the Instance attribute to get the instance instead.
m_Stages =new BaseEvoStage[]{ new evospiderStageOne(),new evospiderStageTwo(),
new evospiderStageThree(),new evospiderStageFour(),
new evospiderStageFive(), new evospiderStageSix(),
new evospiderStageSeven() };
}
// These next 2 lines facilitate the singleton pattern. In your subclass only change the
// BaseEvoSpec class name to your subclass of BaseEvoSpec class name and uncomment both lines.
public static evospiderSpec Instance { get { return Nested.instance; } }
class Nested { static Nested() { } internal static readonly evospiderSpec instance = new evospiderSpec();}
}
// Define a subclass of BaseEvoStage for each stage in your creature and place them in the
// array in your subclass of BaseEvoSpec. See the example classes for how to do this.
// Your subclass must not be abstract.
public class evospiderStageOne : BaseEvoStage
{
public evospiderStageOne()
{
EvolutionMessage = "has evolved";
NextEpThreshold = 25000; EpMinDivisor = 10; EpMaxDivisor = 5; DustMultiplier = 20;
BaseSoundID = 456;
BodyValue = 51; ControlSlots = 2; MinTameSkill = 99.9; VirtualArmor = 30;
Hue = Evo.Flags.kRandomHueFlag;
DamagesTypes = new ResistanceType[1] { ResistanceType.Physical };
MinDamages = new int[1] { 100 };
MaxDamages = new int[1] { 100 };
ResistanceTypes = new ResistanceType[1] { ResistanceType.Physical };
MinResistances = new int[1] { 15 };
MaxResistances = new int[1] { 15 };
public override Poison PoisonImmune
{
get
{
return Poison.Lethal;
}
}
public class evospiderStageSeven : BaseEvoStage
{
public evospiderStageSeven()
{
Title = "Ancient evospider";
EvolutionMessage = "has evolved to its highest form and is now an Ancient evoSpider";
NextEpThreshold = 20000000; EpMinDivisor = 740; EpMaxDivisor = 660; DustMultiplier = 20;
BaseSoundID = 387;
BodyValue = 173; ControlSlots = 4; VirtualArmor = 270;