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!

Ultima VII Spell project (Updated 15th Jan 2004) - v5.1

Status
Not open for further replies.
E

enoch144

Guest
now the Peer Spell wont compile ;(

Compiles Fine now- had to replace the Souless as well.

Thank you !
 
E

enoch144

Guest
Pagan Vendor

Pretty easy to script these yourself, and you might learn something if you open the scripts and see how they work.

But here are the ones I made for all those who choose to be lazy.

PAGAN.CS
[code:1]using System;
using System.Collections;
using Server;

namespace Server.Mobiles
{
public class Pagan : BaseVendor
{
private ArrayList m_SBInfos = new ArrayList();
protected override ArrayList SBInfos{ get { return m_SBInfos; } }

public override NpcGuild NpcGuild{ get{ return NpcGuild.MagesGuild; } }

[Constructable]
public Pagan() : base( "the Pagan" )
{
SetSkill( SkillName.EvalInt, 60.0, 83.0 );
SetSkill( SkillName.Magery, 90.0, 100.0 );
SetSkill( SkillName.Necromancy, 90.0, 100.0 );
SetSkill( SkillName.SpiritSpeak, 90.0, 100.0 );

}

public override void InitSBInfo()
{
m_SBInfos.Add( new SBPagan() );
}

public override VendorShoeType ShoeType
{
get{ return Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals; }
}

public override void InitOutfit()
{
base.InitOutfit();

AddItem( new Server.Items.Robe( Utility.RandomNeutralHue() ) );
}

public Pagan( Serial serial ) : base( serial )
{
}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );

writer.Write( (int) 0 ); // version
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );

int version = reader.ReadInt();
}
}
}
[/code:1]

PAGANSBINFO.CS
[code:1]using System;
using System.Collections;
using Server.Items;

namespace Server.Mobiles
{
public class SBPagan : SBInfo
{
private ArrayList m_BuyInfo = new InternalBuyInfo();
private IShopSellInfo m_SellInfo = new InternalSellInfo();

public SBPagan()
{
}

public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
public override ArrayList BuyInfo { get { return m_BuyInfo; } }

public class InternalBuyInfo : ArrayList
{
public InternalBuyInfo()
{
Add( new GenericBuyInfo( "Awaken scroll", typeof( AwakenScroll ), 72, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Awaken All scroll", typeof( AwakenAllScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Charm scroll", typeof( CharmScroll ), 72, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Clone scroll", typeof( CloneScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Dance scroll", typeof( DanceScroll ), 72, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Death Vortex scroll", typeof( DeathVortexScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Destroy Trap scroll", typeof( DestroyTrapScroll ), 72, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Detect Trap scroll", typeof( DetectTrapScroll ), 72, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Enchant scroll", typeof( EnchantScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "False Coin scroll", typeof( FalseCoinScroll ), 72, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Fire Ring scroll", typeof( FireRingScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Fireworks scroll", typeof( FireworksScroll ), 72, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Glimmer scroll", typeof( GlimmerScroll ), 72, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Great Light scroll", typeof( GreatLightScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Identify scroll", typeof( IdentifyScroll ), 72, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Invisibility All scroll", typeof( InvisibilityAllScroll ), 72, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Locate scroll", typeof( LocateScroll ), 72, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Mass Charm scroll", typeof( MassCharmScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Mass Might scroll", typeof( MassMightScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Mass Sleep scroll", typeof( MassSleepScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Peer scroll", typeof( PeerScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Seance scroll", typeof( SeanceScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Sleep scroll", typeof( SleepScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Sleep Field scroll", typeof( SleepFieldScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Swarm scroll", typeof( SwarmScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Thunder scroll", typeof( ThunderScroll ), 144, 144, 0x1F32, 0 ) );
Add( new GenericBuyInfo( "Tremor scroll", typeof( TremorScroll ), 144, 144, 0x1F32, 0 ) );

Add( new GenericBuyInfo( typeof( BlackPearl ), 5, 400, 0xF7A, 0 ) );
Add( new GenericBuyInfo( typeof( Bloodmoss ), 5, 400, 0xF7B, 0 ) );
Add( new GenericBuyInfo( typeof( MandrakeRoot ), 3, 400, 0xF86, 0 ) );
Add( new GenericBuyInfo( typeof( Garlic ), 3, 400, 0xF84, 0 ) );
Add( new GenericBuyInfo( typeof( Ginseng ), 3, 400, 0xF85, 0 ) );
Add( new GenericBuyInfo( typeof( Nightshade ), 3, 400, 0xF88, 0 ) );
Add( new GenericBuyInfo( typeof( SpidersSilk ), 3, 400, 0xF8D, 0 ) );
Add( new GenericBuyInfo( typeof( SulfurousAsh ), 3, 400, 0xF8C, 0 ) );


Add( new GenericBuyInfo( "A Pagan's Spellbook", typeof( PaganSpellbook ), 500, 20, 0xEFA, 0x489 ) );
}
}

public class InternalSellInfo : GenericSellInfo
{
public InternalSellInfo()
{

}
}
}
}
[/code:1]
 
E

enoch144

Guest
Haha see you need to learn on your own- that was the script I use on my shard- the distro file is called something different.

replace PaganSpellBook with
AncientSpellBook
 

eXcebo

Wanderer
we need an effective way to cast these spells... without having to open the book and click everytime... draggable icons? or maybe have them be voice activated? dunno... but it'd be nice...
 

Voran

Wanderer
Because I'm still writing the spells - RL became very busy since Christmas, and I've not had the time to devote to them. I've been concentrating on smaller things.
 
Server just crashed, here is the report:

Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Spells.Linear.AwakenSpell.Target(SleepingBody slumber)
at Server.Spells.Linear.InternalTarget.OnTarget(Mobile from, Object o)
at Server.Targeting.Target.Invoke(Mobile from, Object targeted)
at Server.Network.PacketHandlers.TargetResponse(NetState state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns)
at Server.Network.MessagePump.Slice()
at Server.Core.Main(String[] args)

What does that mean, what needs to be fixed?
 
nothing was, I think that the bodies were just waking up, Some one on my shard had come by earlier and put a bunch of monsters to sleep, he logged off and a while later stuff started to wake and then it crashed.
I have also had problem with when the monsters awake they are blessed.

I was just letting you know their might be a bug, as for my shard i have just 86'd the sleep and awaken spell.
 

Voran

Wanderer
Someone cast Awaken, according to the crashlog. I'll have a look at the code and see if I can find what caused it.
 
Well there were 3 people on line at the time of the incident, there was me(admin), a Seer, and a player. The player was in his house and i checked his pack and all and he doesnt have the spellbook nor the money to buy it. Ill recheck with my seer and see if he casted awaken but I am pretty sure he didnt, and I didnt cast it either.
Right after the crash I asked everyone what they were doing and my seer was walking by the sleeping bodies but he didnt say that he casted awaken. As i said though i will ask him again and repost to let you know.
 

Tru

Knight
JetBoom said:
Your script screws up my player mobile big time. Lots of errors :mad:
quite the vague statement there
besides i dont remember editing my playermobile for this
 

Tru

Knight
JetBoom said:
says you havto :rolleyes:
Ok its been awhile since I installed this and yes indeed you need to make changes..
POST THE ERRORS so we can help you figure out what you did wrong
 
Status
Not open for further replies.
Top