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!

[2.0] Ethereal Craft Upgraded

wensday

Wanderer
[2.0] Ethereal Craft Upgraded

I changed this a little so it was compatible with 2.0 I do not know who the original author was, but here's the fix for those interested. I'm going to be working on fixes to some of the other systems I have periodically through the night, so please dont flame me for posting them at different times, I just want to post what I have done when I get if done, for all those wanting them.
thank youView attachment 7695
 

Attachments

  • EtherealCraft.rar
    3.5 KB · Views: 170

BillyTheKid

Wanderer
Error Crafting

well dont know who made it but there is an error somewhere in the script cause ive tried it even with 120 to 150 skill and still get 0% chances doing them... here the DefEthereal ive worked on :
using System;
using Server.Items;
using Server.Mobiles;
using Server.Network;

namespace Server.Engines.Craft
{
public class DefEthereal : CraftSystem
{
public override SkillName MainSkill
{
get { return SkillName.Carpentry; }
}

public override string GumpTitleString
{
get { return "<BASEFONT COLOR=#FF0000><CENTER>ETHEREAL CRAFT MENU</CENTER></BASEFONT>"; }
}

private static CraftSystem m_CraftSystem;

public static CraftSystem CraftSystem
{
get
{
if ( m_CraftSystem == null )
m_CraftSystem = new DefEthereal();

return m_CraftSystem;
}
}

public override double GetChanceAtMin( CraftItem item )
{
return 0.0; // 50%
}

private DefEthereal() : base( 1, 1, 1.25 )// base( 1, 1, 3.0 )
{
}

public override int CanCraft( Mobile from, BaseTool tool, Type typeItem )
{
if ( tool.Deleted || tool.UsesRemaining < 0 )
return 1044038; // You have worn out your tool!

return 0;
}

public override void PlayCraftEffect( Mobile from )
{
from.PlaySound( 0x23D );
}

public override int PlayEndingEffect( Mobile from, bool failed, bool lostMaterial, bool toolBroken, int quality, bool makersMark, CraftItem item )
{
Container pack = from.Backpack;
if ( toolBroken )
from.SendMessage( "You have worn out your tool"); // You have worn out your tool


if ( failed )
{
return 1044043; // You failed to create the item, and some of your materials are lost.
}
else
{
return 1044154; // You create the item.
}
}

public override void InitCraftList()
{
//Ethereals
AddCraft( typeof( EtherealHorse ), "Ethereals", "Ethereal Horse", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
AddCraft( typeof( EtherealLlama ), "Ethereals", "Ethereal Llama", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
AddCraft( typeof( EtherealOstard ), "Ethereals", "Ethereal Ostard", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
AddCraft( typeof( EtherealBeetle ), "Ethereals", "Ethereal Beetle", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
AddCraft( typeof( EtherealSwampDragon ), "Ethereals", "Ethereal Swamp Dragon", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
AddCraft( typeof( EtherealKirin ), "Ethereals", "Ethereal Kirin", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
AddCraft( typeof( EtherealUnicorn ), "Ethereals", "Ethereal Unicorn", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
}
}
}
 
Top