Full Version : Peerless
xmlspawner >>Scripting Support >>Peerless
<< Prev | Next >>
Neuton- 11-09-2007
I am sorry if this is the wrong forum for this problem?
I would of tried on Runuo Arte however milkman hasn't been on lately, and he mentioned you helped him with his peerless scripts.
Here is the code for my Melisade

CODE
using System; using Server.Network; using Server.Items; namespace Server.Items {
public class MelisandesCorrodedHatchet : Hatchet
{
public override int LabelNumber{ get{ return 1072115; } } // Melisande's Corroded Hatchet
[Constructable]
public MelisandesCorrodedHatchet()
{
Hue = 0x494;
SkillBonuses.SetValues( 0, SkillName.Lumberjacking, 5.0 );
Attributes.SpellChanneling = 1;
Attributes.WeaponSpeed = 15;
Attributes.WeaponDamage = -50;
WeaponAttributes.SelfRepair = 4;
}
public MelisandesCorrodedHatchet( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
}
}
}

I can not upload a SS from my comp
ArteGordon- 11-10-2007
what is the problem?
Neuton- 11-10-2007
Well I re-did the svn and Mal's files to see if I can get it to work, I am getting an error with some scripts not finding AINecroMage even tho I have them in the appropriate scripts, like in BaseAI and BaseCreatureAI.
I will try to post a SS, but for some reason it wont let me.
P.S. What are the requirements for attachments, I tried .bmp and .jpg and neither would upload. Should I do it from a fileshare program online?
Neuton- 11-10-2007
Comp error
And here are the scripts of my baseAI and baseCreatureAI.
BaseCreatureAI
[CODE]
case AIType.AI_Melee:
m_AI = new MeleeAI(this);
break;
case AIType.AI_Animal:
m_AI = new AnimalAI(this);
break;
case AIType.AI_Berserk:
m_AI = new BerserkAI(this);
break;
case AIType.AI_Archer:
m_AI = new ArcherAI(this);
break;
case AIType.AI_Healer:
m_AI = new HealerAI(this);
break;
case AIType.AI_Vendor:
m_AI = new VendorAI(this);
break;
case AIType.AI_Mage:
m_AI = new MageAI(this);
break;
case AIType.AI_Predator:
//m_AI = new PredatorAI(this);
m_AI = new MeleeAI(this);
break;
case AIType.AI_Thief:
m_AI = new ThiefAI(this);
break;
case AIType.AI_Necro:
m_AI = new NecroAI(this);
break;
#region Mondain's Legacy
case AIType.AI_Necromage:
m_AI = new NecromageAI(this);
break;
#endregion
[CODE]
Neuton- 11-10-2007
Sorry if they r too long Arte, if they r I will edit them, or you can
BaseAI.cs
[CODE]
namespace Server.Mobiles
{
public enum AIType
{
AI_Use_Default,
AI_Melee,
AI_Animal,
AI_Archer,
AI_Healer,
AI_Vendor,
AI_Mage,
AI_Berserk,
AI_Predator,
AI_Thief,
AI_Necro,
AI_NecroMage
}
[CODE]
Neuton- 11-10-2007
Master Mikael where the error states

CODE
using System; using Server; using Server.Items; namespace Server.Mobiles {
[CorpseName( "a master mikael corpse" )]
public class MasterMikael : BaseCreature
{
[Constructable]
public MasterMikael() : base( AIType.AI_Necromage, FightMode.Closest, 10, 1, 0.015, 0.075 )
{
Name = "a master mikael";
Hue = 0x8FD;
Body = 0x94;
BaseSoundID = 0x1C3;

ArteGordon- 11-10-2007
you can post .gif .jpg .jpeg .png
would need to see the actual error messages to figure out what the problem is. You could just cut and paste them from the console window instead of doing a SS.
Neuton- 11-10-2007
In the above post there is a link named compile error to the SS of the error I am getting, just tried to copy and paste and didn't work

CODE
RunUO - [www.runuo.com] Version 2.0, Build 2870.7162 Core: Running on .NET Framework Version 2.0.50727 Scripts: Compiling C# scripts...failed (7 errors, 0 warnings) Errors: + Engines/AI/Creature/BaseCreature.cs:
CS0117: Line 2030: 'Server.Mobiles.AIType' does not contain a definition for
'AI_Necromage'
+ Customs/blacklich.cs:
CS0117: Line 13: 'Server.Mobiles.AIType' does not contain a definition for '
AI_Necromage'
+ Mondain's Legacy/Items/Talismans/BaseTalisman.cs:
CS0122: Line 903: 'Server.Spells.Fifth.MagicReflectSpell.m_Table' is inacces
sible due to its protection level
CS0122: Line 922: 'Server.Spells.First.ReactiveArmorSpell.m_Table' is inacce
ssible due to its protection level
CS0122: Line 941: 'Server.Spells.Second.ProtectionSpell.m_Table' is inaccess
ible due to its protection level
+ Mondain's Legacy/Mobiles/Bedlam/MasterJonath.cs:
CS0117: Line 11: 'Server.Mobiles.AIType' does not contain a definition for '
AI_Necromage'
+ Mondain's Legacy/Mobiles/Bedlam/MasterMikael.cs:
CS0117: Line 11: 'Server.Mobiles.AIType' does not contain a definition for '
AI_Necromage'
+ Mondain's Legacy/Mobiles/Bedlam/MasterTheophilus.cs:
CS0117: Line 11: 'Server.Mobiles.AIType' does not contain a definition for '
AI_Necromage'
+ Mondain's Legacy/Mobiles/Blighted Grove/LadyMelisande.cs:
CS0117: Line 17: 'Server.Mobiles.AIType' does not contain a definition for '
AI_Necromage'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

ArteGordon- 11-11-2007
you define AI_NecroMage in baseai.cs but refer to AI_Necromage elsewhere. Notice that you capitalize Mage in one case and not the other.
Neuton- 11-11-2007
Ahh ok duh, so it is important to keep the caps the same when ever you spell.
I also downloaded a server.zip that Mal had posted and compared his copy to mine, so I reverted back alot of the changes I did because I followed milkman's instruction; however since they are older they are not compatible with the latest svn I believe.
Plus he also had AINecro in hi copy and Mal removed them from his, after I did the changes it compiled fine.
A question since its hard to find what exactly is included with the latest svn, the ML stuff in it does it come already with the peerless items that Milkman added and can I just use his peerless map with the svn or do I need to find a way to incorporate his files as well?
ArteGordon- 11-11-2007

QUOTE (Neuton @ November 11, 2007 12:04 pm)
Ahh ok duh, so it is important to keep the caps the same when ever you spell. I also downloaded a server.zip that Mal had posted and compared his copy to mine, so I reverted back alot of the changes I did because I followed milkman's instruction; however since they are older they are not compatible with the latest svn I believe.
Plus he also had AINecro in hi copy and Mal removed them from his, after I did the changes it compiled fine.
A question since its hard to find what exactly is included with the latest svn, the ML stuff in it does it come already with the peerless items that Milkman added and can I just use his peerless map with the svn or do I need to find a way to incorporate his files as well?

I'm afraid I dont know how his ML stuff compares.